dasmikko / strapi-tiptap-editor

A drop-in replacement for the strapi editor
MIT License
64 stars 29 forks source link

Hard breaks are not kept even if HardBreak plugin is enabled #45

Closed alessmar closed 1 year ago

alessmar commented 2 years ago

Hi, strapi-tiptap-editor ver. 0.9.6 seems to not keep <br> even if HardBreak plugin is enabled (@tiptap/extension-hard-break@2.0.0-beta.199 is pulled in).

I have a field with HTML that has <br> but the content is displayed on a single line. If I edit it in the Tip Tap editor by splitting the content on a new line, I see that the markup applied is <p> and not <br>

SalahAdDin commented 2 years ago

Did you check if it is working well in a normal TipTap React implementation?

dasmikko commented 1 year ago

Turns out there is a bug in the code. This is fixed in the next version.

dasmikko commented 1 year ago

Fixed in 0.9.7