We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beb8382 commit 5012e87Copy full SHA for 5012e87
src/input/ContentEditableInput.js
@@ -199,7 +199,11 @@ ContentEditableInput.prototype = copyObj({
199
},
200
201
focus: function() {
202
- if (this.cm.options.readOnly != "nocursor") this.div.focus()
+ if (this.cm.options.readOnly != "nocursor") {
203
+ if (!this.selectionInEditor())
204
+ this.showSelection(this.prepareSelection(), true)
205
+ this.div.focus()
206
+ }
207
208
blur: function() { this.div.blur() },
209
getField: function() { return this.div },
0 commit comments