mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-27 02:50:46 +00:00
Update cm instance in changes event argument
This commit is contained in:
parent
f5b95c5d36
commit
7637a6a8a6
1 changed files with 1 additions and 1 deletions
|
@ -2646,7 +2646,7 @@ editorInstance.on('cut', function () {
|
||||||
editorInstance.on('paste', function () {
|
editorInstance.on('paste', function () {
|
||||||
// na
|
// na
|
||||||
})
|
})
|
||||||
editorInstance.on('changes', function (cm, changes) {
|
editorInstance.on('changes', function (editor, changes) {
|
||||||
updateHistory()
|
updateHistory()
|
||||||
var docLength = editor.getValue().length
|
var docLength = editor.getValue().length
|
||||||
// workaround for big documents
|
// workaround for big documents
|
||||||
|
|
Loading…
Reference in a new issue