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

PrimeNG Quill editor custom toolbar

Discussão em 'Angular' iniciado por anais1477, Junho 17, 2025.

  1. anais1477

    anais1477 Guest

    I want to make a custom toolbar of quill editor with PrimeNG. I am using Angular 2.

    Here is what I did in my html code :

    <p-editor [(ngModel)]="message" [style]="{'height':'320px'}">
    <p-header>
    <span class="ql-formats">
    <select class="ql-size">
    <option value="small">Petit</option>
    <option selected></option>
    <option value="large">Sous-titre</option>
    <option value="huge">Titre</option>
    </select>
    </span>
    <span class="ql-formats">
    <button class="ql-bold" aria-label="Bold"></button>
    <button class="ql-italic" aria-label="Italic"></button>
    <button class="ql-underline" aria-label="Underline"></button>
    <button class="ql-strike" aria-label="Strike"></button>
    </span>
    <span class="ql-formats">
    <select title="Text Color" class="ql-color" defaultValue="rgb(0, 0, 0)">
    <option value="rgb(0, 0, 0)" label="rgb(0, 0, 0)"></option>
    ...
    <option value="rgb(61, 20, 102)" label="rgb(61, 20, 102)"></option>
    </select>
    <span class="ql-format-separator"></span>
    <select title="Background Color" class="ql-background" defaultValue="rgb(255, 255, 255)">
    <option value="rgb(0, 0, 0)" label="rgb(0, 0, 0)"></option>
    ...
    <option value="rgb(61, 20, 102)" label="rgb(61, 20, 102)"></option>
    </select>
    </span>
    <span class="ql-formats">
    <button class="ql-list" title="List"></button>
    <button class="ql-bullet" title="Bullet"></button>
    <select title="Text Alignment" class="ql-align" >
    <option selected>Gauche</option>
    <option value="center" label="Center"></option>
    <option value="right" label="Right"></option>
    <option value="justify" label="Justify"></option>
    </select>
    </span>
    <span class="ql-formats">
    <button aria-label="Link" class="ql-link"></button>
    <button aria-label="Image" class="ql-image"></button>
    </span>
    </p-header>
    </p-editor>


    Here is what it looks like [​IMG]

    But as you can see ql-list and ql-bullet are not shown.

    What can I do ?

    Continue reading...

Compartilhe esta Página