sibiraj-s / ngx-editor

🖋️ Rich Text Editor for angular using ProseMirror
https://sibiraj-s.github.io/ngx-editor/
MIT License
458 stars 191 forks source link

[Bug]: ngModel & disabled not a known property of 'ngx-editor' #374

Closed grahamroy closed 2 years ago

grahamroy commented 2 years ago

What happened?

I have scaffolded a basic Angular 13 app and added ngx-editor as described. When I try and build the project I get:

Can't bind to 'ngModel' since it isn't a known property of 'ngx-editor'.

  1. If 'ngx-editor' is an Angular component and it has 'ngModel' input, then verify that it is part of this module.
  2. If 'ngx-editor' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

Can't bind to 'disabled' since it isn't a known property of 'ngx-editor'.

  1. If 'ngx-editor' is an Angular component and it has 'disabled' input, then verify that it is part of this module.
  2. If 'ngx-editor' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

Version

^12.0.0

What browsers are you seeing the problem on?

Chrome

Link to reproduce

https://github.com/grahamroy/editor

Relevant log output

as above

Willing to submit a PR?

Yes

sibiraj-s commented 2 years ago

Can't bind to 'ngModel' since it isn't a known property of 'ngx-editor'.

For ngModel to work. You must include FormsModule. can you add that and try?

grahamroy commented 2 years ago

DOH!

Thanks for your help :)

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.