Changes between Initial Version and Version 1 of Ticket #5094, comment 6


Ignore:
Timestamp:
Sep 1, 2011, 1:10:29 PM (13 years ago)
Author:
Jakub Ś
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5094, comment 6

    initial v1  
    11This issue was duplicated in #8329
     2
     3----
     4Attaching comment from #8329 since it offers a fix:[[BR]]
     5
     6>It would be nice to allow radio buttons to be able to use vbox layout instead of the hardcoded hbox-layout.
     7
     8>This can be done by inserting the following code:
     9
     10>if ( elementDefinition.labelLayout != 'horizontal' )
     11> new CKEDITOR.ui.dialog.vbox( dialog, [], inputHtmlList, html );
     12>else
     13>  new CKEDITOR.ui.dialog.hbox( dialog, [], inputHtmlList, html );
     14>instead of:
     15>new CKEDITOR.ui.dialog.hbox( dialog, [], inputHtmlList, html );
     16
     17>In version 3.6.1 the code that has been changed is in line 479 of plugins.js under the dialogui folder.
     18>It is then possible - when creating the radiobutton group in the dialog to use:
     19>labelLayout: "vertical"
     20
     21>By writing the code in the above way it would be backward compatible using the hbox layout if nothing is defined - but if anything else than "horizontal" is used, vbox layout will be used instead.
     22
     23>I hope you will include this "minor" change so I don't manually have to insert it in the code for every update of CKEDITOR ;-)
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy