BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Unable to recognize style

Open SadEaston opened this issue 1 year ago • 1 comments

After converting the html string with the style attribute into a block and inserting it into the editor, the editor failed to recognize the style.

Please see example Codesandbox

SadEaston avatar Feb 13 '24 04:02 SadEaston

Styles which don't have a 1:1 HTML tag equivalent (e.g. text color vs bold/italic) aren't added when converting blocks to HTML atm. Likewise, these styles also aren't parsed. This is because there's not much standardization for displaying things like text color in HTML, so different editors do it differently. See #636 for more info

matthewlipski avatar Jun 11 '24 11:06 matthewlipski