mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Added Squire HTML editor as lightweight fast alternative solution for the heavy CKEditor
Some features are still missing (as i need to create own UI) Enable in: [labs] use_squire_html_editor = On
This commit is contained in:
parent
90acc04750
commit
540c70ecbf
8 changed files with 397 additions and 83 deletions
|
|
@ -650,12 +650,8 @@ class ComposePopupView extends AbstractViewNext {
|
|||
this.oEditor = new HtmlEditor(
|
||||
this.composeEditorArea(),
|
||||
null,
|
||||
() => {
|
||||
fOnInit(this.oEditor);
|
||||
},
|
||||
(bHtml) => {
|
||||
this.isHtml(!!bHtml);
|
||||
}
|
||||
() => fOnInit(this.oEditor),
|
||||
bHtml => this.isHtml(!!bHtml)
|
||||
);
|
||||
// }, 1000);
|
||||
} else if (this.oEditor) {
|
||||
|
|
|
|||
|
|
@ -107,12 +107,8 @@ class TemplatePopupView extends AbstractViewNext {
|
|||
if (!this.editor && this.signatureDom()) {
|
||||
this.editor = new HtmlEditor(
|
||||
this.signatureDom(),
|
||||
() => {
|
||||
this.populateBodyFromEditor();
|
||||
},
|
||||
() => {
|
||||
this.editor.setHtmlOrPlain(sBody);
|
||||
}
|
||||
() => this.populateBodyFromEditor(),
|
||||
() => this.editor.setHtmlOrPlain(sBody)
|
||||
);
|
||||
} else {
|
||||
this.editor.setHtmlOrPlain(sBody);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue