我有以下HTML
<a href="#" class="list-feature__link"><img class="left" src="images/list/sell_off.svg" />
<div class="list-feature__text">
<h4>Sell your design</h4>
<p>Lorem ipsum dolor sit amen lorem</p> </div>
</a>
Tinymce将其更改为:
<a href="#" class="list-feature__link"><img class="left" src="images/list/sell_off.svg" /></a>
<div class="list-feature__text">
<h4>Sell your design</h4>
<p>Lorem ipsum dolor sit amen lorem</p>
</div>
解决此问题的正确配置设置是什么。
答案 0 :(得分:2)
只需将以下属性添加到TinyMce Configration
即可valid_children:"+a[elements to allow inside a]",
valid_children:"+a[div|i|span|img|p|ul|ol|li|h1|h2|h3|h4|h5|h5|h6]",