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

[BUGFIX] RTE not loaded in IRRE elements

parent d996850a
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,10 @@ class Loader {
SG.initTinyMceLoadFunction = function() {
if (SG.initializedTinyMceLoaderInstance) {
if (SG.initTinyMceLoadInterval) {
clearInterval(SG.initTinyMceLoadInterval);
}
return;
}
......@@ -158,12 +162,20 @@ class Loader {
SG.initializedTinyMceLoaderInstance = new SG.TinyMceLoader(window.tinymce, {
' . $this->replaceTypo3Paths($this->tinymceConfiguration['configurationData']) . '
});
if (SG.initTinyMceLoadInterval) {
clearInterval(SG.initTinyMceLoadInterval);
}
}
};
SG.domIsReady(function() {
SG.initTinyMceLoadFunction();
});
// the content ready event is not thrown if RTE fields are loaded via IRRE
// so we need to check at least after some time if the function was really called
SG.initTinyMceLoadInterval = window.setInterval(SG.initTinyMceLoadFunction, 1500);
';
$configuration .= $this->tinymceConfiguration['postJS'];
......
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