Tinymce-锚标记中的chenges代码-什么是配置设置 [英] Tinymce - chenges code inside anchor tag - what are configration settings

查看:86
本文介绍了Tinymce-锚标记中的chenges代码-什么是配置设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下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将其更改为:

Tinymce changes it to :

<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>

tinymce解决此问题的正确配置设置是什么.

what are the correct configration setting for tinymce to resolve this problem.

推荐答案

只需在TinyMce配置中添加以下属性

Just add following property into you 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]",

这篇关于Tinymce-锚标记中的chenges代码-什么是配置设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆