2012-04-03 2 views
2

Ich habe drei textareas mit tinymce als Textbereich. Sie arbeiten alle in Chrom, aber nicht auf Firefox. Ich lade den Text von MySQL mit PHP-Code. Das erste Textfeld lädt ok und funktioniert, aber die anderen beiden blinken kurz den Inhalt und dann ist es weg. Ich kann nichts in die Box einfügen. Hier ist das Skript:tinymce funktioniert nicht auf 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 --> 

Irgendwelche Ideen, wie das zu beheben? Danke Randy

Antwort

2

Es ist ein Fehler entweder in tinyMCE oder im neuesten FF-Update.

In jedem Fall besteht die Problemumgehung darin, einige CSS-Werte zu ändern (indem Sie beispielsweise den bearbeitbaren Inhaltsbereich durch Ziehen vergrößern oder verkleinern), damit der Inhalt neu gezeichnet wird.

Es gibt auch eine ticket about it auf dem TinyMCE Bug-Tracker. Bis dieser Fehler behoben ist, müssen Sie die Problemumgehung umgehen.

0

Ihr Javascript ist deaktiviert. Wenn Sie das Add-on für Webentwickler-Tools verwenden, aktivieren Sie das Kontrollkästchen oben links im Browser und klicken Sie auf deaktivieren> JavaScript deaktivieren> deaktivieren Sie alle Skripts deaktivieren. das wird funktionieren.