diff options
author | John McLear <john@mclear.co.uk> | 2015-05-07 23:09:24 +0100 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2015-05-07 23:09:24 +0100 |
commit | f5ccd3ce6dffc8eec01ed3516d8052f3cd1d3ab4 (patch) | |
tree | 94d4d725617f4a86a2cd6867a0d8f591c8ac7b93 | |
parent | 74071dc0668af2ebcb7333ef893ba9a18a7d890d (diff) | |
parent | 250afd04512141d446259a38a7df2c0f8e303ae9 (diff) | |
download | etherpad-lite-f5ccd3ce6dffc8eec01ed3516d8052f3cd1d3ab4.zip |
Merge pull request #2656 from stefanmintert/20150507-innertext-bugfix
Bugfix innerText
-rw-r--r-- | src/static/js/ace2_inner.js | 6 |
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) |