diff --git a/src/js/simplemde.js b/src/js/simplemde.js index 6f1c8ae..72d0d8d 100644 --- a/src/js/simplemde.js +++ b/src/js/simplemde.js @@ -1540,7 +1540,7 @@ SimpleMDE.prototype.render = function(el) { lineWrapping: (options.lineWrapping === false) ? false : true, allowDropFileTypes: ["text/plain"], placeholder: options.placeholder || el.getAttribute("placeholder") || "", - styleSelectedText: (options.styleSelectedText != undefined) ? options.styleSelectedText : true + styleSelectedText: (options.styleSelectedText != undefined) ? options.styleSelectedText : !isMobile(), }); this.codemirror.getScrollerElement().style.minHeight = options.minHeight; @@ -2081,4 +2081,4 @@ SimpleMDE.prototype.toTextArea = function() { } }; -module.exports = SimpleMDE; \ No newline at end of file +module.exports = SimpleMDE;