Skip to content

Commit

Permalink
Ensure correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Apr 5, 2024
1 parent ad07362 commit a2d351e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/blocks/src/api/parser/get-block-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ export function getBlockAttribute(
value = commentAttributes
? commentAttributes[ attributeKey ]
: undefined;
if ( value && attributeSchema.type === 'rich-text' ) {
value = RichTextData.fromHTMLString( value );
}
break;
// raw source means that it's the original raw block content.
case 'raw':
Expand Down

0 comments on commit a2d351e

Please sign in to comment.