mdefy / ngx-markdown-editor

Angular WYSIWYG Markdown editor, especially intended for users unfamiliar with the Markdown syntax.
MIT License
16 stars 5 forks source link

Cannot assign to 'toolbar' because it is a read-only property. #2

Open andreimarcut opened 3 years ago

andreimarcut commented 3 years ago

Failed to compile.

some.component.html:158 - error TS2540: Cannot assign to 'toolbar' because it is a read-only property.

158 <ngx-markdown-editor [toolbar]="toolbar"></ngx-markdown-editor>

some.component.ts:21:16 21 templateUrl: './some.component.html',


    Error occurs in the template of component SomeComponent.
nasfernane commented 2 years ago

Hi. I know it's a late answer.

The only solution I found so far is to remove readonly on the MarkdownEditorComponent properties in nodes modules :

image

I'm open for better solutions :)