Change quill editor options
-
Hi,
I want to chage the default options of the quill editor. So i.e. I just want the bold, italic and link option to be available.
I have tried to do that by using the following js
var quillOptions = {
modules: {
toolbar: [
[{ 'header': [1, 2, false] }],
['bold', 'italic'],
['link']
]
},
theme: 'snow'
};
var editors = document.querySelectorAll('.quill');
if (editors.length > 0) {
console.log("Initializing Quill editors");
editors.forEach(function(editor) {
new Quill(editor, quillOptions);
});
} else {
console.log("No editors found");
}But I get the warning:
jQuery.Deferred exception: Quill is not defined ReferenceError: Quill is not definedIs there a pods way or alternative way to achieve my goal?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.