|
|
@ -17,25 +17,49 @@ |
|
|
--> |
|
|
--> |
|
|
<div class="markdown-content" [ngClass]="{'tb-edit-mode': !readonly}" |
|
|
<div class="markdown-content" [ngClass]="{'tb-edit-mode': !readonly}" |
|
|
tb-fullscreen [fullscreen]="fullscreen" (fullscreenChanged)="onFullscreen()"> |
|
|
tb-fullscreen [fullscreen]="fullscreen" (fullscreenChanged)="onFullscreen()"> |
|
|
<div *ngIf="label" fxLayout="row" fxLayoutAlign="start center" style="height: 40px;"> |
|
|
<!-- <div *ngIf="label" fxLayout="row" fxLayoutAlign="space-between center" style="height: 40px;">--> |
|
|
|
|
|
<!-- <label class="tb-title no-padding" [ngClass]="{'tb-error': !disabled && required && !markdownValue, 'tb-required': !disabled && required}">{{ label }}</label>--> |
|
|
|
|
|
<!-- <div class="buttons-panel">--> |
|
|
|
|
|
<!-- <button [fxShow]="!editorMode"--> |
|
|
|
|
|
<!-- class="edit-toggle"--> |
|
|
|
|
|
<!-- type="button"--> |
|
|
|
|
|
<!-- mat-button (click)="toggleEditMode()">{{ 'markdown.edit' | translate }}</button>--> |
|
|
|
|
|
<!-- <div *ngIf = "helpId" [tb-help-popup]="helpId"></div>--> |
|
|
|
|
|
<!-- <button [fxShow]="editorMode"--> |
|
|
|
|
|
<!-- class="edit-toggle"--> |
|
|
|
|
|
<!-- type="button"--> |
|
|
|
|
|
<!-- mat-button (click)="toggleEditMode()">{{ 'markdown.preview' | translate }}</button>--> |
|
|
|
|
|
<!-- <button mat-button mat-icon-button (click)="fullscreen = !fullscreen"--> |
|
|
|
|
|
<!-- matTooltip="{{(fullscreen ? 'fullscreen.exit' : 'fullscreen.expand') | translate}}"--> |
|
|
|
|
|
<!-- matTooltipPosition="above">--> |
|
|
|
|
|
<!-- <mat-icon class="material-icons">{{ fullscreen ? 'fullscreen_exit' : 'fullscreen' }}</mat-icon>--> |
|
|
|
|
|
<!-- </button>--> |
|
|
|
|
|
<!-- </div>--> |
|
|
|
|
|
<!-- </div>--> |
|
|
|
|
|
<div fxLayout="row" fxLayoutAlign="start center" style="height: 40px;"> |
|
|
<label class="tb-title no-padding" [ngClass]="{'tb-error': !disabled && required && !markdownValue, 'tb-required': !disabled && required}">{{ label }}</label> |
|
|
<label class="tb-title no-padding" [ngClass]="{'tb-error': !disabled && required && !markdownValue, 'tb-required': !disabled && required}">{{ label }}</label> |
|
|
|
|
|
<span fxFlex></span> |
|
|
|
|
|
<button [fxShow]="!editorMode" |
|
|
|
|
|
class="edit-toggle" |
|
|
|
|
|
type="button" |
|
|
|
|
|
mat-button (click)="toggleEditMode()">{{ 'markdown.edit' | translate }}</button> |
|
|
|
|
|
<button [fxShow]="editorMode" |
|
|
|
|
|
class="edit-toggle" |
|
|
|
|
|
type="button" |
|
|
|
|
|
mat-button (click)="toggleEditMode()">{{ 'markdown.preview' | translate }}</button> |
|
|
|
|
|
<div *ngIf = "helpId" [tb-help-popup]="helpId"></div> |
|
|
|
|
|
<fieldset style="width: initial"> |
|
|
|
|
|
<div matTooltip="{{(fullscreen ? 'fullscreen.exit' : 'fullscreen.expand') | translate}}" |
|
|
|
|
|
matTooltipPosition="above" |
|
|
|
|
|
style="border-radius: 50%" |
|
|
|
|
|
(click)="fullscreen = !fullscreen"> |
|
|
|
|
|
<button type='button' mat-button mat-icon-button class="tb-mat-32"> |
|
|
|
|
|
<mat-icon class="material-icons">{{ fullscreen ? 'fullscreen_exit' : 'fullscreen' }}</mat-icon> |
|
|
|
|
|
</button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</fieldset> |
|
|
</div> |
|
|
</div> |
|
|
<div [fxShow]="!readonly && !disabled" class="markdown-content-editor"> |
|
|
<div [fxShow]="!readonly && !disabled" class="markdown-content-editor"> |
|
|
<div class="buttons-panel"> |
|
|
|
|
|
<button [fxShow]="!editorMode" |
|
|
|
|
|
class="edit-toggle" |
|
|
|
|
|
type="button" |
|
|
|
|
|
mat-button (click)="toggleEditMode()">{{ 'markdown.edit' | translate }}</button> |
|
|
|
|
|
<button [fxShow]="editorMode" |
|
|
|
|
|
class="edit-toggle" |
|
|
|
|
|
type="button" |
|
|
|
|
|
mat-button (click)="toggleEditMode()">{{ 'markdown.preview' | translate }}</button> |
|
|
|
|
|
<button mat-button mat-icon-button (click)="fullscreen = !fullscreen" |
|
|
|
|
|
matTooltip="{{(fullscreen ? 'fullscreen.exit' : 'fullscreen.expand') | translate}}" |
|
|
|
|
|
matTooltipPosition="above"> |
|
|
|
|
|
<mat-icon class="material-icons">{{ fullscreen ? 'fullscreen_exit' : 'fullscreen' }}</mat-icon> |
|
|
|
|
|
</button> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div [fxShow]="editorMode" #markdownEditor class="tb-markdown-editor"></div> |
|
|
<div [fxShow]="editorMode" #markdownEditor class="tb-markdown-editor"></div> |
|
|
<div [fxShow]="!editorMode" class="tb-markdown-view-container"> |
|
|
<div [fxShow]="!editorMode" class="tb-markdown-view-container"> |
|
|
<tb-markdown [data]="renderValue" lineNumbers fallbackToPlainMarkdown></tb-markdown> |
|
|
<tb-markdown [data]="renderValue" lineNumbers fallbackToPlainMarkdown></tb-markdown> |
|
|
|