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

HTML wrapping blocks for editable WYSIWYG content #8611

Closed
neongreen opened this issue Dec 8, 2020 · 2 comments
Closed

HTML wrapping blocks for editable WYSIWYG content #8611

neongreen opened this issue Dec 8, 2020 · 2 comments
Labels
type:feature This issue reports a feature request (an idea for a new functionality or a missing option).

Comments

@neongreen
Copy link

📝 Provide a description of the new feature

Most of the time an inline HTML block is an overkill, and I rather want to wrap existing content in a div with a class/id (for styling), or something along those lines.

If user-submitted JS is allowed (e.g. if CKEditor is used in a site builder, which is my usecase), then it also makes sense to add arbitrary HTML elements like <canvas> or <input> that the user can use for small JS demos.

I made a sketch of how this could look.


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

@neongreen neongreen added the type:feature This issue reports a feature request (an idea for a new functionality or a missing option). label Dec 8, 2020
@neongreen
Copy link
Author

Oh, looks like it might be a duplicate of #6462. Happy to close and move if this is actually so.

@Reinmar
Copy link
Member

Reinmar commented Dec 9, 2020

Yeah, that could be a DUP of #6462. I was indeed thinking about making it more generic than just for div elements. Also, it should be relatively simple if this is implemented as a widget. Maybe only for stuff like <canvas> that need to be rendered differently. In this case, the HTML embed feature would actually handle that: https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature This issue reports a feature request (an idea for a new functionality or a missing option).
Projects
None yet
Development

No branches or pull requests

2 participants