Additional ckeditor configurations

This commit is contained in:
RainLoop Team 2015-02-21 03:56:39 +04:00
parent 51cc12a71e
commit 7f9ad75257
2 changed files with 21 additions and 0 deletions

View file

@ -129,7 +129,15 @@
'removeDialogTabs': 'link:advanced;link:target;image:advanced;images:advanced', 'removeDialogTabs': 'link:advanced;link:target;image:advanced;images:advanced',
'extraPlugins': 'plain,signature', 'extraPlugins': 'plain,signature',
'allowedContent': true, 'allowedContent': true,
'extraAllowedContent': true,
'forceEnterMode': true,
'autoParagraph': false,
'fillEmptyBlocks': false,
'ignoreEmptyParagraph': true,
'font_defaultLabel': 'Arial', 'font_defaultLabel': 'Arial',
'fontSize_defaultLabel': '13', 'fontSize_defaultLabel': '13',

View file

@ -267,6 +267,19 @@
window.CKEDITOR.env.isCompatible = true; window.CKEDITOR.env.isCompatible = true;
} }
// oConfig.allowedContent = {
// $1: {
// elements: window.CKEDITOR.dtd,
// attributes: true,
// styles: true,
// classes: true
// }
// };
//
// oConfig.disallowedContent = 'script; style; iframe; frame; *[on*]';
window.CKEDITOR.dtd.$removeEmpty['p'] = 1;
self.editor = window.CKEDITOR.appendTo(self.$element[0], oConfig); self.editor = window.CKEDITOR.appendTo(self.$element[0], oConfig);
self.editor.on('key', function(oEvent) { self.editor.on('key', function(oEvent) {