Javascript CKEditor未在flex中重新加载
我用过flexJavascript CKEditor未在flex中重新加载,javascript,actionscript-3,apache-flex,ckeditor,Javascript,Actionscript 3,Apache Flex,Ckeditor,我用过flex <ckeditor:CKEditor id="editor1" width="100%" height="100%"> <ckeditor:htmlText> <![CDATA[ ]]> </ckeditor:htmlText> </ckeditor:CKEditor> 问题: 但是,当我转到另一个屏幕并再次回到编辑器屏幕时,它的行为会很
<ckeditor:CKEditor id="editor1" width="100%" height="100%">
<ckeditor:htmlText>
<![CDATA[
]]>
</ckeditor:htmlText>
</ckeditor:CKEditor>
问题:
但是,当我转到另一个屏幕并再次回到编辑器屏幕时,它的行为会很奇怪。我不能添加html文本,也不能清除
第一次加载时,其在检查元件中的外观如下:
<div id="ck0" style="position: absolute; background-color: transparent;
border: 0px none; visibility: hidden; left: 312px; top: 114px;">
我认为您的代码(Flex/JS)中有错误。尝试验证一下,或者你可以添加你的代码来验证…@akmozo我已经在这里添加了我的代码ckeditor@akmozo我使用了
editor1.htmlText = "";
<div id="ck0" style="position: absolute; background-color: transparent;
border: 0px none; visibility: hidden; left: 312px; top: 114px;">
<div id="ck0" style="position: absolute; background-color: transparent;
border: 0px none; visibility: hidden; left: 312px; top: 114px;">
<div id="ck1" style="position: absolute; background-color: transparent;
border: 0px none; visibility: visible; left: 312px; top: 114px;">
<body onpageshow="event.persisted && (function(){var allInstances = CKEDITOR.instances, editor, doc;for ( var i in allInstances ){ editor = allInstances[ i ]; doc = editor.document; if ( doc ) { doc.$.designMode = "off"; doc.$.designMode = "on"; }}})();">