X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/8cf1f0f1bc40c515afafb022ac658c592baa46cc..4c23deb380856076ebe30ab8f5f2e8916c9f7096:/edit/page.js diff --git a/edit/page.js b/edit/page.js index cdf1f21..5e38383 100644 --- a/edit/page.js +++ b/edit/page.js @@ -51,11 +51,24 @@ CKEDITOR.on('dialogDefinition', function (event) { switch (event.data.name) { case 'table': // override initial attribute values - var infoTab = event.data.definition.getContents('info'); - infoTab.get('txtWidth').default = ''; - infoTab.get('txtBorder').default = '0'; - infoTab.get('txtCellSpace').default = ''; - infoTab.get('txtCellPad').default = ''; + var infotab = event.data.definition.getContents('info'); + infotab.remove('txtWidth'); + infotab.remove('txtHeight'); + infotab.remove('txtBorder'); + 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