X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/2ac61542b2b7be587b9b5d0bc6b84a385b38914a..c0f916285fa69edb97a6c8311f567b90b3959ed3:/edit/page.js diff --git a/edit/page.js b/edit/page.js index c89c13e..522d63e 100644 --- a/edit/page.js +++ b/edit/page.js @@ -39,6 +39,7 @@ CKEDITOR.plugins.add('inlinesave', { ajaxpost.send(data); }, }); + editor.setKeystroke(CKEDITOR.CTRL + 83 /*S*/, 'inlinesave'); editor.ui.addButton( 'Inlinesave', { command: 'inlinesave', label: editor.lang.save.toolbar, @@ -51,11 +52,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 @@ -121,6 +135,7 @@ CKEDITOR.on('instanceCreated', function (event) { config.toolbarCanCollapse = true; config.floatSpacePreferRight = true; config.floatSpaceDockedOffsetY = 0; + config.title = false; config.startupFocus = true; config.disableObjectResizing = true;