编辑器里的样式及类都自动清空了,上个版本不存在这个问题,默认只允许出现通过编辑器生成的标签!

像这样的代码:

1 <table class="shoptable ke-zeroborder" border="0" cellspacing="0" cellpadding="0" width="464" align="left">

读取的内容就会被过滤为:

 

1  <table border="0" cellspacing="0" cellpadding="0" width="705" align="left">

解决的办法-加:KindEditor.options.filterMode = false;

如:

1 <script>
2 $(function() {
3  KindEditor.options.filterMode = false;
4  var editor = KindEditor.create('#content');
5 });
6 </script>

这样可以更方便用户。

相关文章:

  • 2021-07-11
  • 2022-01-13
  • 2021-12-05
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
猜你喜欢
  • 2021-07-26
  • 2021-06-17
  • 2021-07-25
  • 2021-09-20
  • 2022-01-22
相关资源
相似解决方案