Allow the extension to redefine the behaviour of setSelection

This commit is contained in:
Ryan McKay-Fleming 2019-08-01 17:10:11 -04:00
parent 1a80978d0f
commit dad0d074aa

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,