From 7fa15473ada973c2644693d09f3dcc80f6dce1f3 Mon Sep 17 00:00:00 2001 From: Boris Thuy Date: Fri, 3 Feb 2017 03:46:09 +0100 Subject: [PATCH] Added word-wrap property to CodeMirror class (Absurdly) long words would cause the live preview to scroll indefinitely on the x-axis. Adding a word-wrap property to the CodeMirror class and setting its value to break-word seems to fix this issue. --- src/css/simplemde.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/css/simplemde.css b/src/css/simplemde.css index 17c814a..18c5b30 100644 --- a/src/css/simplemde.css +++ b/src/css/simplemde.css @@ -8,6 +8,7 @@ padding: 10px; font: inherit; z-index: 1; + word-wrap: break-word; } .CodeMirror-scroll {