Is there a way to prevent the user from pasting anything that includes a new line? I want to enforce no new lines for a section of the document, but I don’t want to prevent pasting anything which is only one line.
Thanks!
Is there a way to prevent the user from pasting anything that includes a new line? I want to enforce no new lines for a section of the document, but I don’t want to prevent pasting anything which is only one line.
Thanks!
You can use the beforeChange
event for this.
Thank you!