This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
<br> tags inside <p> gets removed when using "convertFromHTML" #2717
Comments
This looks like the same issue as #1154 (since copy-paste uses |
that's the reason, it should be: ```javascript
if (
blockConfig.type !== 'unstyled' ||
blockConfig.text !== '' ||
(blockConfig.text === '' &&
!(blockConfig.childConfigs && blockConfig.childConfigs.length))) {
return [blockConfig];
}
|
+1 |
I face this problem too |
Any solution? |
Workaround is to define
|
What is |
same question as @altyaper , What is getSafeBodyFromHTML in this case? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm having some problems with the convertFromHTML, it is removing
<br>
tags when used inside<p>
For example,
html:
<p>
Paragraph 1</p><p><br/></p><p>
Paragraph 2</p><p><br/></p><p>
Paragraph 3</p>
Should render in the editor:
Paragraph 1
Paragraph 2
Paragraph 3
But instead, it ignores the line breaks and renders:
Paragraph 1
Paragraph 2
Paragraph 3
It is possible that I am doing something wrong but I could not figure what.
Anyone else facing this issue?
The text was updated successfully, but these errors were encountered: