I have following code inside the editable area and I want to prevent editing the DIV element which has the non-editable class. Would it be possible to do that?
text, texttext, texttext, texttext, texttext, texttext, text <div class="non-editable"> <div>...</div> <img src="some-src.png"/> </div>
The best way to make some content inside the Froala WYSIWYG HTML Editor non-editable is to add the
contenteditable="false" attribute to it. For the code above, it would be:
<div class="non-editable" contenteditable="false">...</div>