Open maroun-baydoun opened 9 years ago
It took a little while, but I've found that if you surround the wysiwyg tag with an ng-form tag you can reference the forms $invalid,
(this assumes that you have added your own validation to ngModelCtrl.$validators)
<div ng-form="exampleForm">
<wysiwyg textarea-name="text" ng-model="data"></wysiwyg>
{{exampleForm.text.$invalid}} this didn't work for me
{{exampleForm.$invalid}} this did work however
</div>
Validation errors of the angular-wysiwyg are not showing as part of the errors of the parent form. Is that the expected behavior? How to get the validation errors from angular-wysiwyg ?