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

@ -267,6 +267,19 @@
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.on('key', function(oEvent) {