aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/forms/markdown-textarea.component.html
blob: 0925b9ad5b2a2449a33b85d0bbc3ae6177c926d8 (plain) (tree)
1
2
3
4
5
6
7

                                                                  

                                                                                                                         
                              

             








                                                                                             
      
<div class="root" [ngStyle]="{ 'flex-direction': flexDirection }">
  <textarea
    [(ngModel)]="content" (ngModelChange)="onModelChange()"
    [ngClass]="classes" [ngStyle]="{ width: textareaWidth, height: textareaHeight, 'margin-right': textareaMarginRight }"
    [id]="name" [name]="name">
  </textarea>

  <ngb-tabset *ngIf="arePreviewsDisplayed()" class="previews" type="pills">
    <ngb-tab *ngIf="truncate !== undefined" i18n-title title="Truncated preview">
      <ng-template ngbTabContent><div [innerHTML]="truncatedPreviewHTML"></div></ng-template>
    </ngb-tab>

    <ngb-tab i18n-title title="Complete preview">
      <ng-template ngbTabContent><div [innerHTML]="previewHTML"></div></ng-template>
    </ngb-tab>
  </ngb-tabset>
</div>