Проблема с редактором TinyMce в Google Chrome - PullRequest
0 голосов
/ 21 марта 2012

У меня проблема с редактором TinyMce в Google Chrome. редактор не закрывается в этом браузере. все управление редактированием лежит в одной строке. это не происходит в других браузерах. Как решить эту проблему? Пожалуйста, какие-либо предложения?

ниже моя кодировка для TinyMce

{literal}
        <script type="text/javascript" src="{/literal}{$BASE_URL}{literal}js/tiny_mce/tiny_mce.js"></script>
        <script language="javascript" type="text/javascript">
            tinyMCE.init({
                mode : "textareas",
                editor_selector : "mceEditor",
                theme: "advanced",
                  plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
      theme_advanced_toolbar_align: "left",
                theme_advanced_toolbar_location: "top",
                // Theme options
            theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",
            theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo",
            theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup",
            theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
            theme_advanced_buttons5: "link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
            theme_advanced_buttons6: "fontselect,fontsizeselect,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "bottom",
            theme_advanced_resizing : true,

     template_external_list_url : "{/literal}{$BASE_URL}{literal}js/template_list.js",
            external_link_list_url : "{/literal}{$BASE_URL}{literal}js/link_list.js",
            external_image_list_url : "{/literal}{$BASE_URL}{literal}js/image_list.js",
            media_external_list_url : "{/literal}{$BASE_URL}{literal}js/media_list.js",

                height: "365px",
                width: "610px"



            });
        </script>
        {/literal}

1 Ответ

0 голосов
/ 01 апреля 2012

CSS

Вы можете попробовать решение CSS:

.mceEditor > table {
    width:/* my width */ !important;
}

и / или вы можете получить доступ к ширине панели инструментов непосредственно с помощью .mceToolbar

Конфигурация

Или попробуйте изменить свою конфигурацию, удалив px из настроек height и width:

{literal}
        <script type="text/javascript" src="{/literal}{$BASE_URL}{literal}js/tiny_mce/tiny_mce.js"></script>
        <script language="javascript" type="text/javascript">
            tinyMCE.init({
                mode : "textareas",
                editor_selector : "mceEditor",
                theme: "advanced",
                  plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
      theme_advanced_toolbar_align: "left",
                theme_advanced_toolbar_location: "top",
                // Theme options
            theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",
            theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo",
            theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup",
            theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
            theme_advanced_buttons5: "link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
            theme_advanced_buttons6: "fontselect,fontsizeselect,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "bottom",
            theme_advanced_resizing : true,

     template_external_list_url : "{/literal}{$BASE_URL}{literal}js/template_list.js",
            external_link_list_url : "{/literal}{$BASE_URL}{literal}js/link_list.js",
            external_image_list_url : "{/literal}{$BASE_URL}{literal}js/image_list.js",
            media_external_list_url : "{/literal}{$BASE_URL}{literal}js/media_list.js",

                height: "365",
                width: "610"
            });
        </script>
        {/literal}

http://www.tinymce.com/wiki.php/Configuration:width

...