mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-02 15:44:28 -06:00
Disallow line numbers
CSS is all messed up - could be a future enhancement.
This commit is contained in:
parent
bcf70a53df
commit
6e17a82530
@ -56,7 +56,6 @@ simplemde.codemirror.getValue();
|
|||||||
- **toolbar**: If set `false`, hide the toolbar. Defaults to `true`.
|
- **toolbar**: If set `false`, hide the toolbar. Defaults to `true`.
|
||||||
- **autofocus**: If set `true`, autofocuses the editor. Defaults to `false`.
|
- **autofocus**: If set `true`, autofocuses the editor. Defaults to `false`.
|
||||||
- **lineWrapping**: If set `false`, disable line wrapping. Defaults to `true`.
|
- **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`.
|
- **indentWithTabs**: If set `false`, indent using spaces instead of tabs. Defaults to `true`.
|
||||||
- **tabSize**: If set, customize the tab size. Defaults to `'2'`.
|
- **tabSize**: If set, customize the tab size. Defaults to `'2'`.
|
||||||
|
|
||||||
@ -67,7 +66,6 @@ new SimpleMDE({
|
|||||||
toolbar: false,
|
toolbar: false,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
lineWrapping: false,
|
lineWrapping: false,
|
||||||
lineNumbers: true,
|
|
||||||
indentWithTabs: false,
|
indentWithTabs: false,
|
||||||
tabSize: '4',
|
tabSize: '4',
|
||||||
});
|
});
|
||||||
|
@ -512,7 +512,7 @@ SimpleMDE.prototype.render = function(el) {
|
|||||||
theme: 'paper',
|
theme: 'paper',
|
||||||
tabSize: (options.tabSize != undefined) ? options.tabSize : '2',
|
tabSize: (options.tabSize != undefined) ? options.tabSize : '2',
|
||||||
indentWithTabs: (options.indentWithTabs === false) ? false : true,
|
indentWithTabs: (options.indentWithTabs === false) ? false : true,
|
||||||
lineNumbers: (options.lineNumbers === true) ? true : false,
|
lineNumbers: false,
|
||||||
autofocus: (options.autofocus === true) ? true : false,
|
autofocus: (options.autofocus === true) ? true : false,
|
||||||
extraKeys: keyMaps,
|
extraKeys: keyMaps,
|
||||||
lineWrapping: (options.lineWrapping === false) ? false : true
|
lineWrapping: (options.lineWrapping === false) ? false : true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user