Вопрос

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>
Это было полезно?

Решение

Ok. I've figured it out.

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top