Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

288
Views
¿Cómo enfocar automáticamente Quill Editor en Vue.js?

Estoy usando quill con vue 3 y no puedo encontrar una manera de enfocar automáticamente el campo de entrada del editor en sus documentos .

He intentado apuntar a los elementos principales con:

 document.getElementById(...).focus()

que no hizo nada. Así es como implementé quill, text-editor.vue :

 <template> <div id="text-editor" class="text-editor"> <quill-editor :modules="modules" :toolbar="toolbar"/> </div> </template> <script setup> import BlotFormatter from 'quill-blot-formatter' const modules = { module: BlotFormatter, } const toolbar = [ [{ 'header': [1, 2, 3, 4, 5, 6, false] }], [{ 'size': ['small', false, 'large', 'huge'] }], ['bold', 'italic', 'underline', 'strike'], ['blockquote', 'code-block'], [{ 'align': [] }], [{ 'list': 'ordered'}, { 'list': 'bullet' }], [{ 'color': [] }, { 'background': [] }], [{ 'font': [] }], ['link', 'image', 'video'], ['clean'] ]; </script>

e importarlo en component.vue :

 <template> <div id="component"> <text-editor/> </div> </template> <script setup> import textEditor from './text-editor' </script>

¿Alguna idea de cómo enfocar autofocus la pluma?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!