CKEditor Customizing toolbars

Source: Internet
Author: User

/** * Get editor Toolbar custom parameters * @param type simple= minimalist basic= basic version full= full version*/functionGet_ckeditor_toolbar (type) {if(!arguments[0]) type = ' Simple '; //Full version    varCkeditor_toolbar_full =    [        [' Maximize ', ' Autoformat ', ' NewPage ', ' Source ', ' Print '],        [' Pastetext ', ' Pastefromword ', ' Replace '],        [' Form ', ' Checkbox ', ' Radio ', ' TextField ', ' Textarea ', ' Select ', ' Button ', ' ImageButton ', ' HiddenField '],        [' Removeformat ', ' Bold ', ' Italic ', ' underline ', ' Strike ', ' subscript ', ' superscript '],        [' Link ', ' Unlink ', '-', ' textcolor ', ' BGColor '],        [' Numberedlist ', ' BulletedList ', ' outdent ', ' Indent ', '-', ' Blockquote ', ' creatediv ', '-', ' justifyleft ', ' Justifycenter ', ' justifyright ', ' Justifyblock '],        [' Upfile ', ' Image ', ' codesnippet ', ' Flash ', ' Table ', ' horizontalrule ', ' Specialchar ', ' pagebreak ', ' Iframe '],        [' Styles '],        [' Format '],        [' Font '],        [' FontSize '],    ]; if(Type = = ' full ')returnCkeditor_toolbar_full; //Basic version    varCkeditor_toolbar_basic =    [        [' Maximize ', ' Autoformat ', ' NewPage ', ' Source ', ' Print '],        [' Pastetext ', ' Pastefromword ', ' Replace '],        [' Removeformat ', ' Bold ', ' Italic ', ' underline ', ' Strike ', ' subscript ', ' superscript '],        [' Link ', ' Unlink ', '-', ' textcolor ', ' BGColor '],        [' Numberedlist ', ' BulletedList ', ' outdent ', ' Indent ', '-', ' Blockquote ', ' creatediv ', '-', ' justifyleft ', ' Justifycenter ', ' justifyright ', ' Justifyblock '],        [' Upfile ', ' Image ', ' codesnippet ', ' Flash ', ' Table ', ' horizontalrule ', ' Specialchar ', ' pagebreak ', ' Iframe '],        [' Format '],        [' Font '],        [' FontSize '],    ]; if(Type = = ' basic ')returnCkeditor_toolbar_basic; //Minimalist version    varCkeditor_toolbar_simple =    [        [' Maximize ', ' Autoformat ', ' NewPage ', ' Source ', ' Print '],        [' Pastetext ', ' Pastefromword ', ' Replace '],        [' Removeformat ', ' Bold ', ' Italic '],        [' Link ', ' Unlink ', '-', ' textcolor ', ' BGColor '],        [' Numberedlist ', ' BulletedList ', ' outdent ', ' Indent ', '-', ' justifyleft ', ' justifycenter ', ' justifyright ', ' Justifyblock '],        [' Upfile ', ' Image ', ' Flash ', ' Table ', ' horizontalrule '],        [' Format '],        [' FontSize '],    ]; if(Type = = ' simple ')returnCkeditor_toolbar_simple;} //End Func

I was using the editor: Ckeditor_4.4.6_full

CKEditor Customizing toolbars

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.