From db045c6ffdb7a89695fe6f545a4b33e0baaf146f Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 24 Jun 2014 18:45:54 +0100 Subject: [PATCH] CSS fix for pasting plain-text in chrome, needs thorough testing --- src/static/css/iframe_editor.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/static/css/iframe_editor.css b/src/static/css/iframe_editor.css index beec4971c..dba9fe8ed 100644 --- a/src/static/css/iframe_editor.css +++ b/src/static/css/iframe_editor.css @@ -75,8 +75,8 @@ body.grayedout { background-color: #eee !important } } body.doesWrap { - white-space: pre-wrap; /*Must be pre-wrap to keep trailing spaces. Otherwise you get a zombie caret, walking around your screen (see #1766) */ - word-wrap: break-word; /* fix for issue #1648 - firefox not wrapping long lines (without spaces) correctly */ + /* white-space: pre-wrap; */ /* Enabling this causes Paste as plain text in Chrome to remove line breaks, this is probably undesirable */ + word-wrap: break-word; } #innerdocbody { @@ -87,6 +87,7 @@ body.doesWrap { overflow: hidden; /* blank 1x1 gif, so that IE8 doesn't consider the body transparent */ background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==); + font-family:Arial, sans-serif; } #sidediv {