在我的应用程序中,我使用ckeditor作为描述部分。
<ck-editor [(ngModel)]='ticket.description' [ngModelOptions]="{standalone: true}" skin="moono-lisa" language="en" [fullPage]="true"></ck-editor>
This should save as html content to data base while save so it can be display in table with htlm tag. But i need only content what i gave in text area.
答案 0 :(得分:1)
我不是CKEditor的专家,但[fullPage]="true"
在<html><body></body></html>
插入ticket.description
。
尝试[fullPage]="false"
答案 1 :(得分:0)
我们需要在表
中显示时使用innerHTML例如: 我使用像席子表
<ng-container matColumnDef="description">
<mat-header-cell *matHeaderCellDef mat-sort-header> Description </mat-header-cell>
<mat-cell *matCellDef="let row" [style.color]="green" [innerHTML]="row.description"> </mat-cell>
</ng-container>