Pergunta

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>
Foi útil?

Solução

Ok. I've figured it out.

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top