-
-
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
Is having definitions.xxx.classes
mandatory by intention?
#16737
Comments
For now Style dropdown doesn't insert elements, it just adds classes to existing elements. Most likely, you would want it to insert as well, +1 the following ticket #14372. |
The issue lacks the feedback we asked for two weeks. Hence, we've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
Which feedback did you ask?! Happy to provide any. |
Just let us know if the ticket we sent is something that covers your need, and we will close this one as a duplicate :) |
Ah I see! I just saw this as related, not a duplicate. If I understand correctly, the other issue is about properly getting the "context" of the style dropdown and allowing to insert new elements when inside the context of another? My issue here is about the ability to insert "pure" elements, without requiring an (empty) class selector. IMO those two are distinct issues, but then again I'm not deep into the code 😇 |
Then I wonder why not use a proper button of the feature like |
The reason is to group style-related custom choices in a single "point of truth", which would be the style dropdown. Also, emitting |
📝 Ask a question
Having a configuration like this (asking for the context of a default TYPO3 implementation):
it seems that
classes
is a required attribute. Also https://ckeditor.com/docs/ckeditor5/latest/api/module_style_styleconfig-StyleDefinition.html does not really mention it as being optional. Leaving such an attribute out leads to the dropdown for styles not getting opened.If the attribute is required, I wonder how one could implement an empty
<code>
element. Currently, always<code class="">
is emitted.Also, when using
classes: []
to indicate an empty array, the element is not choosable at all. Usingclasses: false|null|true
only leads to having<code class="false|null|true">
.So I wonder, am I missing something here, or would it classify as a bug?
The text was updated successfully, but these errors were encountered: