Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngModel is not set to fr-view when initOnClick: true #223

Open
robinwassen opened this issue Dec 3, 2019 · 0 comments
Open

ngModel is not set to fr-view when initOnClick: true #223

robinwassen opened this issue Dec 3, 2019 · 0 comments

Comments

@robinwassen
Copy link

robinwassen commented Dec 3, 2019

If you have an editor with initOnClick: true and ngModel content, the content is not shown before clicking the editor.

This is a regression between 2.7.6 and 3.0.6, it was previously fixed as part of #164 but it seems like the fix got lost when rewriting for Froala 3.

Affects versions: 3.0.6

Steps to reproduce:

  • Setup the editor using angular-froala with ngModel set to something and initOnClick: true
  • Open the editor in the browser

Expected results: The ngModel value should be presented without clicking on the editor

Actual results: The ngModel value is not presented unless you click and initialize the editor

robinwassen added a commit to DigiExam/angular-froala that referenced this issue Dec 3, 2019
In order to get a good reproduction case for froala#223
robinwassen added a commit to DigiExam/angular-froala that referenced this issue Dec 3, 2019
Resolves froala#223 by setting the ngModel view value to the fr-view element if the editor is not initialized.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant