Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix autofocus on empty documents without a node (Fixes: #1974)
Signed-off-by: Jonas Meurer <[email protected]>
  • Loading branch information
mejo- committed Dec 28, 2021
commit 176c748fcdf43ea1c6020b9b885e2da4089ab11c
8 changes: 4 additions & 4 deletions js/editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/editor.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions js/files.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/files.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/public.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/EditorWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export default {
if (state.initialLoading && !this.initialLoading) {
this.initialLoading = true
if (this.autofocus) {
this.tiptap.focus('start')
this.tiptap.focus(1, 1)
}
this.$emit('ready')
this.$parent.$emit('ready', true)
Expand Down