Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
4.03k stars 615 forks source link

Line-break with Ctrl-Enter not working anymore #1479

Open mkrecek234 opened 3 months ago

mkrecek234 commented 3 months ago

In previous versions it always worked to enter Ctrl-Enter to get a line-break instead of a new paragraph. With the recent version this is not longer working... Tested in newest Safari and Chrome versions on https://alex-d.github.io/Trumbowyg/

Just enter text and then press Ctrl-Enter - nothing happens. Also Alt-Enter, or other combinations with Alt, Shift and Ctrl are not working.

Please help, as this was very important for proper formatting of texts!

mkrecek234 commented 3 months ago

I have to be more precise - it seems that it changed to Shift-Enter which creates <br> in Chrome, but not in latest Safari macOS Sequoia betas and also Safari Technology Preview anymore (there it also creates a <p> as a plain Enter key press. So might also be an issue with latest Safaris. If you need me for testing, let me know, happy to investigate this to be prepared for Sequoia launch

mkrecek234 commented 3 months ago

Solved in latest Safari beta updates. Please ignore, closed

mkrecek234 commented 2 months ago

Apple now has has changed again the way Safari handles Ctrl-Enter/Shift-Enter etc. in a textarea with the recent macOS Sequoia 15.1 b. Currently I did not find any way to enter a line-break anymore. Ctrl-Enter now opens the context menu instead of line-break. Other combinations like Shift-Enter, Alt-Enter etc. won't help either. Any idea how we can solve this independent of what Safari offers? Chrome is no issue.

mkrecek234 commented 1 week ago

This is still an issue again in the most recent Safaris.... There is no way to enter a line-break (without paragraph) anymore. Not sure how to adapt Trumbowyg to catch the keypress event Shift-Enter and then perform a
instead of a

. Very important to make beautiful HTML texts though.