summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-05-01 20:44:36 +0100
committerJohn McLear <john@mclear.co.uk>2015-05-01 20:44:36 +0100
commit0a9c63141047beae0475747ca6e173f852f4642b (patch)
treea5a6254692f82bee99134440b817cd83cfeb1070 /src
parent4938c7be38d69246e577cfb45e86263f7062edc0 (diff)
downloadetherpad-lite-0a9c63141047beae0475747ca6e173f852f4642b.zip
better fix for #2625
Diffstat (limited to 'src')
-rw-r--r--src/static/css/iframe_editor.css6
-rw-r--r--src/static/js/ace2_inner.js2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/static/css/iframe_editor.css b/src/static/css/iframe_editor.css
index b7ece1e6..2824a10a 100644
--- a/src/static/css/iframe_editor.css
+++ b/src/static/css/iframe_editor.css
@@ -113,7 +113,11 @@ body.doesWrap {
word-wrap: break-word; /* fix for issue #1648 - firefox not wrapping long lines (without spaces) correctly */
}
-body.doesWrap > div{
+.noprewrap{
+ white-space: normal;
+}
+
+body.doesWrap:not(.noprewrap) > div{
/* Related to #1766 */
white-space: pre-wrap;
}
diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js
index 5ec0127b..d3cc4fd3 100644
--- a/src/static/js/ace2_inner.js
+++ b/src/static/js/ace2_inner.js
@@ -612,7 +612,7 @@ function Ace2Inner(){
// So this has to be set to pre-wrap ;(
// We need to file a bug w/ the Chromium team.
if(browser.chrome){
- $("#innerdocbody, body.doesWrap > div").css({"white-space":"pre-wrap"});
+ $("#innerdocbody").addClass("noprewrap");
}
}