处理FCKeditor SetHTML无效

论坛 期权论坛 脚本     
匿名技术用户   2021-1-5 06:09   11   0

问题陈述:

from :http://cksource.com/forums/viewtopic.php?f=6&t=10058



编辑器的创建不是线程安全的



页面中:

<tr>

<td colspan="6">
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = "${ctx}/fckeditor/";
oFCKeditor.Create() ;
var oEditor = FCKeditorAPI.GetInstance('oFCKeditor');
alert("----");
FCKeditor_OnComplete(oEditor);
</script>
</td>

</tr>

JS:

<script type="text/javascript">
function FCKeditor_OnComplete( editorInstance )// 等待editor创建完成
{
editorInstance.SetData('${editData}');
}
</script>

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP