方法1、尝试在编辑过程中加入视频
尝试了 几种连接 最后发现 只有swf格式的视频可以被识别
果断放弃这种方法
方法2、尝试用<iframe>
输入的地址(以优酷为例)
复制下来是:<iframe frameborder="0" src="https://v.qq.com/txp/iframe/player.html?vid=c0870mnzyms" allowFullScreen="true"></iframe>
复制里面的:src中的连接 https://v.qq.com/txp/iframe/player.html?vid=c0870mnzyms 复制到链接框中
设置完成
点击确定
发现没有任何东西
查找问题,最后在 ueditor.config.js 的428行 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']
保存刷新
再添加<iframe> 填入链接,设置好尺寸 点完成
大功告成。