| 2 | |
| 3 | ---- |
| 4 | Attaching 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 ;-) |