BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Feedback for “Parsing HTML to Blocks”

Open roobox opened this issue 1 year ago • 1 comments

Hello community, I want to switch to BlockNote for my Webapplication. But for this to happen BlockNote would need to be able to parse the existing html files of my users. If I want to parse the following HTML:

<p>
This is a <span style="background-color: rgb(161, 0, 0);">colored background</span>
with different <span style="color: rgb(0, 71, 178);">colored text:</span
And a <sub>subtext</sub>
</p>

Non of the following three attributes (

  1. The background color of the first span
  2. The text color of the second span
  3. The sub element )

is getting parsed into the Block format and I therefore loose this information.

I know that these custom colors are not in the default color palette of BlockNote, but I would still expect that they are getting parsed and displayed accordingly and when the user wants to change the color, his custom color is not part of the dropdown options and he could only switch to one of the default colors.

Is there any possibility to include this into BlockNote?

roobox avatar Apr 11 '24 10:04 roobox

Known issue, see #636 and #572

matthewlipski avatar Jun 11 '24 12:06 matthewlipski