Skip to content
Snippets Groups Projects
Commit 64cffa1f authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

Make sure line backgrounds aren't treated as content in contentEditable mode

Issue #4194
Closes #4500
parent e8f31467
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,7 @@ function updateLineGutter(cm, lineView, lineN, dims) {
let wrap = ensureLineWrapped(lineView)
lineView.gutterBackground = elt("div", null, "CodeMirror-gutter-background " + lineView.line.gutterClass,
`left: ${cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth}px; width: ${dims.gutterTotalWidth}px`)
cm.display.input.setUneditable(gutterWrap)
wrap.insertBefore(lineView.gutterBackground, lineView.text)
}
let markers = lineView.line.gutterMarkers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment