From f1e87d9a555536d42ceaa314c6bb6c77942297f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20K=C3=A4gy?= Date: Thu, 7 Feb 2019 22:30:06 +0100 Subject: [PATCH] adding missing props to save func in es5 example 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 b5449fbe4ec9e..c6f633d348710 100644 --- a/packages/editor/src/components/rich-text/README.md +++ b/packages/editor/src/components/rich-text/README.md @@ -87,7 +87,7 @@ wp.blocks.registerBlockType( /* ... */, { } ); }, - save: function() { + save: function( props ) { return wp.element.createElement( wp.editor.RichText.Content, { tagName: 'h2', value: props.attributes.content } );