-
-
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
Introduce support for div element, and other containers article
, section
, etc.
#6462
Comments
Hi! Thanks for the report. I will confirm it as a valid feature request. |
I believe |
I will keep this feature request open, as some users might be still interested in introducing div element to CKEditor 5. |
Transfering from #8611:
|
article
, section
, etc.
article
, section
, etc.article
, section
, etc.
This is extremely frequently requested in Drupal. In particular, many Drupal sites use the pattern (very widely adopted among Drupal + CKEditor 4 sites) of:
For sites that have deeply entrenched workflows and content authoring based on this … this is a hard blocker for them to adopt CKEditor 5! Related Drupal.org issue: https://www.drupal.org/project/drupal/issues/3362451 |
What Wim said! In addition to the ability to style div-like elements, many of those we mention are also semantic elements. E.g. our content regularly uses sidebars where an Right now though, I just want to provide
(I'm doing 2 at the moment, benefiting from some great work of developers more talented than I) Anyway, simply being able to place an |
@crowjake I'm interested in your "heavily patched pre-release Drupal module". Do you have a link or more context on what you're doing? Also, some folks have spun out a new Drupal.org issue that more cleanly maps to this one, since the original purpose of the issue Wim mentioned above was for Headings which is now resolved. #3418322: Allow CKEditor 5 support for containers: div, article, section, aside, etc. Your feedback and workarounds are welcome there. |
@jameswilson None of it is my work, but basically this badboi: #3273358: CKEditor 5 support for Content Templates - I don't know how the latest patches compare to what I'm using but at least the versions I've installed provide a UI for inserting whatever html you want, with whatever attributes and 'magic line' wrapper elements that help us avoid the 'trapped cursor' problem - although it is a bit disconcerting using a module in production that doesn't officially support CKEeditor 5 at all (yet), and has prevented me being able to do minor Drupal 10.x upgrades with confidence (I have too many things on my to do list to do adequate testing). Even if the work people have done on the patches so far are clearly awesome. |
Are there any plans to get this included yet? We are also using the Ckeditor template module's patch in Drupal along with Ckeditor5 it's very cumbersome even with the workarounds to add the templates between two templates. We hope support for div and other containers gets included soon. |
We've started to use Templates in Drupal to help inject We noticed that tables were injected with a It would be great if the Templates plugin could support |
I'd like to upvote the ability to select block level elements ( This would be a huge benefit when combined with templates. In the Drupal world, it would potentially reduce the need for complicated layout building experiences (Paragraphs, Layout Builder, etc.) for a huge number of sites. |
Adding my support for this. We currently use the templates plugin and the embed html plugin to achieve this, but the UX of that is well below 0. All but the most savvy users keep struggling or are entirely unable to do this. Ideally you could select the element to add as a wrapper & which classes to apply. |
I'm very happy with Your work and I do support You.
But I do think that we miss
div
support in editor.Div's (with classes) are common blocks in building articles - I think we need them.
You provide many features that supports only article editing but not CMS as a whole.
For CMS we need DIVs inside DIVs, classes and even custom styles for elements.
Make it easy to implement and we can move from CK 4 to CK5.
[Edited by @Witoso ]
Currently, the editor doesn't have a support for the
div
element. This is an issue to gather the interest.This is often asked in context of escaping a div (paragraph before/after), which is currently not possible. CKEditor 4 had a "Special container" style and a magic line that provided an ability to add a paragraph after a div.
We need to remember about the usage of a
div
in two contexts:Additionally, we could make a container configurable or aware of other HTML markup, like
article
,section
. To be decided, but this would make it more interesting and could satisfy more use cases.If you'd like this feature to be implemented, react with 👍 to this post.
The text was updated successfully, but these errors were encountered: