0
我的tinymce工作正常,但setcontent只能在加載一次後才能工作(它沒有內容),但是在關閉並重新打開之後,它就是內容。tinymce setcontent僅在第二次加載時加載
JS:
tinymce.remove();
tinymce.init({ selector: 'textarea' });
tinyMCE.activeEditor.setContent(r.htmleditorcontent);
錯誤第一次加載:
TypeError: n.parser is undefined
..."SetContent",t)):("raw"!==t.format&&(e=new s({validate:n.validate},n.schema).ser...
錯誤只如果你想內容加載到TinyMCE的,你可以使用頁面加載發生在第一次加載