mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2025-09-24 16:40:55 -06:00
Added class 'simplemde-editor' to codemirror wrapper
In order to prevent it to interfere with other codemirror instances
This commit is contained in:
parent
6abda7ab68
commit
f08949e17d
@ -1494,6 +1494,7 @@ SimpleMDE.prototype.render = function(el) {
|
|||||||
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 : true
|
||||||
});
|
});
|
||||||
|
this.codemirror.display.wrapper.className += ' simplemde-editor';
|
||||||
|
|
||||||
if(options.forceSync === true) {
|
if(options.forceSync === true) {
|
||||||
var cm = this.codemirror;
|
var cm = this.codemirror;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user