confirm有时比alert的效果更好。ckeditor

当alert(xxx)不出东西时,可以试一下(confirm(xxx)。

<script type="text/javascript"> 
 var notes;
 $(function(){
  notes = CKEDITOR.replace("content",{customConfig:'create_task_config.js'});
 });

 CKEDITOR.replace("content",{height:300});
 function addContent(){
  confirm(notes.getData());//比alert效果更好一点
  var content = window.document.getElementById("content");
  content.value = "";
  content.innerHTML = notes.getData();
  $("#tabs1").tabs( "select",'tabs-1');
 }

 
</script>

本次遇到的问题是发生在ckeditor使用中。当要alert(ckeditor.replace())

原文地址:https://www.cnblogs.com/guanghuiqq/p/2627735.html