mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
add createdProxy event
This commit is contained in:
parent
3cfed6c17f
commit
119f7d1458
@ -61,6 +61,7 @@ export class Editor extends EventEmitter {
|
||||
constructor(options: Partial<EditorOptions> = {}) {
|
||||
super()
|
||||
this.options = { ...this.options, ...options }
|
||||
this.on('createdProxy', this.init)
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -25,7 +25,7 @@ export default function magicMethods(clazz: any) {
|
||||
}
|
||||
|
||||
instance.proxy = new Proxy(instance, instanceHandler)
|
||||
instance.init()
|
||||
instance.emit('createdProxy')
|
||||
|
||||
return instance.proxy
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user