Merge pull request #419 from rmckayfleming/set-selection

Allow Extensions to redefine the behaviour of setSelection
This commit is contained in:
Philipp Kühn 2019-08-07 12:10:46 +02:00 committed by GitHub
commit b8d23e7e30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,10 @@ export default class ComponentView {
updateAttrs: attrs => this.updateAttrs(attrs), updateAttrs: attrs => this.updateAttrs(attrs),
} }
if (typeof this.extension.setSelection === 'function') {
this.setSelection = this.extension.setSelection
}
this.vm = new Component({ this.vm = new Component({
parent: this.parent, parent: this.parent,
propsData: props, propsData: props,