add destroy event
This commit is contained in:
@@ -385,6 +385,8 @@ export class Editor extends EventEmitter {
|
||||
* Destroy the editor.
|
||||
*/
|
||||
public destroy() {
|
||||
this.emit('destroy')
|
||||
|
||||
if (this.view) {
|
||||
this.view.destroy()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user