Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback for “Parsing HTML to Blocks” #700

Open
roobox opened this issue Apr 11, 2024 · 0 comments
Open

Feedback for “Parsing HTML to Blocks” #700

roobox opened this issue Apr 11, 2024 · 0 comments

Comments

@roobox
Copy link

roobox commented Apr 11, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant