From db045c6ffdb7a89695fe6f545a4b33e0baaf146f Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 24 Jun 2014 18:45:54 +0100 Subject: [PATCH 1/4] 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 beec4971..dba9fe8e 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 { From 25ace65374cd13516f315d086f39062086817ea1 Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 24 Jun 2014 18:46:41 +0100 Subject: [PATCH 2/4] don't lose comment --- src/static/css/iframe_editor.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/css/iframe_editor.css b/src/static/css/iframe_editor.css index dba9fe8e..a2930c0f 100644 --- a/src/static/css/iframe_editor.css +++ b/src/static/css/iframe_editor.css @@ -76,7 +76,7 @@ body.grayedout { background-color: #eee !important } body.doesWrap { /* 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; + word-wrap: break-word; /* fix for issue #1648 - firefox not wrapping long lines (without spaces) correctly */ } #innerdocbody { From b657676bdd8a38dfb64bd005d8bdc4a71a5ff5e2 Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 24 Jun 2014 19:02:40 +0100 Subject: [PATCH 3/4] gah can only do 1/2 a fix --- src/static/css/iframe_editor.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/css/iframe_editor.css b/src/static/css/iframe_editor.css index a2930c0f..cb928c02 100644 --- a/src/static/css/iframe_editor.css +++ b/src/static/css/iframe_editor.css @@ -75,7 +75,7 @@ body.grayedout { background-color: #eee !important } } body.doesWrap { - /* white-space: pre-wrap; */ /* Enabling this causes Paste as plain text in Chrome to remove line breaks, this is probably undesirable */ + white-space: pre-wrap; /*Must be pre-wrap to keep trailing spaces. Otherwise you get a zombie caret, walking around your screen (see #1766), WARNING: Enabling this causes Paste as plain text in Chrome to remove line breaks, this is probably undesirable */ word-wrap: break-word; /* fix for issue #1648 - firefox not wrapping long lines (without spaces) correctly */ } From 2ee4e9e7fd698b6aa019db61c9cfd8dc862727b8 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sat, 28 Jun 2014 15:19:28 +0100 Subject: [PATCH 4/4] change to line 73 --- src/static/css/iframe_editor.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/static/css/iframe_editor.css b/src/static/css/iframe_editor.css index cb928c02..b88db7a1 100644 --- a/src/static/css/iframe_editor.css +++ b/src/static/css/iframe_editor.css @@ -70,7 +70,7 @@ body.grayedout { background-color: #eee !important } #innerdocbody { font-size: 12px; /* overridden by body.style */ - font-family: monospace; /* overridden by body.style */ + font-family:Arial, sans-serif; /* overridden by body.style */ line-height: 16px; /* overridden by body.style */ } @@ -87,7 +87,6 @@ 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 {