aurelia-froala-editor icon indicating copy to clipboard operation
aurelia-froala-editor copied to clipboard

Events not being called

Open catsalive opened this issue 5 years ago • 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.

catsalive avatar Jun 24 '19 20:06 catsalive

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

alexisszabo avatar Jul 10 '19 00:07 alexisszabo

@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: https://github.com/froala/aurelia-froala-editor/commit/b1940b6b34606cabec2851b951afecef27667594#diff-f44e1166524e0d158a08a9d294165ecdL64-R68 Froala event reference: https://www.froala.com/wysiwyg-editor/docs/events

Sayan751 avatar Oct 25 '19 09:10 Sayan751