Commit db780b0b authored by Stefan Galinski's avatar Stefan Galinski 🎮

[BUGFIX] An js error is thrown in IRRE elements with RTE fields sometimes

parent 983ae115
......@@ -142,11 +142,11 @@ class tinyMCE {
$configuration = $this->tinymceConfiguration['preJS'];
$configuration .= '
var executeTinymceInit = function() {
if (!tinymce || !tinymce.init) {
if (!window.tinymce || (window.tinymce && !window.tinymce.init)) {
return;
}
tinymce.init({
window.tinymce.init({
' . $this->replaceTypo3Paths($this->tinymceConfiguration['configurationData']) . '
});
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment