From: Mischa POSLAWSKY Date: Sun, 19 Aug 2018 23:25:16 +0000 (+0200) Subject: edit/page: reposition table dimension fields in columns X-Git-Tag: v3.7~19 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/4c23deb380856076ebe30ab8f5f2e8916c9f7096 edit/page: reposition table dimension fields in columns Utilise empty width left by elements removed in the previous commit. --- 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