Skip to content
Snippets Groups Projects
Commit db780b0b authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

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

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