Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodes/ImageView.vue')
-rw-r--r--src/nodes/ImageView.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nodes/ImageView.vue b/src/nodes/ImageView.vue
index 5bada41e9..5d3887029 100644
--- a/src/nodes/ImageView.vue
+++ b/src/nodes/ImageView.vue
@@ -122,7 +122,7 @@ export default {
mixins: [
store,
],
- props: ['node', 'extension', 'updateAttributes', 'getPos'], // eslint-disable-line
+ props: ['editor', 'node', 'extension', 'updateAttributes', 'getPos'], // eslint-disable-line
data() {
return {
imageLoaded: false,
@@ -292,6 +292,9 @@ export default {
},
onLoaded() {
this.loaded = true
+ this.$nextTick(() => {
+ this.editor.commands.scrollIntoView()
+ })
},
deleteImage() {
const tr = this.view.state.tr