Browse Source

Trigger RTE toolbar update on component updates

pull/2524/head
Artur Arseniev 6 years ago
parent
commit
96a4f84b15
  1. 3
      src/rich_text_editor/index.js

3
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);

Loading…
Cancel
Save