ckeditor 添加插件

官方插件包列表:https://ckeditor.com/cke4/addons/plugins/all 

 

添加插件方法:

1)下载插件包(如果插件包有依赖其他插件,则依赖包也需要下载)

2)解压插件包,插件包目录放置到 ckeditor/plugins 目录里或其他自定义目录(只要能访问得到就好)

3)告诉ckeditor要添加插件

CKEDITOR.plugins.addExternal('html5video', 'xxxx/plugins/html5video/plugin.js', '');

4)配置ckeditor初始化参数:extraPlugins(多个插件用英文逗号隔开)

config.extraPlugins = 'justify,html5video';

5)调用ckeditor,CKEDITOR.replace(.........................

posted @ 2018-03-09 11:42  Tiac  阅读(1449)  评论(0)    收藏  举报