RGA
RGA

Reputation: 612

Ckeditor contentelement="false" working but it can be delete or Replace

I need to block editing and deleting in some (CKEDITOR) elements. I am trying with the attribute of contenteditable='false' but its allowing to delete and replace.

How can I dodge this issue?

Please review below content:

<Elems>
<Elem1>Editable Content</Elem1>
<Elem2>unchangable content</Elem2>
<Elem3>Editable Content</Elem3>
</Elems>

Upvotes: 1

Views: 1317

Answers (1)

oleq
oleq

Reputation: 15895

You're looking for CKEditor Widgets feature that perfectly matches your requirements. It's under development and it'll be available in CKEditor 4.3.


Update: The feature has been in the core for a while and it's stable. There's an official guide about Widgets API.

Upvotes: 3

Related Questions