-
Notifications
You must be signed in to change notification settings - Fork 2
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
Move block indentation (p.indent1/2/3) functionality to contrib #107
Comments
That's an interesting question... Indent/outdent in CKE is a context-sensitive thing. For v4 the plugins for block and list indent/outdent are provided by a contrib module, v5 incorporated it in core, it seems. (Or, we did that...) Now for the context: The indent/outdent functionality is pretty useful for nested lists. Without it it's not really possible to create list nesting via UI. |
I did not realize that. It would be nice to have CKE5 support/migrate this functionality from the Backdrop contrib module if we're going to include the indent/de-dent buttons in core. Weirdly, the
But it does not include any kind of styling (nor buttons). These are the same default indent classes as CKE5. Some users coming from Drupal 7 have reported a similar problem in D10 (from this Slack thread). |
You beat me to it! 😄 |
Also, interesting that you enabled the |
We might be able to disable (or actually not load) the plugin in A simple Do we want that? The Backdrop module (ckeditor_indent) seems to enable it by default. People upgrading from 4 to 5 might miss functionality if we don't. |
Well just disabling the plugin would certainly solve the problem. I must have just assumed that we had indent/dedent enabled since the indent class list is present in our core @indigoxela what do you think? Should we remove it from the build? Or is it a dependency for some other functionality? Drupal 11 seems to include the plugin in the build but it's not actually enabled. The Drupal contrib project ckeditor_indentblock simply enables it and adds a CSS file. |
Not sure what exactly this issue is about: indentation for lists or in general? I think, for lists it's quite important to have the option. |
The current discussion is about IndentBlock - which adds CSS classes to block elements like paragraphs, which can then get styled as indented via CSS. To my understanding we agree, that list indent (nesting of ul/ol) is a useful feature. We're not so sure about block elements. |
Sure, it's enabled as it's declared as plugin_dependency. We have several options now:
That could make it harder for contrib to add it back, I guess. I really like the feature for lists, but I'm no fan of the block indent feature. But that's really only a personal preference, no actual recommendation. As the feature is on in the v4 module, we can't know, what people actually prefer (list / block). We can only assume. The only thing we currently know is, that there are 88 installs - those people were able to find that plugin. |
Here's my suggestion: #111 It switches the plugin_dependency from IndentBlock to DocumentList, which seems to make more sense to me. Contrib can still enable the plugin (it's part of |
Thanks @indigoxela, I think that should do perfectly for now. We'll leave the contrib module to handle indenting blocks if necessary. |
CKEditor 5 uses indent1/indent2/indent3 classes when indenting content with indent / de-dent buttons. Backdrop does not currently provide any styling for these classes, despite it being the same classes that CKE4 used (apparently we did not make these buttons available in CKE4). Alternatively, we could remove the indent/de-dent buttons in the out-of-box buttons.
The text was updated successfully, but these errors were encountered: