浏览量 4779
2019/05/10 18:26
下载地址
https://ckeditor.com/cke4/addon/markdown
安装
- Create a folder named
markdown
inckeditor/plugins
path; - Download the source, and uncompress it in the folder;
- Edit
config.js
(such asckeditor/config.js
):config.extraPlugins = 'markdown'; // add this plugin
进坑
安装完报错: Uncaught DOMException: Failed to execute 'add' on 'DOMTokenList': The token provided ('cke_source cke_reset cke_enable_context_menu') contains HTML space characters, which are not valid in tokens.
脱坑方法
vim ckeditor/plugins/markdown/plugin.js 将错误的哪一行修改成如下
textarea.addClass('cke_source','cke_reset','cke_enable_context_menu');
//textarea.addClass('cke_source cke_reset cke_enable_context_menu');
上一篇
搜索
下一篇