We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e56083 commit 960bb6eCopy full SHA for 960bb6e
1 file changed
packages/block-library/src/heading/edit.native.js
@@ -48,7 +48,7 @@ class HeadingEdit extends Component {
48
} }
49
onChange={ ( event ) => {
50
// Create a React Tree from the new HTML
51
- const newParaBlock = parse( `<!-- wp:heading --><${ tagName }>${ event.content }</${ tagName }><!-- /wp:heading -->` )[ 0 ];
+ const newParaBlock = parse( `<!-- wp:heading {"level":${ level }} --><${ tagName }>${ event.content }</${ tagName }><!-- /wp:heading -->` )[ 0 ];
52
setAttributes( {
53
...this.props.attributes,
54
content: newParaBlock.attributes.content,
0 commit comments