summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-05-07 23:09:24 +0100
committerJohn McLear <john@mclear.co.uk>2015-05-07 23:09:24 +0100
commitf5ccd3ce6dffc8eec01ed3516d8052f3cd1d3ab4 (patch)
tree94d4d725617f4a86a2cd6867a0d8f591c8ac7b93
parent74071dc0668af2ebcb7333ef893ba9a18a7d890d (diff)
parent250afd04512141d446259a38a7df2c0f8e303ae9 (diff)
downloadetherpad-lite-f5ccd3ce6dffc8eec01ed3516d8052f3cd1d3ab4.zip
Merge pull request #2656 from stefanmintert/20150507-innertext-bugfix
Bugfix innerText
-rw-r--r--src/static/js/ace2_inner.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js
index d7852263..57907820 100644
--- a/src/static/js/ace2_inner.js
+++ b/src/static/js/ace2_inner.js
@@ -1982,7 +1982,11 @@ function Ace2Inner(){
function nodeText(n)
{
- return n.innerText || n.textContent || n.nodeValue || '';
+ if (browser.msie) {
+ return n.innerText;
+ } else {
+ return n.textContent || n.nodeValue || '';
+ }
}
function getLineAndCharForPoint(point)