簡體   English   中英

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”,

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM