Commit cf9bf7ae authored by Marco Huber's avatar Marco Huber

[BUGFIX/REVERT] Revert 4bd962b5 and use unique identifier to enable both,...

[BUGFIX/REVERT] Revert 4bd962b5 and use unique identifier to enable both, multiple RTEs in one record and multiple RTEs because of IRRE
parent 8801f31d
......@@ -301,14 +301,11 @@ class Loader {
var RTEarea = RTEarea || window.RTEarea;
define([\'TYPO3/CMS/Tinymce/../../../../typo3conf/ext/tinymce/tinymce_node_modules/tinymce/jquery.tinymce.min.js\'], function () {
if(!$(\'.tinymce4_rte\').data(\'first\')){
$(\'.tinymce4_rte\').data(\'first\', true);
$(\'.tinymce4_rte\').tinymce({
script_url : \'' . $this->getPath($tinymceSource, TRUE) . '\',
' . $this->replaceTypo3Paths($this->tinymceConfiguration['configurationData']) . '
});
}
$(\'.tinymce4_rte#RTEarea' . $this->tinymceConfiguration['configurationDataArray']['editornumber'] . '\').tinymce({
script_url : \'' . $this->getPath($tinymceSource, TRUE) . '\',
' . $this->replaceTypo3Paths($this->tinymceConfiguration['configurationData']) . ',
selector: \'.tinymce4_rte#RTEarea' . $this->tinymceConfiguration['configurationDataArray']['editornumber'] . '\'
});
});
';
$configuration .= $this->tinymceConfiguration['postJS'];
......@@ -380,6 +377,7 @@ class Loader {
}
$this->tinymceConfiguration['configurationData'] .= $key . ': ' . $value;
$this->tinymceConfiguration['configurationDataArray'][$key] = $value;
}
/**
......
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