-
Notifications
You must be signed in to change notification settings - Fork 96
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
CkEditor Instance value not cleared when i call form.reset() #155
Comments
Hi, did you try to set the value to an empty string? Look at: how to reset value; <ckeditor
[config]="ckeConfig"
#ckeditor
debounce="500">
</ckeditor> In typescript part: @ViewChild("ckeditor") ckeditor: any;
onEventOrRequest(event: any)
{
this.ckeditor.instance.setData('');
} |
@mekramy : is your problem solved? Can the task be closed? |
@kzimny thanks. i move to vuejs and not work with angular any more! |
If other people identify the same problem, please report and the task will be reopen. |
Hi What I got this workaround. But I have validation message applied to the |
Did you try to set the form to pristine? <form role="form" class="form-horizontal" (ngSubmit)="save(basedataForm)" #basedataForm="ngForm"></form> and in ts file save(myForm: NgForm) {
myForm.form.markAsPristine();
myForm.form.markAsUntouched();
} |
Hello guys. I'm using this ckEditor in angularJS : But getting the following errors: I'm totally new to angular and this ckeditor thing. Help me out. |
Same issue occurred could not reset after submitting, I tried this but could not reset content. can you please help me in this. |
Resolved by Setting html text instead of '' string
|
After i submitting my form data, i'll clear form for new input. but the ckeditor instance value not cleared! how can i do that?
my template code is:
<ckeditor formControlName="content"></ckeditor>
The text was updated successfully, but these errors were encountered: