-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GHS] Allowing custom attribute values using *lists* instead of RegExps (in MatcherPattern
), just like CKE5 allows for classes
#11155
Comments
Digging deeper … turns out that https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view_matcher-MatcherPattern.html actually suggests that listing allowed values is not possible, unlike what https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/features/general-html-support.html#configuration suggests. https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/features/general-html-support.html#configuration explicitly lists And … yep: https://www.drupal.org/project/drupal/issues/3259493#comment-14383513 → converting it to using
It'd be great if:
|
MatcherPattern
), just like CKE5 allows for classes
Where does it suggest that an object of But I agree that it would be nice if this format was also supported, for completeness. So, as a scope of this ticket I'd consider:
|
It does by example:
… if this works for The notation docs say:
Both contain So yes, you're right, technically it does not say that. But it feels like a very reasonable assumption to make, and there's zero validation on this configuration, meaning that you have to actually debug CKEditor 5 code in order for you to know for sure. (Validation would be a good idea either way — even if this does not happen.) |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
📝 Provide detailed reproduction steps (if any)
Paragraph
,BlockQuote
,Heading
,Link
andGeneralHtmlSupport
. Configure the latter like this:Note that
<cite>
is only possible thanks to GHS,<a>
is provided by the complexLink
plugin,<blockquote>
and<p>
are simple plugins yet it won't work there either,<h6>
is provided by a pretty simple plugin.✔️ Expected result
The same as the input, minus whitespace changes. Notably, all
foo="bar"
occurrences are retained❌ Actual result
All
foo="bar"
occurrences are stripped.❓ Possible solution
I first thought this was related to #9914, #9916, #11000, et cetera (all listed in #9856). But it's happening everywhere.
📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: