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

Merge branch 'master' into 'master'

[BUGFIX] Fix broken RTE within flexform

In my case with EXT:flux and TYPO3 7.6 the RTE doesn't appear. This is caused by a syntax error within the JavaScript. The selector of the content element text field looks actually like $('.tinymce4_rte#RTEarea'data_tt_content__55__bodytext_''), where are single quotes arround the "editornumber". This is caused by addConfigurationOption(), where strings get wrapped.

This fix removes the single quotes around the string and respects the previous fix in Commit e699df35.

Feedback is welcome.

Best regards,

David

See merge request !9
parents 681d6b6d 04fb048d
No related branches found
No related tags found
1 merge request!9[BUGFIX] Fix broken RTE within flexform
......@@ -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' . str_replace('.', '\\\\.', $this->tinymceConfiguration['configurationDataArray']['editornumber']) . '\').tinymce({
$(\'.tinymce4_rte#RTEarea' . strtr($this->tinymceConfiguration['configurationDataArray']['editornumber'], array('.' => '\\\\.', '\'' => '')) . '\').tinymce({
script_url : \'' . $this->getPath($tinymceSource, TRUE) . '\',
' . $this->replaceTypo3Paths($this->tinymceConfiguration['configurationData']) . ',
selector: \'.tinymce4_rte#RTEarea' . str_replace('.', '\\\\.', $this->tinymceConfiguration['configurationDataArray']['editornumber']) . '\'
selector: \'.tinymce4_rte#RTEarea' . strtr($this->tinymceConfiguration['configurationDataArray']['editornumber'], array('.' => '\\\\.', '\'' => '')) . '\'
});
});
';
......
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