diff --git a/editor/components/default-block-appender/index.js b/editor/components/default-block-appender/index.js
index c4bde4a7331408..637f3e49701c07 100644
--- a/editor/components/default-block-appender/index.js
+++ b/editor/components/default-block-appender/index.js
@@ -19,11 +19,13 @@ import BlockDropZone from '../block-drop-zone';
import { insertDefaultBlock, startTyping } from '../../store/actions';
import { getBlock, getBlockCount } from '../../store/selectors';
-export function DefaultBlockAppender( { isLocked, isVisible, onAppend, showPrompt } ) {
+export function DefaultBlockAppender( { isLocked, isVisible, onAppend, showPrompt, placeholder } ) {
if ( isLocked || ! isVisible ) {
return null;
}
+ const value = placeholder || __( 'Write your story' );
+
return (
@@ -34,7 +36,7 @@ export function DefaultBlockAppender( { isLocked, isVisible, onAppend, showPromp
onFocus={ onAppend }
onClick={ onAppend }
onKeyDown={ onAppend }
- value={ showPrompt ? __( 'Write your story' ) : '' }
+ value={ showPrompt ? value : '' }
/>
);
@@ -66,10 +68,11 @@ export default compose(
} )
),
withContext( 'editor' )( ( settings ) => {
- const { templateLock } = settings;
+ const { templateLock, bodyPlaceholder } = settings;
return {
isLocked: !! templateLock,
+ placeholder: bodyPlaceholder,
};
} ),
)( DefaultBlockAppender );
diff --git a/lib/client-assets.php b/lib/client-assets.php
index 686e80bf81aa98..a24279f6b7b59a 100644
--- a/lib/client-assets.php
+++ b/lib/client-assets.php
@@ -914,6 +914,7 @@ function gutenberg_editor_scripts_and_styles( $hook ) {
'disableCustomColors' => get_theme_support( 'disable-custom-colors' ),
'disablePostFormats' => ! current_theme_supports( 'post-formats' ),
'titlePlaceholder' => apply_filters( 'enter_title_here', __( 'Add title', 'gutenberg' ), $post ),
+ 'bodyPlaceholder' => apply_filters( 'write_your_story', __( 'Write your story', 'gutenberg' ), $post ),
);
if ( ! empty( $color_palette ) ) {