TinyMCE文本编辑器未加载我的文本 [英] TinyMCE text editor is not loading my text

查看:117
本文介绍了TinyMCE文本编辑器未加载我的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在页面中使用TinyMCE,但未加载所需的HTML文本. 我使用以下代码在Javascript中动态创建了此文本,但是在使用TinyMCE文本编辑器后,该文本未加载到TinyMCE文本编辑器中.

I am using TinyMCE in my page but it's not loading the required Html text. I have created the this text dynamically in Javascript using following code but after using TinyMCE text editor, The text is not loaded inside TinyMCE text editor.

$('#mytextAreaID').Text(htmlcode);

$('#mytextAreaID').Text(htmlcode);

我在这里错过了什么?

推荐答案

以下主题帮助我解决了此问题:

Following thread helped me to resolve this issue:

TinyMCE在隐藏该内容之前未从textarea抓取内容文本区域

tinyMCE.execCommand('mceAddControl', false, 'editor1');

这篇关于TinyMCE文本编辑器未加载我的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆