No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. kamrava
    K
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Groups 0

    kamrava

    @kamrava

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    kamrava Follow

    Latest posts made by kamrava

    • How to get Cursor Position from q-editor?

      I need access to the current cursor position in the q-editor.
      I also looked at this thread:
      https://forum.quasar-framework.org/topic/4702/how-to-get-the-cursor-position-form-q-input/5

      But the above link only works for q-input

      The following code returns cursorPos: undefined on the console.

      <q-editor v-model="text" ref="editorval" @input="changeInput"/>
      

      and

      changeInput(value) {
         let editor = this.$refs.editorval
         if (editor) {
           this.cursorPosition = editor.selectionStart;
           console.log('cursorPos:', this.cursorPosition)
         }
         this.cursorPosition = 0;
      }
      

      What is the correct way to do this?

      posted in Help
      K
      kamrava