From 487a5f54516c59703e20c5beaef91994c20cfc0c Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Mon, 26 Jun 2017 15:32:31 +0100 Subject: [PATCH] Text Block: Adding a placeholder --- blocks/library/text/index.js | 1 + editor/modes/visual-editor/block-list.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/blocks/library/text/index.js b/blocks/library/text/index.js index 4afc842abc602b..a8ab8f0d73f55f 100644 --- a/blocks/library/text/index.js +++ b/blocks/library/text/index.js @@ -79,6 +79,7 @@ registerBlockType( 'core/text', { onMerge={ mergeBlocks } style={ { textAlign: align } } className={ `drop-cap-${ dropCap }` } + placeholder={ __( 'Write…' ) } />, ]; }, diff --git a/editor/modes/visual-editor/block-list.js b/editor/modes/visual-editor/block-list.js index 22d901b49efc29..8f286a4711dfa0 100644 --- a/editor/modes/visual-editor/block-list.js +++ b/editor/modes/visual-editor/block-list.js @@ -210,7 +210,7 @@ class VisualEditorBlockList extends Component { type="text" readOnly className="editor-visual-editor__placeholder" - value={ ! blocks.length ? __( 'Write your story.' ) : __( 'Write…' ) } + value={ ! blocks.length ? __( 'Write your story.' ) : __( 'Continue writing…' ) } onFocus={ ! blocks.length ? this.appendDefaultBlock : noop } onClick={ !! blocks.length ? this.appendDefaultBlock : noop } onKeyDown={ !! blocks.length ? this.onPlaceholderKeyDown : noop }