Skip to content

Set form to pristine after render#54

Open
knuthelgesen wants to merge 1 commit intoesvit:masterfrom
knuthelgesen:pristineFix
Open

Set form to pristine after render#54
knuthelgesen wants to merge 1 commit intoesvit:masterfrom
knuthelgesen:pristineFix

Conversation

@knuthelgesen
Copy link

Hi,
We are using your directive to integrate CKEditor and Angular in our project. However, after updating the data from the server (for example when navigating around the web site), we see that the form containing the editor is set to dirty, even though the user has not changed the text.

My change is to set the form to pristine when ngModel.$render is called, so the form is dirty because the model is updated with new information from the server.

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

Successfully merging this pull request may close these issues.

1 participant