百度编辑器不支持上传优酷腾讯视频的方法

1、在配置文件/ueditor/ueditor.config.js中,定位 //xss过滤白名单,即,whitList:{ },对 img: 增加 “_url” 属性:

image.png

2、在video后增加3行代码,使Ueditor分别能支持embed标签和iframe标签:

video: ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width', 'class', 'style'],
            source: ['src', 'type'],
            embed: ['type', 'class', 'pluginspage', 'src', 'width', 'height', 'align', 'style', 'wmode', 'play',
                +'autoplay', 'loop', 'menu', 'allowscriptaccess', 'allowfullscreen', 'controls', 'preload'
            ],
            iframe: ['src', 'class', 'height', 'width', 'max-width', 'max-height', 'align', 'frameborder', 'allowfullscreen']

image.png

我们查看源码能看见即可!

后台可能存在缓存!

相关内容

发表评论

验证码:
点击我更换图片

最新评论