2012-04-03 99 views
2

我有三個使用tinymce作爲文本區域的textareas。他們都工作在鉻,但不是在Firefox。我使用php代碼從mysql加載文本。第一個textarea加載正常並可以正常工作,但另外兩個短暫地閃爍了內容,然後它消失了。我無法在框中插入任何內容。這裏是腳本:tinymce不能在Firefox上工作

<!-- Load TinyMCE --> 
<script type="text/javascript" 
src="functions/tinymce/jscripts/tiny_mce/jquery.tinymce.js"></script> 
<script type="text/javascript"> 
$(document).ready(function() { 
    $('textarea.tinymce').tinymce({ 
     // Location of TinyMCE script 
     script_url : 'functions/tinymce/jscripts/tiny_mce/tiny_mce.js', 

     // General options 
plugins : '-examples', // - tells TinyMCE to skip the loading of the plugin 
mode : "textareas", 
theme : "advanced", 
theme_advanced_buttons1 : 
"mylistbox,mysplitbutton,bold,italic,underline,separator,strikethrough,justifyleft, 
justifycenter,justifyright,justifyfull,bullist,numlist,undo,redo,link, 
unlink", 
theme_advanced_buttons2 : "code,forecolor,backcolor", 
theme_advanced_buttons3 : "", 
theme_advanced_toolbar_location : "top", 
theme_advanced_toolbar_align : "left", 
theme_advanced_statusbar_location : "bottom" 



    }); 

    $('textarea.tinymce2').tinymce({ 
     // Location of TinyMCE script 
     script_url : 'functions/tinymce/jscripts/tiny_mce/tiny_mce.js', 

     // General options 
plugins : '-examples', // - tells TinyMCE to skip the loading of the plugin 
mode : "textareas", 
theme : "advanced", 
theme_advanced_buttons1: 
"mylistbox,mysplitbutton,bold,italic,underline,separator,strikethrough,justifyleft, 
justifycenter,justifyright,justifyfull,bullist,numlist,undo,redo,link,unlink", 
theme_advanced_buttons2 : "code,forecolor,backcolor", 
theme_advanced_buttons3 : "", 
theme_advanced_toolbar_location : "top", 
theme_advanced_toolbar_align : "left", 
theme_advanced_statusbar_location : "bottom" 



    }); 

    $('textarea.tinymce3').tinymce({ 
     // Location of TinyMCE script 
     script_url : 'functions/tinymce/jscripts/tiny_mce/tiny_mce.js', 

     // General options 
plugins : '-examples', // - tells TinyMCE to skip the loading of the plugin 
mode : "textareas", 
theme : "advanced", 
theme_advanced_buttons1: 
"mylistbox,mysplitbutton,bold,italic,underline,separator,strikethrough,justifyleft, 
justifycenter,justifyright,justifyfull,bullist,numlist,undo,redo,link,unlink", 
theme_advanced_buttons2 : "code,forecolor,backcolor", 
theme_advanced_buttons3 : "", 
theme_advanced_toolbar_location : "top", 
theme_advanced_toolbar_align : "left", 
theme_advanced_statusbar_location : "bottom" 



    }); 

}); 
</script> 
<!-- /TinyMCE --> 

任何想法如何解決這個問題? 感謝蘭迪

回答

2

這是一個bug在tinyMCE或在最新的FF更新。

無論哪種方式,解決方法是更改​​一些CSS值(例如,通過拖動使可編輯的內容區域變大/變小)以使其重繪內容。

TinyMCE錯誤跟蹤器上還有一個ticket about it。在該錯誤得到解決之前,您必須先解決該問題。

0

Depositphotos JavaScript顯示關閉。如果您使用的是Web開發工具插件,請檢查瀏覽器的左上角,然後單擊禁用>禁用JavaScript>取消選中禁用所有腳本。那可行。