Search code examples
angularckeditor

Parameter to make the ckeditor not editable?


is there a parameter to make the ckeditor not editable? this is my code to see the component. i'm in angular

<ckeditor 
  [(ngModel)]="salesCondition.DeliveryTimeHtmlFormatted" 
  [ngModelOptions]="{standalone: true}" >
</ckeditor>

Solution

  • Yes. There is a [readonly]="true" parameter you can use to disable editing of editor.

    Use it like :

    <ckeditor 
      [(ngModel)]="salesCondition.DeliveryTimeHtmlFormatted" 
      [readonly]="true"
      [ngModelOptions]="{standalone: true}" >
    </ckeditor>