mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-09-24 16:40:55 -06:00
Add support for readonly attribute on textarea
This commit is contained in:
parent
a7fb5d8f06
commit
57fade2b97
@ -2121,6 +2121,7 @@ EasyMDE.prototype.render = function (el) {
|
|||||||
lineWrapping: (options.lineWrapping === false) ? false : true,
|
lineWrapping: (options.lineWrapping === false) ? false : true,
|
||||||
allowDropFileTypes: ['text/plain'],
|
allowDropFileTypes: ['text/plain'],
|
||||||
placeholder: options.placeholder || el.getAttribute('placeholder') || '',
|
placeholder: options.placeholder || el.getAttribute('placeholder') || '',
|
||||||
|
readOnly: el.readOnly,
|
||||||
styleSelectedText: (options.styleSelectedText != undefined) ? options.styleSelectedText : !isMobile(),
|
styleSelectedText: (options.styleSelectedText != undefined) ? options.styleSelectedText : !isMobile(),
|
||||||
scrollbarStyle: (options.scrollbarStyle != undefined) ? options.scrollbarStyle : 'native',
|
scrollbarStyle: (options.scrollbarStyle != undefined) ? options.scrollbarStyle : 'native',
|
||||||
configureMouse: configureMouse,
|
configureMouse: configureMouse,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user