}
});
+CKEDITOR.on('dialogDefinition', function (event) {
+ if (event.data.name === '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 = '';
+ }
+});
+
CKEDITOR.on('instanceCreated', function (event) {
var editor = event.editor;
editor.on('configLoaded', function () {
config.format_tags = 'h2;h3;h4;p';
config.allowedContent = true;
config.entities = false; // keep unicode
+ config.filebrowserImageUploadUrl = '/edit.php?type=img';
config.toolbar = [
['Inlinesave', '-', 'ShowBlocks', 'Sourcedialog', '-', 'Undo', 'Redo'],
['Format'],
['Bold', 'Italic', 'Underline', 'Strike', '-', 'Link'],
['HorizontalRule', 'Table', 'Image'],
];
+
+ config.disableObjectResizing = true;
+ document.execCommand('enableObjectResizing', false, false); // workaround in inline mode; ff bug?
});
});