Closed visitek closed 2 years ago
That was the initial idea, to just have a global config :).
You could pass custom config to the editor-component via customModules and customOptions.
or you just create your own instance and use it as described here when using angular-elements.
https://github.com/KillerCodeMonkey/ngx-quill/issues/1481#issuecomment-1280999446
It seems to be impossible to have multiple configurations of quill on the page.
even with:
providers: [ { provide: QUILL_CONFIG_TOKEN, useValue: { formats: [ 'bold', 'code', 'italic', 'link', 'strike', 'script', 'underline', .... ] } as QuillConfig } ]
the service is instantiated once in the root