Skip to content
Snippets Groups Projects
Commit 0d33e5a8 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Benjamin Kott
Browse files

[BUGFIX] T3editor: Get default mode if none is defined for a field

If a field is rendered by t3editor but no mode was defined, the t3editor
falls back to the default mode, which is `html` by default.

Resolves: #82424
Related: #81901
Releases: master
Change-Id: I4b94e5257429219ccd72a917faa170fbc56c34ad
Reviewed-on: https://review.typo3.org/54085


Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarBenjamin Kott <benjamin.kott@outlook.com>
Tested-by: default avatarBenjamin Kott <benjamin.kott@outlook.com>
parent f67333bd
Branches
Tags
No related merge requests found
......@@ -229,6 +229,10 @@ class T3editorElement extends AbstractFormElement
{
$config = $this->data['parameterArray']['fieldConf']['config'];
if (!isset($config['format'])) {
return ModeRegistry::getInstance()->getDefaultMode();
}
$identifier = $config['format'];
if (strpos($config['format'], '/') !== false) {
$parts = explode('/', $config['format']);
......
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