Skip to content

Commit

Permalink
style(ngx-jodit): fit both form examples to full width, remove mirror…
Browse files Browse the repository at this point in the history
…ing value
  • Loading branch information
julianpoemp committed Jan 24, 2024
1 parent fb03272 commit 921b5a5
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions apps/demo/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,16 @@
README</a>.
</p>

<div class="container">
<div class="row">
<div class="col">
<h4>Template driven form</h4>
<ngx-jodit [(ngModel)]="value" [options]="options" #ngxJodit></ngx-jodit>
<div class="py-3">Value: {{ value | json }}</div>
</div>
<div class="col">
<h4>Reactive form</h4>
<form [formGroup]="formGroup" class="my-0">
<ngx-jodit [options]="options" formControlName="editor"></ngx-jodit>
</form>
<div class="py-3">Value: {{ this.formGroup.get("editor")?.value | json }}</div>
</div>
<div class="row">
<div class="col">
<h4>Template driven form</h4>
<ngx-jodit [(ngModel)]="value" [options]="options" #ngxJodit></ngx-jodit>
</div>
<div class="col">
<h4>Reactive form</h4>
<form [formGroup]="formGroup" class="my-0">
<ngx-jodit [options]="options" formControlName="editor"></ngx-jodit>
</form>
</div>
</div>

Expand Down

0 comments on commit 921b5a5

Please sign in to comment.