X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/e48e424157d44fe42b1b448920d4b24424424ae2..81dcf42eb0bd11110ec30ce3840718b259ec5082:/edit/page.js diff --git a/edit/page.js b/edit/page.js index eeef762..c9a6f1e 100644 --- a/edit/page.js +++ b/edit/page.js @@ -51,11 +51,13 @@ 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'); break; case 'link': // hide unneeded widgets from the Link Info tab @@ -95,14 +97,22 @@ CKEDITOR.on('instanceCreated', function (event) { config.image2_alignClasses = ['left', 'center', 'right']; config.image2_disableResizer = true; config.stylesSet = [ + { name: 'Klein', element: 'small' }, + { name: 'Zijkant', element: 'span', attributes: { 'class': 'right' } }, + { name: 'Attributie', element: 'em', attributes: { 'class': 'right' } }, + { name: 'Quote', element: 'q' }, + { name: 'Gemarkeerd', element: 'span', styles: { 'background-color': 'Yellow' } }, + + { name: 'Kadertekst', element: 'aside' }, + { name: 'Uitgelijnd', element: 'div', attributes: { 'class': 'right' } }, { name: 'Kolom', element: 'div', attributes: { 'class': 'col' } }, - { name: 'Rechts', element: 'div', attributes: { 'class': 'right' } }, + { name: 'Waarschuwing', element: 'div', attributes: { 'class': 'warn' } }, ]; config.pasteFilter = pastefilter; config.contentsCss = document.styleSheets[0].href; config.toolbar = [ ['Inlinesave', '-', 'Undo', 'Redo'], - ['Format'], + ['Format', 'Styles'], ['Bold', 'Italic', 'Link'], ['BulletedList', 'NumberedList', 'Blockquote'], ['Table', 'CreateDiv'], @@ -113,6 +123,7 @@ CKEDITOR.on('instanceCreated', function (event) { config.toolbarCanCollapse = true; config.floatSpacePreferRight = true; config.floatSpaceDockedOffsetY = 0; + config.title = false; config.startupFocus = true; config.disableObjectResizing = true;