mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Additional ckeditor configurations
This commit is contained in:
parent
51cc12a71e
commit
7f9ad75257
2 changed files with 21 additions and 0 deletions
|
|
@ -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',
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue