Commit cf9bf7ae authored by Marco Huber's avatar Marco Huber
Browse files

[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 { ...@@ -301,14 +301,11 @@ class Loader {
var RTEarea = RTEarea || window.RTEarea; var RTEarea = RTEarea || window.RTEarea;
define([\'TYPO3/CMS/Tinymce/../../../../typo3conf/ext/tinymce/tinymce_node_modules/tinymce/jquery.tinymce.min.js\'], function () { define([\'TYPO3/CMS/Tinymce/../../../../typo3conf/ext/tinymce/tinymce_node_modules/tinymce/jquery.tinymce.min.js\'], function () {
if(!$(\'.tinymce4_rte\').data(\'first\')){ $(\'.tinymce4_rte#RTEarea' . $this->tinymceConfiguration['configurationDataArray']['editornumber'] . '\').tinymce({
$(\'.tinymce4_rte\').data(\'first\', true); script_url : \'' . $this->getPath($tinymceSource, TRUE) . '\',
$(\'.tinymce4_rte\').tinymce({ ' . $this->replaceTypo3Paths($this->tinymceConfiguration['configurationData']) . ',
script_url : \'' . $this->getPath($tinymceSource, TRUE) . '\', selector: \'.tinymce4_rte#RTEarea' . $this->tinymceConfiguration['configurationDataArray']['editornumber'] . '\'
' . $this->replaceTypo3Paths($this->tinymceConfiguration['configurationData']) . ' });
});
}
}); });
'; ';
$configuration .= $this->tinymceConfiguration['postJS']; $configuration .= $this->tinymceConfiguration['postJS'];
...@@ -380,6 +377,7 @@ class Loader { ...@@ -380,6 +377,7 @@ class Loader {
} }
$this->tinymceConfiguration['configurationData'] .= $key . ': ' . $value; $this->tinymceConfiguration['configurationData'] .= $key . ': ' . $value;
$this->tinymceConfiguration['configurationDataArray'][$key] = $value;
} }
/** /**
......
Supports Markdown
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