Closed HegdeSach closed 6 years ago
<button (click)="reset()">Reset</button>
reset() {
this.initialContentOne = "";
}
Above works only one. I didn't implement reset api. If you want, you can try following
<trumbowyg liveUpdate="true" #editor
[initialContent]="initialContentTwo"
[options]="options2"
(savedContent)="contentTwo=$event">
@ViewChild('editor') editor;
reset() {
this.editor.trumbowygEl.trumbowyg('empty');
this.contentTwo = '';
}
Is there any way to reset user input to empty?