Browse Source

Update RTE destroy method

pull/3147/head
Artur Arseniev 5 years ago
parent
commit
1941b5cbf8
  1. 5
      src/rich_text_editor/index.js

5
src/rich_text_editor/index.js

@ -87,10 +87,11 @@ export default () => {
const { customRte } = this;
globalRte && globalRte.destroy();
customRte && customRte.destroy && customRte.destroy();
toolbar = 0;
globalRte = 0;
this.actionbar = 0;
this.actions = 0;
[config, toolbar, actions, lastEl, lastElPos, globalRte].forEach(
i => (i = {})
);
},
/**

Loading…
Cancel
Save