enforcing character limit while typing or copying and pasting text #167
Answered
by
kepta
yuvaraj-thiagarajan
asked this question in
Q&A
-
Is there a way to enforce character limit while typing or pasting content from somewhere else? I am looking for an extension that trims longer text to a specified maximum length while copying and pasting content in addition to not allowing the users to type beyond a set character limit. |
Beta Was this translation helpful? Give feedback.
Answered by
kepta
Apr 1, 2021
Replies: 1 comment
-
You will have to create a Prosemirror plugin which uses the filterTransaction API. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kepta
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You will have to create a Prosemirror plugin which uses the filterTransaction API.