Add support for readonly attribute on textarea

pull/446/head
Jonathan 2 years ago committed by GitHub
parent a7fb5d8f06
commit 57fade2b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2121,6 +2121,7 @@ EasyMDE.prototype.render = function (el) {
lineWrapping: (options.lineWrapping === false) ? false : true,
allowDropFileTypes: ['text/plain'],
placeholder: options.placeholder || el.getAttribute('placeholder') || '',
readOnly: el.readOnly,
styleSelectedText: (options.styleSelectedText != undefined) ? options.styleSelectedText : !isMobile(),
scrollbarStyle: (options.scrollbarStyle != undefined) ? options.scrollbarStyle : 'native',
configureMouse: configureMouse,

Loading…
Cancel
Save