TinyMCE错误:无法读取null的属性“ body”

时间:2020-09-19 13:22:47

标签: tinymce

这是我如何初始化它。问题是在第二次打开时出现的。而且这只会在Chrome中发生。 Mozilla Firefox运行良好。

tinyMCE.init({
          mode : "exact",
          elements : "email_content",
          theme : "advanced",
          theme_advanced_resizing : true,
          plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
          theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|formatselect,fontselect,fontsizeselect",
          theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,code,|,forecolor,backcolor"
});

1 个答案:

答案 0 :(得分:3)

在chrome更新(版本85)之后,我遇到了同样的问题,但是tinyMCE.init之前的这一行对我有用:

tinyMCE.EditorManager.editors = [];

tinyMCE.editors = [];