aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/forms/markdown-textarea.component.html
blob: 802562dd773e9f426f5ea6bd74d442c785b7a469 (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>