Trumbowyg icon indicating copy to clipboard operation
Trumbowyg copied to clipboard

Unordered <ul> and ordered <ol> list types should be outside of the <p> tag.

Open BatmanAlen opened this issue 4 years ago • 3 comments

By HTML standards, <ul> and <ol> are block types and should not be inside <p> , <h1>, <h2> etc. elements. It would be really nice to fix that issue. Paragraph (<p>) and similar formatting types only allow inline elements within like <strong>, <a>, <i> etc.

How to reproduce? – Just type anything in a paragraph or other formatting style and then create bullet or numbered list – check the generated HTML in you'll see that all <ul> and <ol> block elements are wrapped inside selected formatting (like <p>).

BatmanAlen avatar Jan 22 '21 02:01 BatmanAlen

You right, the ul/ol should be unwrapped.

Alex-D avatar Jun 18 '21 17:06 Alex-D

This default p tag has been giving me hard time as well. Is it possible to add another option in the formatting menu for no tag or just text? We'd like users to be able to enter text without a wrapped html element.

robmuk0 avatar Feb 21 '22 13:02 robmuk0

The same goes for table tag, it is getting wrapped inside p tag

john007abhilash avatar Apr 05 '23 09:04 john007abhilash