How to refresh tinymce iframe?
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();
精彩评论