aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/forms/markdown-textarea.component.html
blob: 6effda5b8520601d683304714460b33c639af388 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
<div class="root" [ngStyle]="{ 'flex-direction': flexDirection }">
  <textarea
      [(ngModel)]="content" (ngModelChange)="onModelChange()"
      [ngClass]="classes" [ngStyle]="{ width: textareaWidth, height: textareaHeight, 'margin-right': textareaMarginRight }"
      id="description" name="description">
  </textarea>

  <tabset *ngIf="arePreviewsDisplayed()" class="previews">
    <tab *ngIf="truncate !== undefined" i18n-heading heading="Truncated preview" [innerHTML]="truncatedPreviewHTML"></tab>
    <tab i18n-heading heading="Complete preview" [innerHTML]="previewHTML"></tab>
  </tabset>
</div>