Skip to content

Insert in the current position? #287

Answered by imzbf
ikkysleepy asked this question in Q&A
Discussion options

You must be logged in to vote

It keeps inserting the value into the top position. I think it's because I am navigating to a different view element and then going back? I'll try to see if I can focus back to the element. Is there away I can get the current cursor position / pass it to the insert?

Example of Inserting Image

Did you hide the editor when opening the pop-up window? Like setting v-if. The editor instance was destroyed, there is no way to retrieve the last cursor position. I found the same problem as you encountered through the following steps

  1. Move the cursor position to the middle.
  2. Input some words into element input.
  3. Click button which named dddd.
<script setup lang="ts">
import { ref } from 'vue';
import

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ikkysleepy
Comment options

@ikkysleepy
Comment options

@imzbf
Comment options

Answer selected by ikkysleepy
@ikkysleepy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #284 on June 04, 2023 02:08.