First of all, thanks for your work on this great plugin! It works nicely with template driven forms.
I would, however, also like to use it with reactive forms. Thus i need to use "formControl" instead of "ngModel".
It appears that this is not fully supported(?)
My specific problem is that I am not able to use the "patchValue" method (of FormGroup) to insert content into the quill editor. The editor window remains empty after patching.
Entering new content by hand, and saving it, works fine however.
Please correct me if I'm mistaken.
Thanks!
Hey there --> there is an example repo for this project with some demo editors.
i added a reactive form with a "patchValue" button. it works there.
ngx-quill-example demo and the source code
Please close the issue if you could solve it. Or give some further information like your source code or an example like a plunkr.
Thanks for your quick reply!
After looking at your code I realized my mistake. I had placed the patchValue method in ngOnInit(), but it needed to be in ngAfterViewInit(). Once I moved it there, everything works :)
Thanks again!
But the initial value 'test' is not shown.
Shouldn't there be 'test' as the initial value when building the form like this:
this.form = fb.group({
editor: ['test', Validators.required]
});
should be fixed in v1.2.0 + added custom required attribute for required validation
@KillerCodeMonkey the example link is borked.
Because the issue is 2 years old. Just Checkout the links in the readme
Jeremy Nicoll notifications@github.com schrieb am Di., 9. Juli 2019,
18:23:
@KillerCodeMonkey https://github.com/KillerCodeMonkey the example link
is borked.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/KillerCodeMonkey/ngx-quill/issues/16?email_source=notifications&email_token=AARI4YCIYCX6T3IMPOEHR63P6S3RVA5CNFSM4DCNW4KKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZQZKQA#issuecomment-509711680,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AARI4YAHV6XMVQTMYWMC4D3P6S3RVANCNFSM4DCNW4KA
.
Most helpful comment
Hey there --> there is an example repo for this project with some demo editors.
i added a reactive form with a "patchValue" button. it works there.
ngx-quill-example demo and the source code
Please close the issue if you could solve it. Or give some further information like your source code or an example like a plunkr.