2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-13 13:04:27 -06:00

Allow modify lineNumbers via config options

This commit is contained in:
Dung Nguyen 2020-11-11 21:48:53 +07:00 committed by GitHub
parent 11f805f0b5
commit 65186e4537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2034,7 +2034,7 @@ EasyMDE.prototype.render = function (el) {
tabSize: (options.tabSize != undefined) ? options.tabSize : 2, tabSize: (options.tabSize != undefined) ? options.tabSize : 2,
indentUnit: (options.tabSize != undefined) ? options.tabSize : 2, indentUnit: (options.tabSize != undefined) ? options.tabSize : 2,
indentWithTabs: (options.indentWithTabs === false) ? false : true, indentWithTabs: (options.indentWithTabs === false) ? false : true,
lineNumbers: false, lineNumbers: (options.lineNumbers === true) ? true : 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,