Update dependencies

This commit is contained in:
RainLoop Team 2016-08-30 01:10:24 +03:00
parent a30fc911f6
commit b28d4f8cf3
7 changed files with 503 additions and 99 deletions

View file

@ -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)