From 96a4f84b157ffa8a19a318256f2f32cf9c731cff Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Tue, 21 Jan 2020 00:02:22 +0100 Subject: [PATCH] Trigger RTE toolbar update on component updates --- src/rich_text_editor/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rich_text_editor/index.js b/src/rich_text_editor/index.js index 7f0f9a8dd..298caa4c3 100644 --- a/src/rich_text_editor/index.js +++ b/src/rich_text_editor/index.js @@ -300,7 +300,8 @@ export default () => { if (em) { setTimeout(this.updatePosition.bind(this), 0); - const event = 'change:canvasOffset canvasScroll frame:scroll'; + const event = + 'change:canvasOffset canvasScroll frame:scroll component:update'; em.off(event, this.updatePosition, this); em.on(event, this.updatePosition, this); em.trigger('rte:enable', view, rte);