From 2c2e2f8c8c0a1ece748b758bb0d2cc43bf319777 Mon Sep 17 00:00:00 2001 From: Juan Date: Fri, 14 Jun 2019 10:18:31 +0200 Subject: [PATCH] typo --- src/rich_text_editor/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rich_text_editor/index.js b/src/rich_text_editor/index.js index 56b583bf3..748fb5b11 100644 --- a/src/rich_text_editor/index.js +++ b/src/rich_text_editor/index.js @@ -231,7 +231,7 @@ module.exports = () => { * Triggered when the offset of the editor is changed * @private */ - udpatePosition() { + updatePosition() { const un = 'px'; const canvas = config.em.get('Canvas'); const pos = canvas.getTargetToElementDim(toolbar, lastEl, { @@ -272,10 +272,10 @@ module.exports = () => { rte = customRte ? customRte.enable(el, rte) : this.initRte(el).enable(); if (em) { - setTimeout(this.udpatePosition.bind(this), 0); + setTimeout(this.updatePosition.bind(this), 0); const event = 'change:canvasOffset canvasScroll'; - em.off(event, this.udpatePosition, this); - em.on(event, this.udpatePosition, this); + em.off(event, this.updatePosition, this); + em.on(event, this.updatePosition, this); em.trigger('rte:enable', view, rte); }