How in tiptap editor to set maxLength
I am using the tiptap editor and somehow when i set the maxLength for the content i get the error that there is not a function maxLength, i search in docs but there is not a function for the limit of content so what i should do
6 Replies
I tried uing this way but does not work
Because the field doesn't support it. You can make a PR
Yeah but i was thinking they will make something else, i find the solution
max:200 is not working.
Max length isn’t going to work correctly with a wysiwyg style editor because the state is either going to a json tree or html both of which have characters that are part of the length but hidden therefore it won’t result in a proper validation. It was a conscious decision to not include it.