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

Defaulting styleSelectedText to false if on a mobile device

This commit is contained in:
Stephen Oakman 2017-02-27 12:11:08 +00:00
parent 6abda7ab68
commit c0dc7abb73

View File

@ -1492,7 +1492,7 @@ SimpleMDE.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") || "",
styleSelectedText: (options.styleSelectedText != undefined) ? options.styleSelectedText : true styleSelectedText: (options.styleSelectedText != undefined) ? options.styleSelectedText : !isMobile(),
}); });
if(options.forceSync === true) { if(options.forceSync === true) {