lula / ngx-summernote

Summernote editor for Angular :sunglasses:
MIT License
102 stars 42 forks source link

Add support injectable config #190

Open Xp0s3d opened 9 months ago

Xp0s3d commented 9 months ago

I started using your wrapper for the summernote editor and I noticed that it was missing an option to provide a global config to use for all editors. This would reduce the overhead of having to define a config variable just to use the same config as all other editors in my system.

This pull request adds support for providing a global config using an injection token or a provide function. It also updates the demo app and the readme to include references to those config options.

I really hope there is still interest in supporting this project as it's actually working very well and I'd be happy to help clean up some parts, update it or helping with issues!