Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

fixed #116 #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/editor.js
Expand Up @@ -159,7 +159,7 @@ export default {
const content = this.$refs.content
content.innerHTML = this.content
content.addEventListener('mouseup', this.saveCurrentRange, false)
content.addEventListener('keyup', () => {
content.addEventListener('input', () => {
this.$emit('change', content.innerHTML)
this.saveCurrentRange()
}, false)
Expand Down Expand Up @@ -190,4 +190,4 @@ export default {
}
})
}
}
}