TinyMCE 自动调整大小插件不起作用
TinyMCE autoresize plugin not works
我想重现这种简单的行为:
http://tinymcesupport.com/tutorials/autoresize-automatic-resize-plugin
这是我的初始化:
<!-- TinyMCE -->
<script type="text/javascript" src="js/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "exact",
elements : "pagina_testo_colonna1,pagina_testo_colonna2,pagina_testo_colonna3",
theme : "advanced",
plugins:"paste,autoresize",
plugin_preview_width : "100%",
width : "100%",
theme_advanced_buttons1 : "pastetext,|,bold,italic,underline,strikethrough,|,bullist,numlist,|,indent,outdent,|,undo,redo,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink,|,charmap",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 :"",
theme_advanced_disable : "image,anchor,cleanup,help,code,hr,removeformat,sub,sup",
theme_advanced_resizing : true,
paste_text_use_dialog : true,
relative_urls : false,
remove_script_host : false
});
</script>
<!-- /TinyMCE -->
我已经在插件列表中添加了"自动调整大小",但我的编辑器在我写作时不会调整大小,他们只是滚动。我在同一页面中有多个编辑器。我的代码有什么问题?
<script type="text/javascript">
tinyMCE.init({
mode : "exact",
elements : "pagina_testo_colonna1,pagina_testo_colonna2,pagina_testo_colonna3",
theme : "advanced",
plugins:"paste,autoresize",
plugin_preview_width : "100%",
width : "100%",
theme_advanced_buttons1 : "pastetext,|,bold,italic,underline,strikethrough,|,bullist,numlist,|,indent,outdent,|,undo,redo,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink,|,charmap",
autoresize_min_height : "100px",
autoresize_max_height : "500px",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 :"",
theme_advanced_disable : "image,anchor,cleanup,help,code,hr,removeformat,sub,sup",
theme_advanced_resizing : true,
paste_text_use_dialog : true,
relative_urls : false,
remove_script_host : false
});
</script>
要工作,我必须设置参数autoresize_min_height:"100px",autoresize_max_height : "500px",
相关文章:
- 当我动态创建元素时,选择的插件不起作用
- jQuery基本插件不起作用
- 修复Angular数据表中的头插件不起作用
- jquery在动态表单输入上验证插件不起作用
- jQuery插件不起作用
- Rails-jQuery地理编码和Places自动完成插件不起作用
- 灯箱 jquery 插件不起作用
- TinyMCE 自动调整大小插件不起作用
- 升级到 cordova 3.1.0 后,推送插件不起作用
- Timeago Jquery插件不起作用
- 科尔多瓦插件不起作用
- 为什么jQuery循环插件不起作用
- 无限滚动jquery插件不起作用
- 电话间隙蓝牙插件不起作用
- jQuery“流沙”插件不起作用,我该如何使用它
- Joomla 中的 jquery 自定义插件不起作用
- Struts 2 jQuery插件不起作用
- 链接配置文件插件不起作用
- jQuery 颜色选择器插件不起作用
- 德鲁威尔逊自动建议插件不起作用