问题
How can I refresh the tinymce content or refresh the tinymce iframe using jquery?
回答1:
This code is used to refresh tinymce:
tinyMCE.execCommand("mceRepaint");
回答2:
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();
来源:https://stackoverflow.com/questions/4324653/how-to-refresh-tinymce-iframe