开发者

How to edit content using Tiny Mce

I am using Tiny MCE to edit some content within my site. I am having problems displaying text within the Tiny MCE content area ,which has been retrie开发者_高级运维ved from the database.

What am I doing wrong? The text is plain not HTML formatted.

Thanks


You need to either load the content inside the textarea before initializing tinymce or update the editor's content after initialization. This can be done using: tinymce.activeEditor.setContent('content');//setcontent needs to be called on the right editor instance

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜