Skip to content
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

Support autoParagraph=false like in CKEditor4 #10448

Closed
aimeos opened this issue Aug 30, 2021 · 1 comment
Closed

Support autoParagraph=false like in CKEditor4 #10448

aimeos opened this issue Aug 30, 2021 · 1 comment
Labels
type:improvement This issue reports a possible enhancement of an existing feature.

Comments

@aimeos
Copy link

aimeos commented Aug 30, 2021

Support autoParagraph=false like in CKEditor4

Up to now a <p></p> tag is always added around string content. If the string Test header is added in an HTML template <h1>{{ string }}</h1>, this produces invalid results:

<h1><p>Test header</p></h1>

Other details

  • CKEditor version: latest
  • Installed CKEditor plugins: none

If you'd like to see this improvement implemented, add a 👍 reaction to this post.

@aimeos aimeos added the type:improvement This issue reports a possible enhancement of an existing feature. label Aug 30, 2021
@Reinmar
Copy link
Member

Reinmar commented Aug 31, 2021

Hi! CKEditor 5 has stricter rules for content quality than CKEditor 4. The autoParagraph feature was a nightmare to maintain in CKEditor 4 times and we're not going to work on it for CKEditor 5.

CKEditor 5 offers other ways to deal with such aspects, though. E.g. you can customize how the model's paragraph element is being output by overriding its downcast converte. Also, it seems that your use case doesn't actually rely on autoParagraph but on a more conscious way of integrating editor's output with a template that you have. 

Also, it kinda sounds like you might be interested in #762.

In any case, I'm closing this issue because we'll not work on autoP anyway.

@Reinmar Reinmar closed this as completed Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:improvement This issue reports a possible enhancement of an existing feature.
Projects
None yet
Development

No branches or pull requests

2 participants