From 6e17a8253013094f36b87ce2a3c74bfb6b5a849c Mon Sep 17 00:00:00 2001 From: Wes Cossick Date: Fri, 26 Jun 2015 14:09:17 -0500 Subject: [PATCH] Disallow line numbers CSS is all messed up - could be a future enhancement. --- README.md | 2 -- source files/markdownify.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index c9b641c..6eda96c 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,6 @@ simplemde.codemirror.getValue(); - **toolbar**: If set `false`, hide the toolbar. Defaults to `true`. - **autofocus**: If set `true`, autofocuses the editor. Defaults to `false`. - **lineWrapping**: If set `false`, disable line wrapping. Defaults to `true`. -- **lineNumbers**: If set `true`, shows line numbers. Defaults to `false`. - **indentWithTabs**: If set `false`, indent using spaces instead of tabs. Defaults to `true`. - **tabSize**: If set, customize the tab size. Defaults to `'2'`. @@ -67,7 +66,6 @@ new SimpleMDE({ toolbar: false, autofocus: true, lineWrapping: false, - lineNumbers: true, indentWithTabs: false, tabSize: '4', }); diff --git a/source files/markdownify.js b/source files/markdownify.js index fa983a2..1235b82 100644 --- a/source files/markdownify.js +++ b/source files/markdownify.js @@ -512,7 +512,7 @@ SimpleMDE.prototype.render = function(el) { theme: 'paper', tabSize: (options.tabSize != undefined) ? options.tabSize : '2', indentWithTabs: (options.indentWithTabs === false) ? false : true, - lineNumbers: (options.lineNumbers === true) ? true : false, + lineNumbers: false, autofocus: (options.autofocus === true) ? true : false, extraKeys: keyMaps, lineWrapping: (options.lineWrapping === false) ? false : true