Browse Source

Add destroy method to RTE module

pull/2471/head
Artur Arseniev 6 years ago
parent
commit
748eb86908
  1. 10
      src/rich_text_editor/index.js

10
src/rich_text_editor/index.js

@ -83,6 +83,16 @@ export default () => {
return this;
},
destroy() {
const { customRte } = this;
globalRte && globalRte.destroy();
customRte && customRte.destroy && customRte.destroy();
toolbar = 0;
globalRte = 0;
this.actionbar = 0;
this.actions = 0;
},
/**
* Post render callback
* @param {View} ev

Loading…
Cancel
Save