https://ckeditor.com/cke4/addon/markdown
markdown
in ckeditor/plugins
path;config.js
(such as ckeditor/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');