CKEditor4.0行距插件

@CKEditor4.0行距插件

CKEditor4.0行距插件

CKEditor4.0行距插件

我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:

CKEditor4.0行距插件

安装步骤

1.将lineheight文件夹拷入plugins文件夹下 下载地址:https://download.csdn.net/download/qing_mei_xiu/10895136
2.修改config文件加入config.extraPlugins += (config.extraPlugins ? ‘,lineheight’ : ‘lineheight’);
语句用来加载插件
3.在适当的位置添加插件

CKEDITOR.config.toolbar_Full =
[
    { name: 'document',        items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
    { name: 'clipboard',    items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
    { name: 'editing',        items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
    { name: 'forms',        items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },
    '/',
    { name: 'basicstyles',    items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
    { name: 'paragraph',    items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
    { name: 'links',        items : [ 'Link','Unlink','Anchor' ] },
    { name: 'insert',        items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ] },
    '/',
    { name: 'styles',        items : [ 'Styles','Format','Font','FontSize','LineHeight' ] },
    { name: 'colors',        items : [ 'TextColor','BGColor' ] },
    { name: 'tools',        items : [ 'Maximize', 'ShowBlocks','-','About' ] }
];

你可能感兴趣的:(CKEditor富文本)