Skip to content

Commit 4c81051

Browse files
committed
Initialize contenteditable input as editable
So that autofocus works. Closes #6624
1 parent b7160fe commit 4c81051

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/input/ContentEditableInput.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export default class ContentEditableInput {
2929
init(display) {
3030
let input = this, cm = input.cm
3131
let div = input.div = display.lineDiv
32+
div.contentEditable = true
3233
disableBrowserMagic(div, cm.options.spellcheck, cm.options.autocorrect, cm.options.autocapitalize)
3334

3435
function belongsToInput(e) {

0 commit comments

Comments
 (0)