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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -