Hello to all, welcome back to my blog. Today in this blog post, I am going to tell you, Ionic 5 Angular 11 Quill Editor Working Demo with Source Code.
Angular11 and Ionic 5 came and if you are new then you must check below two links:
Friends here is the working code snippet for Ionic 5 Angular 11 Quill Editor Working Demo with Source Code and please use this carefully:
1. Firstly friends we need fresh IONIC 5 and ANGULAR 11 setup and for this we need to run below commands but if you already have angular 11 setup then you can avoid below commands. Secondly we should also have latest node version installed on our system:
npm install -g @ionic/cli ionic start myApp blank cd myApp ionic serve
2. Now we need to run below command into our project terminal to include quill editor modules:
npm install quill npm install ngx-quill
3. Now my friends we need to add below code into 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" ], "scripts": [ "node_modules/quill/dist/quill.min.js"]
4. Now friends, we need to run below commands into our project terminal to start ionic application:
ionic serve
5. Now my friends we need to add below code into src\app\app.module.ts file
... import { QuillModule } from 'ngx-quill'; ... imports: [ ... QuillModule.forRoot() ]
6. Now friends we need to add below code into app.component.html file to get final output on web browser:
<quill-editor [styles]="{height: '235px'}"></quill-editor>
Now we are done friends and If you have any kind of query or suggestion or any requirement then feel free to comment below.
Note: Friends, I just tell the basic setup and things, you can change the code according to your requirements. For better understanding must watch video above.
I will appreciate that if you will tell your views for this post. Nothing matters if your views will be good or bad.
Jassa
Thanks
Thanks Ajay,
It worked straight away. Good tutorial
You are welcome and thanks.