请参阅以下代码:
tinymce.init({
selector:"#editArea", //id of my textarea to be replaced by tinymce
plugins : [
"advlist autolink link image lists charmap print preview textcolor colorpicker image imagetools contextmenu" ,
"autosave searchreplace wordcount insertdatetime code media nonbreaking spellchecker save table",
"directionality emoticons template paste visualblocks visualchars hr anchor pagebreak autoresize"
],
fontsize_formats: "8pt 9pt 10pt 11pt 12pt 26pt 36pt",
forced_root_block : '',
schema: "html5",
autosave_ask_before_unload:true,
image_title: true,
paste_data_images:true,
toolbar: ["save undo redo styleselect ",
"alignleft aligncenter alignright emoticons",
" bullist numlist outdent bold italic ",
" indent forecolor backcolor code image",
"fontselect fontsizeselect"],
contextmenu: "link image inserttable | cell row column deletetable",
automatic_uploads: true,
setup:function(ed){
ed.onLoadContent.add(function(ed,o){
o.content=o.content.replace(/Â/g,'');
});
}
});
为什么tinymce编辑器在写入设置功能时会消失(如果我在上面的代码中注释掉设置功能部分,则可见)?