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
Post a Comment