From f5d33b58a59fe9febd75201ce4661e35e84fdfb4 Mon Sep 17 00:00:00 2001 From: Nicholas Mayne Date: Fri, 15 Aug 2014 21:14:43 +0100 Subject: [PATCH] Adding RTL to templates --- .../Modules/Orchard.Templates/Scripts/template-editor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Templates/Scripts/template-editor.js b/src/Orchard.Web/Modules/Orchard.Templates/Scripts/template-editor.js index fb4dd5cfa..2e11a9448 100644 --- a/src/Orchard.Web/Modules/Orchard.Templates/Scripts/template-editor.js +++ b/src/Orchard.Web/Modules/Orchard.Templates/Scripts/template-editor.js @@ -1,7 +1,7 @@ (function ($) { var initializeEditor = function () { var textArea = $(".code-editor")[0]; - var editor = CodeMirror.fromTextArea(textArea, { + CodeMirror.fromTextArea(textArea, { lineNumbers: true, mode: "application/x-ejs", indentUnit: 4, @@ -9,7 +9,8 @@ enterMode: "keep", tabMode: "shift", theme: "default", - autoCloseTags: true + autoCloseTags: true, + rtlMoveVisually: window.isRtl }); };