javascript - How to change width of inline toolbar of CKEDITOR? -


can width of inline toolbar changed fixed width?

config.width=400; doesn't work inline toolbar.

the geometry of inline toolbar can adjusted using css.

the toolbar built on top of floating space plugin, can accessed via .cke_float class or #cke_{editor.name} id attribute.

inside the floating space panel resides top space of editor (it holds toolbar), has .cke_top class , can accessed js ckeditor.instances.{name}.ui.space( 'top' ).

long story short, there 3 different css approaches, , each 1 of them should trick:

body .cke_top, body .cke_float, #cke_{editor.name} {     width: 300px; } 

note: used body increase specificity of selector.

yet note: can same js , ckeditor api:

ckeditor.instances.{name}.ui.space( 'top' ).setstyle( 'width', '100px' ) 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -