tinymce不可编辑内的可编辑内容

时间:2020-07-11 13:00:58

标签: javascript tinymce tinymce-plugins tinymce-5

在不可编辑的编辑器中可以包含可编辑的内容吗? 我完整的编辑器不应像在只读模式下那样可编辑。 但是其中的某些节点,例如<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标记之间写一些东西并使用格式工具。

感谢帮助!

0 个答案:

没有答案