在不可编辑的编辑器中可以包含可编辑的内容吗?
我完整的编辑器不应像在只读模式下那样可编辑。
但是其中的某些节点,例如<custom-variable type="test" class="mceEditable">This should be editable</custom-variable>
,应该可以正常编辑。
我该怎么做?
我从数据库中加载内容,例如:
<p>example text <custom-variable type="test"></custom-variable><strong>example</strong></p>
我只想在custom-variable
标记之间写一些东西并使用格式工具。
感谢帮助!