Skip to content
Snippets Groups Projects
Commit 75bfbb9c authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[BUGFIX] Show but preserve invalid classes in link-browser

In case a link with an invalid CSS class is edited,
the class value is not simply invalidated and shown
as empty (which isn't true), but a virtual select option
"[ INVALID VALUE (…) ]" is added (and selected) that
documents the fact that the current value invalid,
but will be preserved upon updates. (as in FormEngine)

This allows the editor to choose between preserving,
removing or changing to another css class value.

With this change applied, we can not properly
remove empty value. Note that empty values previously
implicitly preserved existing values, which made
it impossible to remove a link title or target.

Resolves: #102012
Resolves: #102013
Releases: main, 12.4
Change-Id: Iefae377a9e18467e8eb9111ef3ef7a96c89b6ce1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81176


Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent ef03eca1
Branches
Tags
No related merge requests found
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