-
Hi, I'm trying to render a read-only version of the component that retains the rich text formatting. I did this by setting the <div class="NgxEditor__Wrapper" *ngIf='canEdit'>
<ngx-editor-menu [editor]="editor"> </ngx-editor-menu>
<ngx-editor
[editor]="editor"
[formControl]='formControl'
[placeholder]=placeholder
[contentEditable]='canEdit'
></ngx-editor>
</div> When I set I created a stack blitz to replicate - I can't quite seem to exactly replicate, but the problem where the Text Box still allows editing persists: https://stackblitz.com/edit/ngx-editor-quickstart-48kags?file=src/app/app.component.ts I'm sure that this is a common usage - am I doing something wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
To disable the editor. just use the |
Beta Was this translation helpful? Give feedback.
To disable the editor. just use the
disabled
property as you do for an input element.<ngx-editor disabled></ngx-editor>