2012-01-07 9 views
1

TinyMCEで奇妙な問題が発生しています。カーソルを最後までクリックすると、行の長さによってエディタがサイズ(幅/高さ)を変更することがあります。Tinymce Editorは、テキスト行の長さが異なるとサイズを変更します

これはデモでは起こりません。私のオプションがデフォルトと根本的にどのように違うのか分かりません。カーソルが各行の末尾にあるときにここで

は同じテキストが、異なるサイズの一例である:

1.

2.

誰にもこの種の動作を見ていますか?

それがあったように私の初期化コード:私は再びこの見て確かめることができるものから、

$('textarea.tinymce').tinymce({ 
     // Location of TinyMCE script 
     script_url : '/assets/modules/tiny_mce/tiny_mce_gzip.php', 

     // General options 
     mode : "textareas", 
     theme : "advanced", 
     plugins : "spellchecker", 
     editor_selector : "tinymce", 

     // Theme options 
     theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,formatselect,fontselect,fontsizeselect", 
     theme_advanced_buttons2 : "justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,forecolor,backcolor,spellchecker", 
     theme_advanced_buttons3 : "", 
     theme_advanced_buttons4 : "", 
     theme_advanced_toolbar_location : "top", 
     theme_advanced_toolbar_align : "left", 
     theme_advanced_statusbar_location : "bottom", 
     theme_advanced_resizing : false, 

     apply_source_formatting : true, 
     paste_auto_cleanup_on_paste : true, 
     paste_retain_style_properties : false, 
     paste_strip_class_attributes : true, 
     paste_remove_spans : true, 
     paste_remove_styles : true, 
     paste_remove_styles_if_webkit : true, 
     cleanup : true, 

     content_css : '/assets/modules/tiny_mce/themes/advanced/skins/default/myownstyle.css', 
+0

これはtinymceのデモページでも起こりますか? – Thariama

+0

私が転記で言ったように。これはデモでは起こりません。私は問題が何であるかを知っていると思うが、私は技術的な困難を経験しており、まだ投稿を回答としてマークすることはできない。 – PaulM

答えて

0

私が持っている場合:

apply_source_formatting : false, 
    /*paste_auto_cleanup_on_paste : true, 
    paste_retain_style_properties : false, 
    paste_strip_class_attributes : true, 
    paste_remove_spans : true, 
    paste_remove_styles : true, 
    paste_remove_styles_if_webkit : true,*/ 
    cleanup : true, 

とも

ed.onInit.add(function(ed) { 
      ed.pasteAsPlainText = true; 
     }); 

を次にテキストが未フォーマットで来ても、テキストの異なる部分をクリックすると、エディタのサイズを変更しません。

これは私にとっては問題ありません。私はペーストのフォーマットをキャプチャすることについてあまり気にしません。

関連する問題