<app-common-dialog [dialogContent]="dialogContent" [dialogRef]="dialogRef" unlimitedWidth>
  <ng-template #dialogContent>
    <form [formGroup]="editTicketMessageForm" layoutDirection="column">
      <app-form-errors #formErrors [formGroup]="editTicketMessageForm" [maxWidth]="'300px'"></app-form-errors>
      <div class="fl-tinymce-placeholder">
        <editor [init]="tinyMCEOptions" formControlName="reply_text" [licenseKey]="'gpl'"
                (onKeyDown)="handleTinyKeyDown($event)"></editor>
      </div>
      <mat-error>{{backendErrors['reply_text'] || backendErrors['note_text']}}</mat-error>
    </form>
  </ng-template>
</app-common-dialog>
