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

Using `froala` inside a custom directive ignores options #119

Closed stevie-p closed 7 years ago

stevie-p commented 8 years ago

Hi

I'm in the process of checking out whether (angular-)Froala can do what I need it to.

The froala directive works well on its own, but if it is used in a custom directive, it does not pick up any passed in options (such as toolbarInline). See this Plunk

Is this a bug, am I doing something wrong, or does Froala not support this use-case?

Thanks

jwhitmarsh commented 7 years ago

@stevie-p did you get anywhere with this? I'm experiencing the same issue.

peterjkirby commented 7 years ago

+1

stefanneculai commented 7 years ago

This doesn't appear to be a problem with the Froala directive. It looks like Angular is calling the link method from the inner directive before setting the scope in the outer one. See the logs from the console: http://plnkr.co/edit/1gX3QCAMVluj9NiNMg34?p=preview.