我想重现这个简单的行为:
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 -->
我已经将“autoresize”添加到插件列表中,但我的编辑在我写作时没有调整大小,他们只是滚动。我在同一页面中有多个编辑器。我的代码出了什么问题?
答案 0 :(得分:1)
<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”,