Skip to content

Commit

Permalink
Merge pull request #667 from WordPress/update/set-content-raw
Browse files Browse the repository at this point in the history
Use raw format when setting Editable content
  • Loading branch information
aduth authored May 5, 2017
2 parents 2eff0c3 + 3fd5cb0 commit 6bed579
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blocks/components/editable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default class Editable extends wp.element.Component {
}

content = wp.element.renderToString( content );
this.editor.setContent( content );
this.editor.setContent( content, { format: 'raw' } );
}

getContent() {
Expand Down
2 changes: 1 addition & 1 deletion blocks/library/heading/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ registerBlock( 'core/heading', {
blockType: 'core/heading',
attributes: {
nodeName: 'H2',
content: content[ 0 ]
content: content[ 0 ].props.children
}
};
const blocks = [ heading ];
Expand Down

0 comments on commit 6bed579

Please sign in to comment.