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

307
Views
create multiple vue quill editor instances on button click

I'm using vue quill in my app to provide some document creation features. I need to have multiple instances of quill that needs to be created when the user click on a button.

At the moment I have created this code in my vue component that is used to display the rich text editor

    <div class="container-fluid" id="editorWrapper">
        <div class="row">
            <ProgramEditor v-model="programTitle" v-model:cover="programCover" v-model:description="programDescription" v-model:content="programContent"></ProgramEditor>
        </div>
    </div>

This is the code I have at the moment into the ProgramEditor child component

<template>
    <div class="col-sm-12 col-md-9 col-lg-9 p-0 mb-3" id="programEditorWrapper">
        <input type="text" class="form-control mb-2 rounded-0" id="" placeholder="Title" @input="$emit('update:modelValue', $event.target.value)">
        <input type="text" class="form-control mb-2 rounded-0" id="" placeholder="Description" @input="$emit('update:description', $event.target.value)">
        <label class="mb-1" for="programCover">
            <input id="programCover" accept="image/*" type="file" class="form-control" ref="programCover" hidden>
            <small>
                <a class="text-decoration-none">  
                    Upload image
                </a>
            </small>
        </label>
        <QuillEditor ref="programEditor" theme="snow" content-type="html" toolbar="full" @update:content="$emit('update:content', $event)"></QuillEditor>
    </div>
</template>

How I can create multiple instances of quill editor component when the user will click the preposed button I will create?

about 4 years ago · Santiago Gelvez
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!