mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 02:59:01 +08:00
Allow extensions to define update behavior.
This commit is contained in:
parent
fb147d45f3
commit
17c58c029b
@ -44,6 +44,9 @@ export default class ComponentView {
|
||||
if (typeof this.extension.setSelection === 'function') {
|
||||
this.setSelection = this.extension.setSelection
|
||||
}
|
||||
if (typeof this.extension.update === 'function') {
|
||||
this.update = this.extension.update
|
||||
}
|
||||
|
||||
this.vm = new Component({
|
||||
parent: this.parent,
|
||||
|
Loading…
Reference in New Issue
Block a user