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

Validation on ngWig not working #158

Open
LoganDupont opened this issue Dec 23, 2016 · 2 comments
Open

Validation on ngWig not working #158

LoganDupont opened this issue Dec 23, 2016 · 2 comments

Comments

@LoganDupont
Copy link

The validation does not work because a

element is inserted by default if there is no value of the model. So we have problems for the required & minLength/maxLength due the paragraph tags. We had an work around but because it's an rich text editor we cannot filter on html-tags. So is it possible to find a solution for this problem.

Also if we want to save the model in the db the paragraph tags are added at the end and we can't also filter on html-tags for this one otherwise we lose information that the user has entered inside the ng-wig.

Greets,
Logan

@bampakoa
Copy link
Contributor

Dupe of #149

@LoganDupont
Copy link
Author

LoganDupont commented Dec 24, 2016

Thats true, but that issue was only for the required validation that's why i created a more general one. Because the paragraph-tags gives you also problems for other validations and your model. So i think it should be the other way around.

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

2 participants