From a1ad1bce180390b842d606dac462bdbda68614ef Mon Sep 17 00:00:00 2001 From: Robert Gies Date: Thu, 19 Jul 2018 22:08:52 +0200 Subject: [PATCH] Update core.js Fix for issue #1477 with textarea problems --- src/lib/aloha/core.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/aloha/core.js b/src/lib/aloha/core.js index f04181ba95..7f511d75e6 100755 --- a/src/lib/aloha/core.js +++ b/src/lib/aloha/core.js @@ -519,6 +519,15 @@ define([ if (Aloha.editables[i].originalObj[0] === editable) { return Aloha.editables[i]; } + + if ( editable.hasChildNodes() && editable.childNodes.length > 0) { + var k; + for (k = 0; k < editable.childNodes.length; k++) { + if (Aloha.editables[i].originalObj[0] === editable.childNodes[k]) { + return Aloha.editables[i]; + } + } + } } return null; };