Quill Editor: Restricted Editing based on tags/classes

柔情痞子 提交于 2019-12-14 01:03:45

问题


I have a scenario where I would like to give users a semi-editable template such as

<p>Name: <span class="editable"></span></p>

or

<div>
    <p>Non editable content</p>
    <h2>Some editable content</h2>
    <h3>Some more editable content</h3>
</div>

Where specific tags or classes can either be specifically denied or allowed from editing. Additionally, these classes or tags can not overlap each other in selection (in the example, h2 and h3 can not be both selected).

Considering I've only modified Quill a small amount I'm not totally sure of the best way to accomplish this or if there is even a good way at all.

来源:https://stackoverflow.com/questions/36991966/quill-editor-restricted-editing-based-on-tags-classes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!