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 youknowriad committed Mar 6, 2019
1 parent ff10b31 commit e979458
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 e979458

Please sign in to comment.