mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 19:29:02 +08:00
Merge pull request #603 from BrianHung/updateExtension
Allow extensions to define update behavior.
This commit is contained in:
commit
6d9c878b46
@ -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