Skip to content

Commit 1004275

Browse files
muanmarijnh
authored andcommitted
Fix non breaking spaces (for space splitting) getting added as real spaces
1 parent 4b37981 commit 1004275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input/ContentEditableInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ function domTextBetween(cm, from, to, fromLine, toLine) {
431431
walk(node.childNodes[i])
432432
if (isBlock) closing = true
433433
} else if (node.nodeType == 3) {
434-
addText(node.nodeValue)
434+
addText(node.nodeValue.replace(/\u00a0/g, " "))
435435
}
436436
}
437437
for (;;) {

0 commit comments

Comments
 (0)