fix(editor): focus the editor when clicking on the whole edit container
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kolaente 2024-01-21 13:52:13 +01:00
parent 5a25685d53
commit c5ba7fcb73
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

@ -64,6 +64,7 @@
class="tiptap__editor"
:class="{'tiptap__editor-is-edit-enabled': isEditing}"
:editor="editor"
@click="focusIfEditing()"
/>
<input
@ -581,6 +582,12 @@ function setFocusToEditor(event) {
editor.value?.commands.focus()
}
function focusIfEditing() {
if (isEditing.value) {
editor.value?.commands.focus()
}
}
function clickTasklistCheckbox(event) {
event.stopImmediatePropagation()