mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Update dependencies
This commit is contained in:
parent
a30fc911f6
commit
b28d4f8cf3
7 changed files with 503 additions and 99 deletions
|
|
@ -24,6 +24,7 @@ class HtmlEditor
|
|||
this.onReady = onReady;
|
||||
this.onModeChange = onModeChange;
|
||||
|
||||
this.element = element;
|
||||
this.$element = $(element);
|
||||
|
||||
this.resize = _.throttle(_.bind(this.resize, this), 100);
|
||||
|
|
@ -213,7 +214,7 @@ class HtmlEditor
|
|||
}
|
||||
|
||||
init() {
|
||||
if (this.$element && this.$element[0] && !this.editor)
|
||||
if (this.element && !this.editor)
|
||||
{
|
||||
const
|
||||
initFunc = () => {
|
||||
|
|
@ -248,7 +249,7 @@ class HtmlEditor
|
|||
window.CKEDITOR.env.isCompatible = true;
|
||||
}
|
||||
|
||||
this.editor = window.CKEDITOR.appendTo(this.$element[0], config);
|
||||
this.editor = window.CKEDITOR.appendTo(this.element, config);
|
||||
|
||||
this.editor.on('key', (event) => {
|
||||
if (event && event.data && EventKeyCode.Tab === event.data.keyCode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue