Skip to content

Commit

Permalink
Merge pull request #3533 from nextcloud/backport/3532/stable25
Browse files Browse the repository at this point in the history
Fixes #3531
  • Loading branch information
juliusknorr authored Dec 9, 2022
2 parents 1c34b94 + 768e946 commit 1b9fb08
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions js/editor-rich.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 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.

4 changes: 2 additions & 2 deletions js/files-modal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions js/text-files.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-public.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-text.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-viewer.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/components/Editor/MediaHandler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ export default {

// Insert a newline to allow placing the cursor in between subsequent images
this.$editor.chain().insertContent('<br />').focus().run()

// Scroll image into view
this.$editor.commands.scrollIntoView()
},
},
}
Expand Down
3 changes: 0 additions & 3 deletions src/nodes/ImageView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,6 @@ export default {
},
onLoaded() {
this.loaded = true
this.$nextTick(() => {
this.editor.commands.scrollIntoView()
})
},
},
}
Expand Down

0 comments on commit 1b9fb08

Please sign in to comment.