Skip to content

Commit

Permalink
adding missing props to save func in es5 example (#13752)
Browse files Browse the repository at this point in the history
In the ES5 example for the RichText component the props are not passed into the save function. Inside the save function they are called though.
  • Loading branch information
fabiankaegy authored and gziolo committed Feb 8, 2019
1 parent c5f9bd8 commit be36d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/components/rich-text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ wp.blocks.registerBlockType( /* ... */, {
} );
},

save: function() {
save: function( props ) {
return wp.element.createElement( wp.editor.RichText.Content, {
tagName: 'h2', value: props.attributes.content
} );
Expand Down

0 comments on commit be36d1a

Please sign in to comment.