光辉飞翔

导航

 

当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())

posted on 2012-08-08 10:08  光辉飞翔  阅读(186)  评论(0编辑  收藏  举报