Commit 0dfdc922 authored by Fabian Galinski's avatar Fabian Galinski 😾
Browse files

[BUGFIX] An error appears, if the tinymce is selected as editor

parent 34472062
...@@ -28,6 +28,7 @@ namespace SGalinski\Lfeditor\Controller; ...@@ -28,6 +28,7 @@ namespace SGalinski\Lfeditor\Controller;
use SGalinski\Lfeditor\Exceptions\LFException; use SGalinski\Lfeditor\Exceptions\LFException;
use SGalinski\Lfeditor\Session\PhpSession; use SGalinski\Lfeditor\Session\PhpSession;
use SGalinski\Tinymce\Loader;
use TYPO3\CMS\Core\Cache\CacheManager; use TYPO3\CMS\Core\Cache\CacheManager;
use TYPO3\CMS\Core\Messaging\AbstractMessage; use TYPO3\CMS\Core\Messaging\AbstractMessage;
use TYPO3\CMS\Core\Page\PageRenderer; use TYPO3\CMS\Core\Page\PageRenderer;
...@@ -279,7 +280,7 @@ abstract class AbstractController extends ActionController { ...@@ -279,7 +280,7 @@ abstract class AbstractController extends ActionController {
} }
$pathTinyMCEConfig = PATH_site . ExtensionManagementUtility::siteRelPath('lfeditor') $pathTinyMCEConfig = PATH_site . ExtensionManagementUtility::siteRelPath('lfeditor')
. 'Resources/Public/Scripts/TinyMCEConfig.js'; . 'Resources/Public/Scripts/TinyMCEConfig.js';
$tinyMCE = $this->objectManager->get('\SGalinski\Tinymce\Loader'); $tinyMCE = $this->objectManager->get(Loader::class);
$tinyMCE->loadConfiguration($pathTinyMCEConfig); $tinyMCE->loadConfiguration($pathTinyMCEConfig);
/** @var PageRenderer $pageRenderer */ /** @var PageRenderer $pageRenderer */
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"description": "Language File Editor", "description": "Language File Editor",
"homepage": "https://www.sgalinski.de", "homepage": "https://www.sgalinski.de",
"license": ["GPL-2.0+"], "license": ["GPL-2.0+"],
"version": "3.2.0", "version": "3.3.1",
"support": { "support": {
"issues": "https://forge.typo3.org/projects/extension-lfeditor" "issues": "https://forge.typo3.org/projects/extension-lfeditor"
}, },
......
...@@ -29,7 +29,7 @@ Following functions are implemented in this module: ...@@ -29,7 +29,7 @@ Following functions are implemented in this module:
* Backups, recovering and diff view', * Backups, recovering and diff view',
'category' => 'module', 'category' => 'module',
'shy' => 0, 'shy' => 0,
'version' => '3.3.0', 'version' => '3.3.1',
'doNotLoadInFE' => 1, 'doNotLoadInFE' => 1,
'dependencies' => '', 'dependencies' => '',
'conflicts' => '', 'conflicts' => '',
...@@ -55,7 +55,7 @@ Following functions are implemented in this module: ...@@ -55,7 +55,7 @@ Following functions are implemented in this module:
'conflicts' => array( 'conflicts' => array(
), ),
'suggests' => array( 'suggests' => array(
'tinymce' => '4.2.0', 'tinymce' => '4.2.8',
), ),
), ),
'suggests' => array( 'suggests' => array(
......
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