Skip to content

Commit

Permalink
Merge pull request donotebase#32 from larvanitis/patch-1
Browse files Browse the repository at this point in the history
fix(editor): Restrict selected cell count in this editor instance
  • Loading branch information
mekery authored Oct 5, 2020
2 parents c4df20f + 4ce736b commit bada24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/QuasarTiptap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export default {
this.$emit('update', { getJSON, getHTML, state, transaction })
},
onTransaction: ({ getJSON, getHTML, state, transaction }) => {
const selectedCellElements = document.querySelectorAll('.selectedCell')
const selectedCellElements = this.editor.view.dom.querySelectorAll('.selectedCell')
this.selectedCellSize = selectedCellElements.length
this.$emit('transaction', { getJSON, getHTML, state, transaction })
Expand Down

0 comments on commit bada24b

Please sign in to comment.