开发者

Customizing CKEditor

I'm building a site with Perch Cms (really neat, check it out!), and now I'm trying to customize the ckeditor I just installed.

What I'm trying to to is basicly just to restrict the formatting options and so on in the editor.

I've managed to find the config.js file in CKE's root folder.

The changes so far, 开发者_运维知识库which at least make some difference:

CKEDITOR.editorConfig = function( config )
{   
    config.toolbar_Full = [
        ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'],
        ['Undo', 'Redo'],
        ['Bold', 'Italic', 'Underline', 'Strike', 'Format']
    ];      
};

But how can I specify which heading tags that are allowed?


You can add config.format_tags = 'p;h1;h2;h3'; in this case only p,h1,h2,h3 will be shown in format dropdown.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜