我已按如下方式初始化 TinyMCE。我想在用户按 Enter 键而不是段落时强制换行。我正在尝试关注,但没有成功。我正在使用 TinyMCE 版本 3_3_8。
tinyMCE.init({
mode: "exact",
theme: "advanced",
elements: "textAreaId",
cleanup: false,
theme_advanced_toolbar_location: "",
theme_advanced_buttons1: "",
theme_advanced_buttons2: "",
theme_advanced_buttons3: "",
height: 200,
width: 300,
forced_root_block : false,
force_br_newlines : true,
force_p_newlines : false,
oninit: InitPosition
}); //init ends
我试图定义forced_root_block : ""
,但仍然不起作用。
我究竟做错了什么?
只需添加forced_root_block : false
或者如果你想要一个包装:forced_root_block : 'div'
,
奇迹般有效!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)