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的,你可以使用页面加载发生在第一次加载