Follow these simple steps to install quilljs in Angular application
Install the below packages
npm install quill
npm install ngx-quill
npm install @types/quill
Add the below css files in angular.json file.
"styles": ["./node_modules/quill/dist/quill.core.css",
"./node_modules/quill/dist/quill.bubble.css",
"./node_modules/quill/dist/quill.snow.css",
"src/styles.css",
]
Add the below module in app.module.ts file under
`QuillModule.forRoot({
customOptions: [{
import: 'formats/font',
whitelist: ['mirza', 'roboto', 'aref', 'serif', 'sansserif', 'monospace']
}]
})`
Add the below code in app.component.html.
<quill-editor [styles]="{height: '200px'}"></quill-editor>
I have created Stackblitz demo here.
Answer from Sathiamoorthy on Stack Overflow
» npm install ngx-quill
» npm install ngx-quill-editor
angular6 - how to install Quill.js in Angular - Stack Overflow
quill - How to use Quilljs Editor in Angular 15 Project - Stack Overflow
Ngx-Quill
Errors after installing ngx-quill
Videos
» npm install quill
Follow these simple steps to install quilljs in Angular application
Install the below packages
npm install quill
npm install ngx-quill
npm install @types/quill
Add the below css files in angular.json file.
"styles": ["./node_modules/quill/dist/quill.core.css",
"./node_modules/quill/dist/quill.bubble.css",
"./node_modules/quill/dist/quill.snow.css",
"src/styles.css",
]
Add the below module in app.module.ts file under
`QuillModule.forRoot({
customOptions: [{
import: 'formats/font',
whitelist: ['mirza', 'roboto', 'aref', 'serif', 'sansserif', 'monospace']
}]
})`
Add the below code in app.component.html.
<quill-editor [styles]="{height: '200px'}"></quill-editor>
I have created Stackblitz demo here.
This linked helped (https://github.com/quilljs/quill/issues/777). I had to add the following lines, however I don't really understand well how it works and what the steps mean
import * as Quill from 'Quill';
let quill = new Quill('#editor');
» npm install ngx-quill-upload
Good observation by @Otrebor regarding the version of @types/quill.
I managed to install Quill with Angular 15 using:
npm i ngx-quill@21npm i @types/quill@1
as version 22 required Angular 16, and @types/quill@2 leads to the error message regarding "Delta".
Have a look at this example:
https://github.com/KillerCodeMonkey/ngx-quill-example
I had the same problem (or it seems to be) and i solved it by downgrading the package @types/quill and adding:
"allowedCommonJsDependencies": ["quill"]
to my angular.json
Hello angular devs,
I'm using ngx-quill in my project. After 3395 characters the editor looses focus and in the console I see "addRange(): The given range isn't in document" Could anyone help me with this?