mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-08-21 08:02:44 -06:00
WIP: Tiny Patch
This commit is contained in:
parent
6a4ca8629c
commit
a704a21d6c
@ -2461,7 +2461,7 @@ EasyMDE.prototype.render = function (el) {
|
|||||||
// Be gentle and set back the cursor at the appropriate position
|
// Be gentle and set back the cursor at the appropriate position
|
||||||
cm.doc.setCursor({
|
cm.doc.setCursor({
|
||||||
line: obj.to.line,
|
line: obj.to.line,
|
||||||
ch: obj.text[0].length + 1,
|
ch: obj.text[0].length ? obj.text[0].length + 1 : 0,
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user