2012-04-03 54 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>取消选中禁用所有脚本。那可行。