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']

猜你喜欢

转载自www.cnblogs.com/yechangzhong-826217795/p/12706287.html