KillerCodeMonkey / ngx-quill

Angular (>=2) components for the Quill Rich Text Editor
MIT License
1.78k stars 260 forks source link

How to add Quill plugins? #87

Closed soniar4i closed 6 years ago

soniar4i commented 6 years ago

Hello,

Thanks for the awesome work you are doing to bring quill for angular. It's really great!

This is more a question than an issue, how do we include Quill plugins such as https://quilljs.com/docs/modules/syntax/ ngx-quill

Thanks! :)

KillerCodeMonkey commented 6 years ago

Like it is described there. Check if there are types for Highlight.JS import quill and Highlight.JS pass the modules configuration to the ngx-quill modules input.

If Highlight.JS is not already typed, declare it AS a global in your webpack.conf. after that you can access it through the window-object.

Import the styles of hjs in you .CSS/.scss or add it AS additonal CSS in you webpack, or add it in your index.HTML (not a good approach).

In the demo-repo is also an example of custom modules like word-count, changing fonts and so on.

soniar4i commented 6 years ago

Thank you so much! What a great work your doing :)