tinymce / tinymce-angular

Official TinyMCE Angular Component
MIT License
320 stars 93 forks source link

How can I let the form submit on Control + Enter instead of new line? #258

Closed madhur closed 3 years ago

madhur commented 3 years ago

Is your feature request related to a problem? Please describe. I am currently using TinyMCE with angular application. Pressing Control + Enter adds a new line

Describe the solution you'd like Outside of TinyMCE, pressing control + enter submits the form. How can I have the same behavior from inside of TinyMCE

Describe alternatives you've considered

exalate-issue-sync[bot] commented 3 years ago

Ref: INT-2605

jscasca commented 3 years ago

Hey @madhur

You can probably add a custom shortcut to handle your particular case. Here is a quick example: https://codesandbox.io/s/tinymceangular-forked-xljs4?file=/src/app/app.component.ts

Hope that helps