UEditor编辑器插入第三方视频地址

操作方法:

 

备注:UEditor插入视频,Object Iframe等标签被过滤问题处理

ueditor.all.js添加 

case 'embed':
str = '<iframe frameborder="0" width="' + width + '" height="' + height + '" src="' + utils.html(url) + '" allowfullscreen="allowfullscreen"/> ';
break;

 

ueditor.config.js文件添加 

iframe: ['frameborder', 'src', 'width', 'height']

 

posted @ 2020-04-15 16:36  代码沉思者  阅读(494)  评论(0编辑  收藏  举报