Commit e699df35 authored by Marco Huber's avatar Marco Huber

In a flexform (f.e. powermail) the RTE id can have a . which has to be escaped...

In a flexform (f.e. powermail) the RTE id can have a . which has to be escaped to make the jquery selector work
parent 55451595
......@@ -301,10 +301,10 @@ class Loader {
var RTEarea = RTEarea || window.RTEarea;
define([\'TYPO3/CMS/Tinymce/../../../../typo3conf/ext/tinymce/tinymce_node_modules/tinymce/jquery.tinymce.min.js\'], function () {
$(\'.tinymce4_rte#RTEarea' . $this->tinymceConfiguration['configurationDataArray']['editornumber'] . '\').tinymce({
$(\'.tinymce4_rte#RTEarea' . str_replace('.', '\\\\.', $this->tinymceConfiguration['configurationDataArray']['editornumber']) . '\').tinymce({
script_url : \'' . $this->getPath($tinymceSource, TRUE) . '\',
' . $this->replaceTypo3Paths($this->tinymceConfiguration['configurationData']) . ',
selector: \'.tinymce4_rte#RTEarea' . $this->tinymceConfiguration['configurationDataArray']['editornumber'] . '\'
selector: \'.tinymce4_rte#RTEarea' . str_replace('.', '\\\\.', $this->tinymceConfiguration['configurationDataArray']['editornumber']) . '\'
});
});
';
......
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