5

百度ueditor编辑器如何修改不自动替换html标签

 2 years ago
source link: https://www.huhexian.com/19878.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

百度ueditor编辑器如何修改不自动替换html标签

青山 2021-12-2814:28:52评论253字

今天在使用其他cms发布文章的时候,由于需要用到html标签,直接放在源代码里面,然后切过来预览发现html标签自动删除了,用的是百度编辑器,所以到编辑器的几个关键文件里面查询错误,发现只需要将其中的一部分修改一下就可以了。

百度ueditor编辑器如何修改不自动替换html标签

在ueditor.all.js中找到

UE.plugins['defaultfilter'] = function ()

注释或删掉这块代码。

注:ueditor.all.min.js 中也一样,格式是:

UE.plugins.defaultfilter = function () {

搜索注释或删除即可

历史上的今天

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK