infoTab.get('txtCellPad').default = '';
break;
case 'link':
- //TODO: remove unneeded widgets from the Link Info tab
- var infotab = event.data.definition.getContents('info');
+ // hide unneeded widgets from the Link Info tab
+ event.data.definition.getContents('info').get('linkType').hidden = true;
+ let linktarget = event.data.definition.getContents('target').get('linkTargetType');
+ linktarget.items = [ linktarget.items[0], linktarget.items[3] ]; // only _blank
break;
}
});
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'],