Navigation

    Quasar Framework

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Why does component q-editor always put the focus on the start of the component?

    Help
    3
    4
    141
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mrcalvo last edited by

      I programmed a method to insert elements within a component of the q-editor, but always insert the elements at the beginning of the q-editor component, not in the position where the focus should be.

      Is there a way to return the focus to its proper position and not to the beginning of the component?

      1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman last edited by

        @mrcalvo havent use q-editor, there’s a focus method, maybe you can try that. https://quasar.dev/vue-components/editor#QEditor-API at methods section.

        1 Reply Last reply Reply Quote 0
        • M
          mrcalvo last edited by mrcalvo

          The q-editor.focus() method does not work to return the focus to the end of the text automatically, once the focus has been placed on another input.

          digiproduct 1 Reply Last reply Reply Quote 0
          • digiproduct
            digiproduct @mrcalvo last edited by

            @mrcalvo If you look at the end of the first paragraph on the Docs page for QEditor, there are links for the MDN docs of the underlying components of the QEditor.

            If you go to those docs, you might find some hints about how you could detect this.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post