Skip to content

Commit

Permalink
Update core.js
Browse files Browse the repository at this point in the history
Fix for issue alohaeditor#1477 with textarea problems
  • Loading branch information
rgies authored Jul 19, 2018
1 parent 508b84d commit a1ad1bc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib/aloha/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit a1ad1bc

Please sign in to comment.