From ea972498ad1d2a537975262cb6ecd1685c44a7f3 Mon Sep 17 00:00:00 2001 From: Oliver Pulges Date: Fri, 31 Jul 2015 12:27:46 +0300 Subject: [PATCH] Fix webkit unable to select content with ctrl+a if uneditable element is first or last in editable area --- src/dom/remove_empty_text_nodes.js | 3 +- src/selection/selection.js | 90 ++++++++++++++++++++++++++++++ src/views/composer.observe.js | 7 +++ 3 files changed, 99 insertions(+), 1 deletion(-) diff --git a/src/dom/remove_empty_text_nodes.js b/src/dom/remove_empty_text_nodes.js index cf901fb..4d75b38 100644 --- a/src/dom/remove_empty_text_nodes.js +++ b/src/dom/remove_empty_text_nodes.js @@ -10,9 +10,10 @@ wysihtml5.dom.removeEmptyTextNodes = function(node) { childNodes = wysihtml5.lang.array(node.childNodes).get(), childNodesLength = childNodes.length, i = 0; + for (; i