sachinchoolur / angular-trix

A rich WYSIWYG text editor directive for angularjs.
http://sachinchoolur.github.io/angular-trix/
MIT License
328 stars 62 forks source link

Required when using as a form input #5

Closed gruberb closed 4 years ago

gruberb commented 8 years ago

When using angular-trix as an input for a from, I want to be able to put a required attribute so I can use the build-in form validation from HTML5 browsers.

Any idea how to implement this? I am happy to do it, but I cannot think of a neat and simple solution right now (checking if the ng-model is set could be a solution before submitting, but this seams not very solid.)

hcientist commented 8 years ago

perhaps a temporary workaround for you would be to add a hidden input item that is also bound to the sam model as your editor and make that required?