-
-
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
Templates support for CKEditor 5 #1585
Comments
This comment has been minimized.
This comment has been minimized.
CKEditor 5 doesn't support templates as CKEditor 4, so there is no possibility to define them. I'm re-opening this issue as a feature request for the templates support. Feel free to add a comment about it and describe your use case or thoughts on how it should be implemented. |
I remember that someone asked about such a feature via support channel at least once too. |
What I am seeking is a page template where there are editable areas. Some users will be able to edit the whole template and some will only be able to fill out the editable areas. |
Was about to post duplicate, posting here instead: <root>
<h1 locked='true'>1. Abstract<h1>
<p>Lorem...</p>
</root> |
I was looking for something similar, I found the one used by this company, I hope one day ckeditor has something like or better: https://ej2.syncfusion.com/demos/#/material/document-editor/headers-and-footers.html |
PLSS |
Did you manage to find something that functions like this? |
This is a separate feature to the one described in this thread. This thread is specifically about having a list of prepared content templates which can be selected to replace the current content (or insert as a snippet into an existing document content). It was a feature of older CKEditors but has not been implemented in v5. Making parts of a content "readonly" / "locked" would be a separate feature. |
Yes. That would be cool. Predefined Text or Content, but not to replace the content, better to insert at cursor position. |
public addTemplate(value: string | SafeHtml): void { |
Hi, |
Noting this is a pretty popular feature in the Drupal ecosystem. More than 12,000 Drupal 8 / 9 / 10 sites use this feature in CKEditor 4. As Drupal 10 (to be released this summer) moves to CKEditor 5, I am worried about what the fallout of this feature being removed will look like for site editors. I have one project that relies on it myself. |
The feature has been shipped in version 37.1.0 and is available as a part of productivity pack feature set 🎉 You can give it a try in our content templates feature guide. |
How to add custom Templates to CKEditor 5 like in CKEditor 4?
The text was updated successfully, but these errors were encountered: