我使用微型MCE编辑器版本:3.5.7
我使用具有唯一ID同一页面上的文本编辑器的多个实例,我已经包裹在一个div这些编辑器显示和隐藏这些编辑器。一切工作正常。现在,我想在用户隐藏编辑器时清除编辑器的内容(以便在再次显示时删除先前的内容)。我试图用tinyMCE.get('editorId').setContent(''),它工作正常只有一次....我的意思是一旦我已经使用上述功能比我无法设置或即使得到该编辑器实例的内容。我所使用的结构如下:无法获取/ MCE的小编辑器的设置内容
<div id="parentDIV">
<div id="1_editor">
</div>
</div>
tinyMCE.init({
mode: "exact",
max_char: "2000",
elements: "1_editor",
// Setting up ToolBar
theme: "advanced",
theme_advanced_layout_manager: "SimpleLayout",
theme_advanced_buttons1: "bold,italic,underline, strikethrough, separator,justifyleft, justifycenter,justifyright, justifyfull, separator,bullist,numlist,separator,fontselect ,fontsizeselect",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
});
显示和隐藏我做这样的事情的编者:
$('#parentDIV').hide();
$('#parentDIV').show();
谁能帮助吗?
检查这个捣鼓出http://fiddle.tinymce.com/Tpcaab –