1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

How to set quill editor as a required form field?

Discussão em 'Angular' iniciado por Kode_12, Setembro 26, 2024.

  1. Kode_12

    Kode_12 Guest

    I'm using the ngx-quill editor in my angular application. I want to ensure that this form field is filled in prior to submitting the form. When I try adding in

    [require]="true"


    ...and test this by submitting an empty field, the control is showing that it's still 'valid'.

    Here is the html snippet:

    <div class="form-group" style="margin-top: 20px">
    <quill-editor #quill="ngModel" [style]="{height: '420px'}" [(ngModel)]="blogPost.content" name="content" [minLength]="1"
    [required]="true"></quill-editor>
    </div>

    Continue reading...

Compartilhe esta Página