mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-06-30 14:41:01 -06:00
Merge pull request #532 from stephenoakman/514-mobile-text-selection
Defaulting styleSelectedText to false if on a mobile device
This commit is contained in:
commit
547ddfd9d5
@ -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;
|
||||
module.exports = SimpleMDE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user