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
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72278

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Jochen's avatarJochen <rothjochen@gmail.com>
Tested-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Jochen's avatarJochen <rothjochen@gmail.com>
Reviewed-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
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>
</div>';
}
......
Markdown is supported
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