-1

I'm using the primefaces 6.2 with jsf.

I'm trying to apply the snow theme to the p:textEditor component, which uses Quill.

I still do not understand how I apply the snow theme.

I include this line:

<link href = "https://cdn.quilljs.com/1.3.6/quill.snow.css" rel = "stylesheet">

But it din't work.

Can anyone put an example here?

Rafael Bomfim
  • 59
  • 1
  • 6

1 Answers1

0

In your JavaScript code that you create a new instance of your Quill Editor, use theme: 'snow', like this:

let quillEditor = new Quill('#myIdEditor', { theme : 'snow' });

See the documentation

Matheus Cuba
  • 2,068
  • 1
  • 20
  • 31
  • The problem is that I'm not using Quill separately. To create the editor, just use the primefaces tag without using JS. Doubt is exactly at that point. How to apply the theme without the call via JS? – Rafael Bomfim Apr 27 '18 at 02:51