'rich-voice-editor': true //not working using npm package: quill-rich-voice-editor

77 Views Asked by At

I'm using this npm package in angular.

"quill": "^1.3.6",
"quill-rich-voice-editor": "^0.4.0",

If I add this line 'rich-voice-editor': true. It gives the error core.js:15724 ERROR TypeError: moduleClass is not a constructor

Here is the code:

const quill = new Quill(this.richTextEditor.nativeElement, {
  theme: 'snow',
  modules: {
    toolbar: ssmlToolbarOptions,
    'rich-voice-editor': true // Add this.
  },
  placeholder: '<speak>Your text here</speak>',
});

Error:

enter image description here

If I remove 'rich-voice-editor': true, it reacts like this.

Frontend:

enter image description here

I guess 'rich-voice-editor' module is missing

enter image description here

rich-voice-editor URLs: Github Demo

0

There are 0 best solutions below