Skip to content

Commit

Permalink
Text Block: Adding a placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jun 26, 2017
1 parent 35468d9 commit 3500619
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions blocks/library/text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ registerBlockType( 'core/text', {
onMerge={ mergeBlocks }
style={ { textAlign: align } }
className={ `drop-cap-${ dropCap }` }
placeholder={ __( 'Write…' ) }
/>,
];
},
Expand Down
2 changes: 1 addition & 1 deletion editor/modes/visual-editor/block-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 3500619

Please sign in to comment.