How to create a new component on Enter ↵ key? #5273
Answered
by
lexoyo
frank-embleton
asked this question in
Q&A
-
I'm working with creating a text component, on the user pressing Enter I'd like to create a new component rather than adding a So far, I have tried using CKEditor as well as modifying Codemirror, but have had no luck. I found an old issue which showed someone having the inverse problem, but I'm not sure that using a version from 2018 is the best idea 🙃 |
Beta Was this translation helpful? Give feedback.
Answered by
lexoyo
Aug 3, 2023
Replies: 1 comment 4 replies
-
Did you try listening to the enter key then adding a component with grapesjs api? You can start listening when the selection changes to a text component |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
frank-embleton
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you try listening to the enter key then adding a component with grapesjs api?
You can start listening when the selection changes to a text component