Closed ralyodio closed 10 years ago
To bind a value with the directive, you only need the content
attribute, so remove the ng-model
one.
When I submit the form, that field is empty.
Okay I see, I will create a new release this night or tomorrow to fix the problem, bad choice to not use the ng-model
at first, sorry for that
also, it would be cool if I could add some attributes for the generated <textarea>
as you can see in my original, I have a few angular boolean attributes like placeholder="Enter job description..." ng-minlength="4" required mongoose-error
. I need to surface these errors back to the field in which the data is collected.
Thanks a bunch. I like your editor, took me awhile to find it.
Apercu, thanks, what about passing extra attributes to the <textarea>
? Angular has a lot of nifty form handling logic that I'd like to take advantage of.
Since the textarea replace the markdown markup, each attribute is copied, I've tested it using the placeholder one, and I also remember to have seen every class relative to form validation like ng-dirty.
Have you some particular environnement that could break this logic ?
Sorry, the issue was automatically closed since I've deploy the new release to the master branch, let me know if you have still the problems.
Works like a charm now. thank you.
I'm getting an error trying to associate the editor with a model:
Here is my original HTML, trying to make editor work: