From a3deb710160f1f84b314ebf96ed6be99e56474e4 Mon Sep 17 00:00:00 2001 From: Yankl-Peretz Blum Date: Tue, 26 Jul 2022 00:21:19 -0400 Subject: [PATCH] Enable RTL mode for codemirror editor (#2297) This is the missing piece of this commit: https://github.com/codemirror/codemirror5/commit/3c18925bc667a5f0c9580de846ec4deaced6abd5#diff-af6b8871a31183cf87b727db7afb5c0a2800f27df16280eaa0f4e8d30fe6b111 --- themes/grav/css/codemirror/codemirror.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/grav/css/codemirror/codemirror.css b/themes/grav/css/codemirror/codemirror.css index e703d59a..4d10704e 100644 --- a/themes/grav/css/codemirror/codemirror.css +++ b/themes/grav/css/codemirror/codemirror.css @@ -263,6 +263,8 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} .CodeMirror-widget {} +.CodeMirror-rtl pre { direction: rtl; } + .CodeMirror-code { outline: none; }