Javascript ckfinder移除一个标记
我试图实现一个CMS使用CK编辑器4编辑网页的某些可编辑片段。但是它正在改变标记,尽管我尽了最大努力来配置它,所以它不会改变 其中一个示例是加载到编辑器中的以下原始标记Javascript ckfinder移除一个标记,javascript,ckeditor,Javascript,Ckeditor,我试图实现一个CMS使用CK编辑器4编辑网页的某些可编辑片段。但是它正在改变标记,尽管我尽了最大努力来配置它,所以它不会改变 其中一个示例是加载到编辑器中的以下原始标记 <article class="last"> <a href="#" class="promo-m"> <div class="info"> <h3>Access for All</h3>
<article class="last">
<a href="#" class="promo-m">
<div class="info">
<h3>Access for All</h3>
<p>We want everyone to enjoy the benefits of good, clear communication.</p>
<p class="product-cta">
Find out more
</p>
</div>
</a>
</article>
有人能帮忙吗
代码是基于前面的stackoverflow答案在jsfiddle.net上发布的
您可以单击编辑器中的“源”按钮,将文章内容粘贴到中,单击以所见即所得模式查看,然后返回到源以查看它更改标记的方式
<article class="last">
<div class="info">
<h3><a class="promo-m" href="#">Access for All</a></h3>
<p><a class="promo-m" href="#">We want everyone to enjoy the benefits of good, clear communication.</a></p>
<p class="product-cta"><a class="promo-m" href="#">Find out more </a></p>
</div>
</article>
CKEDITOR.replace('editor', {
allowedContent: true
});