Skip to content

Commit

Permalink
fix(editor): Restrict selected cell count in this editor instance
Browse files Browse the repository at this point in the history
The menububble should not be hidden when any other editor instance has selected cells, in case there are more editors in the same page.
  • Loading branch information
larvanitis authored Sep 19, 2020
1 parent c4df20f commit 4ce736b
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 4ce736b

Please sign in to comment.