开发者

How to refresh tinymce iframe?

开发者 https://www.devze.com 2023-01-28 00:28 出处:网络
How can I refresh the tinymce content or refresh the tinymce iframe using jquery开发者_开发知识库?This code is used to refresh tinymce:

How can I refresh the tinymce content or refresh the tinymce iframe using jquery开发者_开发知识库?


This code is used to refresh tinymce:

tinyMCE.execCommand("mceRepaint");


You can use this statement to refresh (replace) the content:

editor.execCommand('mceSetContent', false, html);

Or if you want to make sure the dirty flag is cleared:

editor.execCommand('mceSetContent', false, html);
editor.startContent = tinymce.trim(editor.getContent({ format: 'raw' }));
editor.isNotDirty = true;
editor.nodeChanged();
0

精彩评论

暂无评论...
验证码 换一张
取 消