简体   繁体   中英

CKEditor set width

I am using CKEditor 4 with inline editing. I want to set custom height to the CKEditor toolbar that appears. I looked around and found a solution

config.height = 300;
config.width = 550;

I wrote the above two lines in the config.js file. But sadly, its not working for me.

Any Ideas? Or inline editing doesnt support custom height?

EDIT :

I alsp tried this in my js

editor.resize( 900, 300 );

but no luck

Just use the linebreak '/' as Zee suggested in the comment area.

For example:

  config.toolbarGroups = [
        { name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
        { name: 'editing',     groups: [ 'find', 'selection', 'spellchecker', 'basicstyles', 'cleanup'] },
        '/',
        { name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align' ] },
        { name: 'links' },
        ...
]

The linebreak will break the buttons into two rows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM