angular-froala icon indicating copy to clipboard operation
angular-froala copied to clipboard

bind correct this context to event

Open dadigu opened this issue 4 years ago • 0 comments

The angular froala implementation hooks into the initialized event and passes it on. but the editor context is missing.

According to froala documentation you should be able to access the editor instance via this in most events.

new FroalaEditor('.selector', {
  events: {
    'initialized': function () {
      // Do something here.
      // this is the editor instance.
      console.log(this);
    }
  }
});

Right now this is undefined but this PR will fix this issue

dadigu avatar Jun 16 '21 09:06 dadigu