Code owners
Assign users and groups as approvers for specific file changes. Learn more.
rich-text-edit-dialog.component.ts 827 B
import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
@Component({
selector: 'aspect-rich-text-edit-dialog',
template: `
<aspect-rich-text-editor [(content)]="data.content"
[clozeMode]="data.clozeMode"
[defaultFontSize]="data.defaultFontSize">
</aspect-rich-text-editor>
<mat-dialog-actions>
<button mat-button [mat-dialog-close]="data.content">{{'save' | translate }}</button>
<button mat-button mat-dialog-close>{{'cancel' | translate }}</button>
</mat-dialog-actions>
`
})
export class RichTextEditDialogComponent {
constructor(@Inject(MAT_DIALOG_DATA) public data: {
content: string | Record<string, any>,
defaultFontSize: number,
clozeMode: boolean }) { }
}