Alex-D / Trumbowyg

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

Google chrome changing header to list item #1298

Closed petrw1c closed 1 year ago

petrw1c commented 2 years ago

If header is before un/orderer list and if changing list to other type, it will also change header to list type.

Description

Provide relevant details according to the context:

How to reproduce?

Tested here: https://alex-d.github.io/Trumbowyg/demos/

Write few lines with texts select first line and change to H2 select other lines and change to ordered list immediately change to unordered list

Current Now the header is changed to unordered list.

Expected: After changing list, header should be still header.

Alex-D commented 1 year ago

Cannot reproduce :/