From c5c987f62ed3bd964655de4683eb7821e4ee5cba Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 21 Jun 2019 11:21:13 +0200 Subject: [PATCH] use BOM marker instead of ZWS that's what others do ... --- src/editor/render.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor/render.js b/src/editor/render.js index 97d84d70b2..eb15230580 100644 --- a/src/editor/render.js +++ b/src/editor/render.js @@ -33,7 +33,8 @@ function insertAfter(node, nodeToInsert) { } } -export const ZERO_WIDTH_SPACE = "\u200b"; +// this is a BOM marker actually +export const ZERO_WIDTH_SPACE = "\ufeff"; // a caret node is a node that allows the caret to be placed // where otherwise it wouldn't be possible // (e.g. next to a pill span without adjacent text node)