You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but after conversion it remove all the inline styles from the span with (like a font size in this case, so when I make the new line with space character of particular font size to have a kind of margin between the lines - it just reset it to default, so html in !== html out), why do it even touch it 🤔 (I mean it should be optional to trim the characters or removing the styles as it changes the content)?
The text was updated successfully, but these errors were encountered:
dimkaufo
changed the title
Span with whitespace don't keep the inline styles
After convertFromHtml span with whitespace doesn't keep the inline styles
Aug 31, 2020
Before
convertFromHtml
the content looks like this:but after conversion it remove all the inline styles from the span with
(like a font size in this case, so when I make the new line with space character of particular font size to have a kind of margin between the lines - it just reset it to default, so html in !== html out), why do it even touch it 🤔 (I mean it should be optional to trim the characters or removing the styles as it changes the content)?The code that do that(starting point) is:
https://github.com/HubSpot/draft-convert/blob/master/src/convertFromHTML.js#L309
The text was updated successfully, but these errors were encountered: