✸ ✸ ✸
下载地址
https://ckeditor.com/cke4/addon/markdown
安装
- Create a folder named
markdowninckeditor/pluginspath; - 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');
✸ ✸ ✸
📜 版权声明
本文作者:王梓 | 原文链接:https://www.bthlt.com/note/306-CssJsHtmlckedior支持markdown一坑
出处:葫芦的运维日志 | 转载请注明出处并保留原文链接


📜 留言板
留言提交后需管理员审核通过才会显示