Why does component q-editor always put the focus on the start of the component?
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?
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.
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 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.