From 23f7f0944d30b9583b3a11cd2ad2e3b16d19f86d Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Sat, 10 Sep 2022 23:36:03 +0200 Subject: [PATCH 1/2] Fix typos/grammar --- source/CodeMirror.mint | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/CodeMirror.mint b/source/CodeMirror.mint index e1cc2d1..d5c059b 100644 --- a/source/CodeMirror.mint +++ b/source/CodeMirror.mint @@ -12,16 +12,16 @@ component CodeMirror { /* The content to display until the editor is loaded. */ property loadingContent : Html = <> - /* Whether or not show line numbers. */ + /* Whether or not to show the line numbers. */ property lineNumbers : Bool = true /* Whether or not the content is editable. */ property readOnly : Bool = false - /* The number of spaces userd for indentation. */ + /* The number of spaces used for indentation. */ property tabSize : Number = 2 - /* When provided this value will be in the editor.s */ + /* When provided this value will be in the editor. */ property value : String = "" /* The theme of the editor. */ From 6d2186db9633573cfd3147132e5fc9943552ffa0 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Sat, 10 Sep 2022 23:38:50 +0200 Subject: [PATCH 2/2] Add `lineWrapping` property --- source/CodeMirror.mint | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/CodeMirror.mint b/source/CodeMirror.mint index d5c059b..25f143b 100644 --- a/source/CodeMirror.mint +++ b/source/CodeMirror.mint @@ -15,6 +15,9 @@ component CodeMirror { /* Whether or not to show the line numbers. */ property lineNumbers : Bool = true + /* Whether or not to wrap the lines. */ + property lineWrapping : Bool = false + /* Whether or not the content is editable. */ property readOnly : Bool = false @@ -49,6 +52,7 @@ component CodeMirror { this.editor = CodeMirror.fromTextArea(#{element}._0, { lineNumbers: #{lineNumbers}, + lineWrapping: #{lineWrapping}, readOnly: #{readOnly}, tabSize: #{tabSize}, theme: #{theme},