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]: How to set maxlength on editor. I can't find any config variable to limit character count and also Validators.maxLength(maxLength) not working #575

Open henafufa opened 3 months ago

henafufa commented 3 months ago

What happened?

I can't find any config variable to limit character count

Version

17.0.2

Angular Version

17.2.2

What browsers are you seeing the problem on?

Chrome

Link to reproduce

https://stackblitz.com/edit/ngx-editor-2fzuev?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.component.html

Relevant log output

No response

Willing to submit a PR?

None

LouisAltmann commented 2 months ago

Limiting the maximum amount of lines of the editor (like in a textarea for instance) would be quite useful for my use case as well.