voidlabs / mosaico

Mosaico - Responsive Email Template Editor
https://mosaico.io
GNU General Public License v3.0
1.68k stars 502 forks source link

Shift-enter in single line editables introduces <p> tags! (regression) #677

Closed bago closed 1 year ago

bago commented 1 year ago

Since we moved to "

" based editing for singleline editable (headings, buttons, etc) tinymce behaviour for enter works as before (insert a
) but shift-enter, that previously did nothing, now inserts

tags inside that element and we don't want

tags in single line elements.

Sounds like a bug from tinymce as

are not in the allowed elements, but maybe we can add some workaround to restore the old behaviour.