Commit e079c5d3 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Markus Klein
Browse files

[BUGFIX] RTE: Set "magic" as default image mode

Sets the image mode to "magic" on first call, as "New Magic Image"
is the first tab being called.

Resolves: #65821
Releases: master
Change-Id: If3064b93a16c9a86a3898afa0cccb56322d5b1cf
Reviewed-on: http://review.typo3.org/40155


Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
parent de57d8ee
......@@ -137,7 +137,7 @@ class SelectImage extends \TYPO3\CMS\Recordlist\Browser\ElementBrowser {
}');
$this->doc->getPageRenderer()->loadRequireJsModule('TYPO3/CMS/Rtehtmlarea/Modules/SelectImage', 'function(SelectImage) {
SelectImage.editorNo = "' . $this->editorNo . '";
SelectImage.act = "' . ($this->act ?: 'plain') . '";
SelectImage.act = "' . ($this->act ?: reset($this->allowedItems)) . '";
SelectImage.sys_language_content = "' . $this->sys_language_content . '";
SelectImage.RTEtsConfigParams = "' . rawurlencode($this->RTEtsConfigParams) . '";
SelectImage.bparams = "' . $this->bparams . '";
......
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