Skip to content

Commit

Permalink
fix: value should be NOT NULL (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
apphost authored and cipchk committed Jan 18, 2018
1 parent 2adbf20 commit 2721079
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/tinymce.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ export class TinymceComponent implements OnInit, AfterViewInit, OnChanges, OnDes
}

writeValue(value: string): void {
this.value = value;
// value should be NOT NULL
this.value = value || '';
if (this.instance) {
this.instance.setContent(this.value);
}
Expand Down

0 comments on commit 2721079

Please sign in to comment.