You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I received an HTML template from the server like this:
<div><div>This is not allowed to edit</div><divclass="foo">Not editable <divclass="can-edit">Content editable</div></div><divclass="bar">Not editable <divclass="can-edit">Content editable</div></div></div>
I want to restrict user editing to only the parts with the "can-edit" class. Each can-edit section should include its own editor toolbar.
In other words, can I send the entire HTML to CKEditor and have it restrict editing to only the areas with the can-edit class, while providing a toolbar inside each can-edit div instead of a single toolbar at the top?
Here's the HTML content:
const html = `
<div><div>This is not allowed to edit</div><divclass="foo">Not editable <divclass="can-edit">Content editable</div></div><divclass="bar">Not editable <divclass="can-edit">Content editable</div></div></div>
`;
The text was updated successfully, but these errors were encountered:
jon9090
changed the title
How to edit only parts of the html and each part will have cdkeditor/toolbar?
How to edit only parts of the html and each part will have ckeditor/toolbar?
May 25, 2024
📝 Ask a Question
I received an HTML template from the server like this:
I want to restrict user editing to only the parts with the "can-edit" class. Each
can-edit
section should include its own editor toolbar.Is it possible to achieve this with Angular?
In other words, can I send the entire HTML to CKEditor and have it restrict editing to only the areas with the
can-edit
class, while providing a toolbar inside eachcan-edit
div instead of a single toolbar at the top?Here's the HTML content:
The text was updated successfully, but these errors were encountered: