Domanda

Is it possible with tinyMCE plugin that if there is some div having class .not-editable - it will be displayed inside tinymce, all this content will be divible normally, but user will not be able to edit anything inside it, the only thing user will be able to do is to remove/move it?

So for example it would work with this content:

<div class="editable">This text can be editet</div>

<div class="not-editable"><span>Whatever</span> here cannot be edited</div>
È stato utile?

Soluzione

Ok. I've figured it out.

You need to enable this plugin, and then anything with class mceNonEditable will be treated as sinlge character.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top