Instead of stacking elements vertically in rows, we use an hbox layout, which arranges the child elements horizontally (in a single row). hbox is CKEditor's way of arranging elements in a horizontal box, essentially allowing you to create columns.
Source code viewer
CKEDITOR.dialog.add('exampleDialog', function (editor) { return { title: 'Example Dialog', minWidth: 400, minHeight: 200, contents: [ { id: 'tab-basic', label: 'Basic Settings', elements: [ { type: 'hbox', // Use hbox layout to create horizontal boxes (columns) widths: ['50%', '50%'], // Define column widths (50% for each column) children: [ { type: 'fieldset', label: 'Column 1', children: [ { type: 'text', id: 'field1', label: 'Field 1' }, { type: 'text', id: 'field2', label: 'Field 2' } ] }, { type: 'fieldset', label: 'Column 2', children: [ { type: 'text', id: 'field3', label: 'Field 3' }, { type: 'text', id: 'field4', label: 'Field 4' } ] } ] } ] } ], }; });Programming Language: Javascript