Gutenberg change/remove “Write your story” placeholder in custom blocks

When created a new page or post or columns blocks we get the “Write your story” placeholder. Can this be removed or replaced, in custom blocks? How?

enter image description here

2 Answers
2

There does seem to be a filter to modify the default: https://github.com/WordPress/gutenberg/blob/master/lib/client-assets.php#L1574

'bodyPlaceholder'        => apply_filters( 'write_your_story', __( 'Write your story', 'gutenberg' ), $post ),

So you should be able to use the WordPress add_filter() function.

Leave a Comment