Review main Merged

69212[BUGFIX] Allow copying content from readonly t3editor field

Oli Bartsch CR +2 V +2 Easy +1 −1 updated 05/20/21, 10:13

Commit message

With #94081, a new option was introduced to
set a FormEngine t3editor field to "readOnly",
as it was already possible for default text fields.

Using the option "nocursor" however also disabled
copying of the content, which is not intended and
also not in line with the behaviour of "readOnly" for
normal text elements.

Therefore, when "readOnly" is set in TCA for renderType
t3editor, the codeMirror related option is set to TRUE,
which still renders the field as readOnly, but allows to
copy its content again.

For further reference see:

https://codemirror.net/doc/manual.html#option_readOnly

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 1