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

Regression causing model data to be discarded for initOnClick #193

Closed FWennerdahl closed 5 years ago

FWennerdahl commented 5 years ago

When binding data using ng-model in an editor instance created with initOnClick: true, the model data isn't bound to the editor. This causes the model data to effectively be discarded.

This was previously logged in #164 and fixed in #171, but was broken again in #181.

The current state makes it impossible to load existing data in an editor with initOnClick set to true.

Please see https://jsfiddle.net/8pfLjw7c/ for reproduction case.