tinymce没有在firefox上工作

时间:2012-04-03 22:14:07

标签: tinymce

我有三个textareas使用tinymce作为文本区域。他们都使用chrome而不是firefox。我正在使用php代码从mysql加载文本。第一个textarea加载正常并工作,但其他两个短暂地闪烁内容然后它消失了。我无法在包装盒中插入任何东西。这是脚本:

<!-- 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 个答案:

答案 0 :(得分:2)

这是tinyMCE或最新FF更新中的错误。

无论哪种方式,解决方法是更改​​一些CSS值(例如通过拖动使可编辑内容区域更大/更小),让它重绘内容。

TinyMCE错误跟踪器上还有一个ticket about it。在修复该错误之前,您必须寻求解决方法。

答案 1 :(得分:0)

你的javascript已关闭。如果您使用的是web开发者工具插件,请检查浏览器的左上角,然后单击禁用&gt;禁用javascript&gt;取消选中禁用所有脚本。这将有效。