mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 02:59:01 +08:00
Merge pull request #419 from rmckayfleming/set-selection
Allow Extensions to redefine the behaviour of setSelection
This commit is contained in:
commit
b8d23e7e30
@ -41,6 +41,10 @@ export default class ComponentView {
|
||||
updateAttrs: attrs => this.updateAttrs(attrs),
|
||||
}
|
||||
|
||||
if (typeof this.extension.setSelection === 'function') {
|
||||
this.setSelection = this.extension.setSelection
|
||||
}
|
||||
|
||||
this.vm = new Component({
|
||||
parent: this.parent,
|
||||
propsData: props,
|
||||
|
Loading…
Reference in New Issue
Block a user