小编Jas*_*per的帖子

如何设置tinymce默认内容

我的tinymce版本是3.5.8.我想设置默认内容,并通过官方网站和谷歌的其他方式尝试,但所有错误.一些错误如下:

TypeError: tinyMCE.activeEditor is null
[Break On This Error] 
tinyMCE.activeEditor.selection.setContent('<strong>Some contents</strong>');



TypeError: tinyMCE.get(...) is undefined
[Break On This Error]   

tinyMCE.get('content').setContent('<strong>Some contents</strong>');
Run Code Online (Sandbox Code Playgroud)

非常感谢.

default tinymce

2
推荐指数
1
解决办法
7369
查看次数

标签 统计

default ×1

tinymce ×1