mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-05-04 23:13:14 +02:00
Fix CodeMirror bug with init text (#344)
This commit is contained in:
parent
b4d4e89129
commit
69bff3ed78
|
@ -1517,6 +1517,13 @@ SimpleMDE.prototype.render = function(el) {
|
|||
this.gui.sideBySide = this.createSideBySide();
|
||||
|
||||
this._rendered = this.element;
|
||||
|
||||
|
||||
// Fixes CodeMirror bug (#344)
|
||||
var temp_cm = this.codemirror;
|
||||
setTimeout(function() {
|
||||
temp_cm.refresh();
|
||||
}.bind(temp_cm), 0);
|
||||
};
|
||||
|
||||
// Safari, in Private Browsing Mode, looks like it supports localStorage but all calls to setItem throw QuotaExceededError. We're going to detect this and set a variable accordingly.
|
||||
|
|
Loading…
Reference in a new issue