我想从具有特定类的TinyMCE编辑器内容中删除一个div。TinyMCE删除特定类的DIV
在理想的世界中,我希望能够通过valid_elements选项做到这一点,但我不知道它是否可以实现。
下面是编辑内容的范例:
<div class="content">
Some html content here
<div class="anotherclass"></div>
</div>
我想
<div class="content">
剥出这样的编辑器将只显示这一点:
Some html content here
<div class="anotherclass"></div>
干杯家伙。