Was this page helpful?

Editor seldom-used features

    Keyboard shortcuts

    CKEditor supports accessibility standarts. It means that you can work with editor using your keyboard only. The detailed accessibility instructions you can get by Alt+0.

    Also editor supports the following shortcuts:

    Shortcut Description
    CTRL+SHIFT+S Save the page
    CTRL+ALT+ENTER Maximize editor
    CTRL+K Link dialog
    CTRL+W Quick link. Selected text will be used as href.
    CTRL+SHIFT+L Toggles unordered, ordered lists and paragraph
    SHIFT+ENTER At the end of PRE block - quit from the PRE block
    CTRL+L, CTRL+E, CTRL+R, CTRL+J Left, Center, Right, Block Justify
    CTRL+1, CTRL+2 ... CTRL+5, CTRL+N, CTRL+0 Header 1 - Header 5, Paragraph

    If you still use mouse you can open corresponding dialogs by double clicking on links, images and other objects.

    Pasting

    Because of Webkit's bugs we have the following editor config params:

    config.paste_removeStylesWebkit = true;
    config.paste_removeStyles = false;
    

    The first option controls removing styles on pasting in Webkit browsers (Chrome, Safari) and it is enabled by default. If you want to strip styles on pasting in all browser just enable the second option.

    Also you can control pasting from MS Office. There are few config params for that:

    // Whether to prompt the user about the clean up of content being pasted from MS Word.
    config.pasteFromWordPromptCleanup = true;
    
    // Whether to ignore all font related formatting styles
    config.pasteFromWordRemoveFontStyles = false;
    
    // Whether to transform MS Word outline numbered headings into lists.
    config.pasteFromWordNumberedHeadingToList = true;
    
    // Whether to remove element styles that can't be managed with the editor.
    config.pasteFromWordRemoveStyles = false;
    

    Plugins

    Editor is delivered with few disabled plugins.

    • Table columns resize - allows to resize table columns by simply clicking and dragging the small space between the cells.

    • Table Convert - allows to convert text to table and vice versa.
    • Sort Table - allows to sort table by text, numbers or dates.
    • One Click Table - allows to quickly create tables picking dimensions using the mouse.

    You can enable these plugins using the following config param:

    config.extraPlugins = 'tableresize,tableconvert,tablesort,oneclicktable';
    

    You can disable any unwanted plugin (corresponding button(s) will disappear from your toolbar):

    config.removePlugins = 'flash,definitionlist';
    

    Read-only blocks

    You can define read-only blocks of text that should not be changed by the user. To do that, it's enough to use the HTML5 contenteditable attribute to mark the elements you want protected.

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by