Am trying to add a comment input box and use the tag function which is working but I need an enter pressed to submit the form
Can’t find on enter pressed in this case, any ideas how to do it?
Am trying to add a comment input box and use the tag function which is working but I need an enter pressed to submit the form
Can’t find on enter pressed in this case, any ideas how to do it?
Hi Yma ![]()
Indeed the rich text doesn’t have a behavior where pressing enter could submit a form, unlike regular form inputs, as if you are using a rich text element one would expect users to be able to press enter to edit their text.
You could try to add some event listeners in your page or form to listen for keystrokes.
In this post you can see some of these codes:
(Be aware that this post is talking about blocking key strokes, but some of this thought process could help you find an answer.)
Hello @yma ,
I’m interested in the solution. Did you find it ?
To be honest it will require many work arounds to have it done which is hectic, so I decided to visit this later
This topic was automatically closed after 75 days. New replies are no longer allowed.