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

[TASK] Rename node_modules, because TYPO3 simply strips this directory from the release

parent 6c419f57
No related branches found
No related tags found
No related merge requests found
Showing
with 7 additions and 6 deletions
......@@ -130,7 +130,7 @@ class Loader {
}
$languageFile = PATH_site . ExtensionManagementUtility::siteRelPath('tinymce') .
'node_modules/tinymce/langs/' . $languageKey . '.js';
'tinymce_node_modules/tinymce/langs/' . $languageKey . '.js';
if (!is_file($languageFile)) {
$languageKey = 'en';
}
......@@ -230,7 +230,7 @@ class Loader {
self::$init = TRUE;
$pathToTinyMceExtension = ExtensionManagementUtility::extRelPath('tinymce');
$script = $GLOBALS['BACK_PATH'] . $pathToTinyMceExtension . 'node_modules/tinymce/tinymce.min.js';
$script = $GLOBALS['BACK_PATH'] . $pathToTinyMceExtension . 'tinymce_node_modules/tinymce/tinymce.min.js';
$output = '<script type="text/javascript" src="' . $script . '"></script>';
$script = $GLOBALS['BACK_PATH'] . $pathToTinyMceExtension . 'Contrib/WeakMap/WeakMap.js';
......@@ -264,7 +264,7 @@ class Loader {
self::$init = TRUE;
$pathToTinyMceExtension = ExtensionManagementUtility::extRelPath('tinymce');
$script = $GLOBALS['BACK_PATH'] . $pathToTinyMceExtension . 'node_modules/tinymce/tinymce.min.js';
$script = $GLOBALS['BACK_PATH'] . $pathToTinyMceExtension . 'tinymce_node_modules/tinymce/tinymce.min.js';
$pageRenderer->addJsLibrary('tinymce', $script, 'text/javascript', FALSE, TRUE, '', TRUE);
$script = $GLOBALS['BACK_PATH'] . $pathToTinyMceExtension . 'Contrib/MutationObserver/MutationObserver.js';
......@@ -293,13 +293,13 @@ class Loader {
self::$init = TRUE;
$pathToTinyMceExtension = ExtensionManagementUtility::extPath('tinymce');
$tinymceSource = $pathToTinyMceExtension . 'node_modules/tinymce/tinymce.min.js';
$tinymceSource = $pathToTinyMceExtension . 'tinymce_node_modules/tinymce/tinymce.min.js';
$configuration = $this->tinymceConfiguration['preJS'];
$configuration .= '
var $ = jQuery = window.TYPO3.jQuery;
var RTEarea = RTEarea || window.RTEarea;
define([\'TYPO3/CMS/Tinymce/../../../../typo3conf/ext/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 () {
$(\'.tinymce4_rte\').tinymce({
script_url : \'' . $this->getPath($tinymceSource, TRUE) . '\',
' . $this->replaceTypo3Paths($this->tinymceConfiguration['configurationData']) . '
......
......@@ -7,4 +7,5 @@
$('input[type=checkbox]').attr('checked', 1)
3. Add the "langs" directory inside node_modules/tinymce with the downloaded languages
\ No newline at end of file
3. Rename node_modules to tinymce_mode_modules, because TYPO3 removes the node_modules directory
4. Add the "langs" directory inside tinymce_node_modules/tinymce with the downloaded languages
\ No newline at end of file
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