mirror of
https://github.com/status-im/codimd.git
synced 2025-02-25 16:05:32 +00:00
Update cm instance in changes event argument
This commit is contained in:
parent
f5b95c5d36
commit
7637a6a8a6
@ -2646,7 +2646,7 @@ editorInstance.on('cut', function () {
|
||||
editorInstance.on('paste', function () {
|
||||
// na
|
||||
})
|
||||
editorInstance.on('changes', function (cm, changes) {
|
||||
editorInstance.on('changes', function (editor, changes) {
|
||||
updateHistory()
|
||||
var docLength = editor.getValue().length
|
||||
// workaround for big documents
|
||||
|
Loading…
x
Reference in New Issue
Block a user