ueditor插入视频地址
ueditor-1.4.3.3
项目需要去掉“上传视频”
ueditor\dialogs\video\video.html
输入视频地址报错。
ueditor\ueditor.all.js ‘image’—>’video’
ueditor\ueditor.config.js
① img 添加 ‘_url’
②video后添加
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']
ueditor\dialogs\video\video.js
将$G("preview").innerHTML的值改为:'<video class="previewVideo" controls="controls" src="'+conUrl+'" style="width:420;height:280 "></video>';
OVER
一步一脚印