From 5f0e5bbca65730c5673c14fc2532c827068ba81b Mon Sep 17 00:00:00 2001 From: Manuel Scholz Date: Tue, 9 Sep 2025 00:14:24 +0200 Subject: [PATCH] Fix: point to
  • node instead of
      when setCollapse is called --- src/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor.js b/src/editor.js index 6559109..04a1b21 100644 --- a/src/editor.js +++ b/src/editor.js @@ -163,7 +163,7 @@ function createHTML(options = {}) { var foNode; if (node){ node.innerHTML = HTML; - foNode = node.firstChild; + foNode = node.firstChild.firstChild; } else { exec("insertHTML", HTML); }