Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Changed order of destroying the editor layers. Plugins must be destro…
Browse files Browse the repository at this point in the history
…yed before the UI.
  • Loading branch information
Kamil Piechaczek committed May 31, 2017
1 parent 679c252 commit 486333e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export default class ClassicEditor extends StandardEditor {
this.updateEditorElement();
this._elementReplacer.restore();

return this.ui.destroy()
.then( () => super.destroy() );
return super.destroy()
.then( () => this.ui.destroy() );
}

/**
Expand Down

0 comments on commit 486333e

Please sign in to comment.