-
-
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
[Style] Style dropdown should insert (some) elements. #14372
Comments
Hello, I'm coming from #15031 (which is not 100% related), I'm migrating from CKEditor 4 to 5 and I also found that we can't insert Enregistrement.de.l.ecran.2023-09-25.a.14.27.08.movWhat are the current workarounds if I want our users to still have the possibility to insert
Thanks! :) EDIT: Finally we kept the |
This keeps coming up as a question in the Drupal community. Latest occurrence: https://drupal.slack.com/archives/C01GWN3QYJD/p1696319376013359. |
Now tracking this explicitly in this |
I'm trying to build components using ckeditor style and tailwind. In Drupal, I'm able to configure a style like
But I have two challenges:
Fixing this issue would mean I wouldn't have to use the div plugin but I think I'd still be stuck on how to build components like this:
As I can already insert a heading and a paragraph, I'd like to be able to select them and apply the div block style to wrap the div around them. |
Ad. 1 We don't have features yet for containers, see: #6462. Ad. 2 Is related to the above, without the feature, the insertion via Style won't work. Another solution would be to write a specific feature for this via plugin development (something like callout as far as I can see). |
Please provide a solution to this problem |
As witoso mentioned, coming from #16737 and I believe too, this could streamline some things! |
Can we have Thank you for your service. |
The main difference between CKEditor 4 and 5 in styling is the ability to insert and rename elements. CKEditor 4 added the elements from the Styles list like containers or headings:
Screen.Recording.2023-06-12.at.11.57.40.mov
CKEditor 5 only allows styling when the cursor is in the element.
Screen.Recording.2023-06-12.at.14.05.49.mov
Potential improvements are that styling will allow to insert/rename of some elements to allow for example insertion of
div
s (rel: #13341).The text was updated successfully, but these errors were encountered: