Closed GuySartorelli closed 2 months ago
Looks like you've uncovered a completely new bug 🥳
To test, in a fresh installation without any of these PRs and without your configuration above, add a link to a page and save. Then, add only the second config you have there (i.e. add $h2
and $c2
, leaving the original "Content" field as it was) and refresh the page. TinyMCE will have stripped the link out of your original content.
If you can reproduce that with a fresh installation, it's a separate bug and should be handled in a separate card (and probably fixed in 5.2
)
Yup validated it's an existing issue, have raised card
Description
There are multiple commits here since we're doing several related but separate changes:
valid_elements
andextended_valid_elements
separatelyvalid_elements
set would result in skipping validation entirely.valid_elements
settings for any new TinyMCE config instancesIssues