froala/aurelia-froala-editor

Events not being called

catsalive opened this issue · 2 comments

  • Create vanilla aurelia-cli (1.0.1) project with following settings:
    image

  • Follow webpack instructions for this plugin

Problem:

  • froala-editor custom element never updates the bound value and no events are ever called

Update:
It appears that if the event listeners are added by specifying them in the config passed to the FroalaEditor class instead of adding them to the DOM element, then they are called appropriately.

I created a pull request that should address this issue for Froala v3: #59

@alexisszabo @catsalive I am also facing similar issues after upgrade. It seems that the event handlers for blur amd contentChanged are incorrectly applied on the DOM Element. Refer: https://github.com/froala/aurelia-froala-editor/blob/master/src/froala-editor.js#L67-L68

Whereas, those events seems to be Froala events.
Check the changes: b1940b6#diff-f44e1166524e0d158a08a9d294165ecdL64-R68
Froala event reference: https://www.froala.com/wysiwyg-editor/docs/events