Tomkay
Tomkay

Reputation: 5160

RTE should not wrap a <p> tag around an <img> tag

I work with the RTE and it makes me angry that the RTE does wrap <p> tags around an <img> tag. What do I have to do that the RTE does not wrap <p> tags around the <img> tag?

Upvotes: 2

Views: 1279

Answers (1)

yunzen
yunzen

Reputation: 33439

In your PageTSConfig something like this

RTE.default.proc.allowTagsOutside = img,hr

or

RTE.default.proc.allowTagsOutside := addToList(img)

if you want the previous settings and the img additionally

Upvotes: 2

Related Questions