dede织梦编辑器中插入****mp4****视频文件方法
场景:
织梦建站的时候 上传mp4视频不成功
思路:
a. 登录后台->系统->系统基本参数->附件设置 查 允许上传的文件类型有没有配置mp4
若是没有 手动添加
![](https://upload-images.jianshu.io/upload_images/12404855-06ed34d567bdddc8.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/553)
b. 修改对应的处理文件 include/dialog/select_media.php
("#.(rm|rmvb)#i",在这里,把mp4添加进去就可以了---(rm|mp4|rmvb)
c. 新增文档 上传视频
![](https://upload-images.jianshu.io/upload_images/12404855-83831214b962f6b7.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/554)
image.png
d. 若是编辑器里面没有这个选项 找到include/ckeditor 搜索下载新的ckeditor 替换 (本人的付费下载哈 ^_^)
e. 之后效果如图
![](https://upload-images.jianshu.io/upload_images/12404855-0602387400452372.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/373)
添加完视频之后 可以通过编辑器中的 源码 选项修改样式
![](https://upload-images.jianshu.io/upload_images/12404855-2e9fddf90914b5fa.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/238)