mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-01 21:42:28 +02:00
Defaulting styleSelectedText to false if on a mobile device
This commit is contained in:
parent
6abda7ab68
commit
c0dc7abb73
|
@ -1492,7 +1492,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(),
|
||||
});
|
||||
|
||||
if(options.forceSync === true) {
|
||||
|
@ -2025,4 +2025,4 @@ SimpleMDE.prototype.toTextArea = function() {
|
|||
}
|
||||
};
|
||||
|
||||
module.exports = SimpleMDE;
|
||||
module.exports = SimpleMDE;
|
||||
|
|
Loading…
Reference in a new issue