From e979458839d916dbda2431ff4c497d525f938092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20K=C3=A4gy?= Date: Fri, 8 Feb 2019 12:13:16 +0100 Subject: [PATCH] adding missing props to save func in es5 example (#13752) 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. --- packages/editor/src/components/rich-text/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/components/rich-text/README.md b/packages/editor/src/components/rich-text/README.md index 4e543219177e4..6774ca3879f49 100644 --- a/packages/editor/src/components/rich-text/README.md +++ b/packages/editor/src/components/rich-text/README.md @@ -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 } );