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