From 5f73a5ec30202dee9b6e7710013160af28542e4a Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 12 Feb 2013 00:08:44 +0000 Subject: [PATCH 1/2] very simple fix that might break other things but stops the caret focus being moved to the end of new lines when a long string without spaces is pasted into a pad --- src/static/css/iframe_editor.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/static/css/iframe_editor.css b/src/static/css/iframe_editor.css index 5134fcdb..34b562e7 100644 --- a/src/static/css/iframe_editor.css +++ b/src/static/css/iframe_editor.css @@ -176,3 +176,7 @@ p { } #overlaysdiv { position: absolute; left: -1000px; top: -1000px; } + +.ace-line{ + overflow:hidden; +} From 2f2046144554bf431d88c3a5167fba1fe039bc12 Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 12 Feb 2013 00:13:47 +0000 Subject: [PATCH 2/2] a 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 34b562e7..dd7452b2 100644 --- a/src/static/css/iframe_editor.css +++ b/src/static/css/iframe_editor.css @@ -178,5 +178,5 @@ p { #overlaysdiv { position: absolute; left: -1000px; top: -1000px; } .ace-line{ - overflow:hidden; + overflow:hidden; /* Stops super long lines without being spaces such as aaaaaaaaaaaaaa*100 breaking the editor */ }