Allow events on the editor by setting tabindex=-1
This commit is contained in:
parent
08eca99c16
commit
7867d1caa2
|
@ -11,6 +11,7 @@ textareaAutosizeInit($)
|
||||||
|
|
||||||
function editor(root, inputData, options) {
|
function editor(root, inputData, options) {
|
||||||
root.classList.add('root')
|
root.classList.add('root')
|
||||||
|
root.setAttribute('tabindex', '-1')
|
||||||
|
|
||||||
let cursor = createCursor()
|
let cursor = createCursor()
|
||||||
let selection = createSelection()
|
let selection = createSelection()
|
||||||
|
@ -227,6 +228,8 @@ function editor(root, inputData, options) {
|
||||||
trigger('stop-editing', currentEditor[0])
|
trigger('stop-editing', currentEditor[0])
|
||||||
editing = false
|
editing = false
|
||||||
currentEditor = null
|
currentEditor = null
|
||||||
|
|
||||||
|
$(root).focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user