edit/page: reposition table dimension fields in columns
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 19 Aug 2018 23:25:16 +0000 (01:25 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 25 Aug 2018 21:06:05 +0000 (23:06 +0200)
Utilise empty width left by elements removed in the previous commit.

edit/page.js

index c9a6f1e93acc8e7ee5d40dd671047a3833dc8638..5e383835993ebd8f92034e8a1fdf75e275e84217 100644 (file)
@@ -58,6 +58,17 @@ CKEDITOR.on('dialogDefinition', function (event) {
                infotab.remove('txtCellSpace');
                infotab.remove('txtCellPad');
                infotab.remove('cmbAlign');
+
+               // horizontal repositioning of existing elements
+               var hbox = {
+                       id: 'hboxDimensions',
+                       type: 'hbox',
+                       children: [ infotab.get('txtCols'), infotab.get('txtRows') ],
+               };
+               infotab.add(hbox, 'selHeaders');
+               infotab.remove('txtCols');
+               infotab.remove('txtRows');
+
                break;
        case 'link':
                // hide unneeded widgets from the Link Info tab