froala / angular-froala

Angular.js bindings for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
MIT License
306 stars 123 forks source link

editor.events.add within plugin init not working #151

Closed StefanNeuser closed 7 years ago

StefanNeuser commented 7 years ago

Hi, i'm checking out froala editor on my local machine to figure out if the editor fits in our needs.

The console.log(editor) is working but the next lines are not working

      // You can listen to any event from documentation.
      // editor.events.add('contentChanged', function (params) {});

Error in Console:

[Vue warn]: Error in mounted hook: "TypeError: editor.events.add is not a function"

found in

---> <Froala>
       <Root>

I guess this is something special within the vuejs froala plugin.

stefanneculai commented 7 years ago

This repo is for the Angular plugin, not for the Vue one. The Vue one is on https://github.com/froala/vue-froala-wysiwyg.