Commit 7958bf70 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Make belayoutwizard TSconfig preview readonly

With #94222, the TSconfig preview of a TCA field with
renderType= belayoutwizard was adjusted to use the
CodeMirror plugin - in case EXT:t3editor is installed.

With this change, also the default "preview" was changed
form a <code> element to a <textarea>. This therefore led
to the field being editable. However, any manual change
will always be overwritten on adjusting the grid via the editor
or on saving the record.

To avoid confusion for the user and to be in line with
the CodeMirror variant, the previous behaviour is restored
by adding the readonly attribute to the <textarea> element.

Resolves: #96064
Related: #94222
Releases: master, 11.5
Change-Id: Iaa41df59cbfd0420962c2239a42d329c249adb6c

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Benni Mack's avatarBenni Mack <>
Tested-by: Jochen's avatarJochen <>
Tested-by: Nikita Hovratov's avatarNikita Hovratov <>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Jochen's avatarJochen <>
Reviewed-by: Nikita Hovratov's avatarNikita Hovratov <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
parent e8a3ea87
......@@ -92,7 +92,7 @@ class BackendLayoutWizardElement extends AbstractFormElement
$editor = '
<label>' . htmlspecialchars($lang->getLL('buttons.pageTsConfig')) . '</label>
<div class="t3js-grideditor-preview-config grideditor-preview">
<textarea class="t3js-tsconfig-preview-area form-control" rows="25"></textarea>
<textarea class="t3js-tsconfig-preview-area form-control" rows="25" readonly></textarea>
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