From 4c23deb380856076ebe30ab8f5f2e8916c9f7096 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 20 Aug 2018 01:25:16 +0200 Subject: [PATCH] edit/page: reposition table dimension fields in columns Utilise empty width left by elements removed in the previous commit. --- edit/page.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/edit/page.js b/edit/page.js index c9a6f1e..5e38383 100644 --- a/edit/page.js +++ b/edit/page.js @@ -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 -- 2.30.0