Skip to content

Commit

Permalink
TEST: Placeholder 💯
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Awais committed Jul 15, 2017
1 parent b770e23 commit 952e373
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion block/04-tweet/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
value: content, // Content in our block. i.e. props.attributes.content;
focus: null, // Focus — should be truthy. i.e. props.focus; I have set it null to disable the toolbar. Hacky. There must be a better way.
onFocus: props.setFocus,
// placeholder: __( 'Write a tweet…' ), // Commented coz of a CSS issue probably will be fixed in future Gutenberg versions.
placeholder: __( 'Write a tweet…' ), // Commented coz of a CSS issue probably will be fixed in future Gutenberg versions.
}
);
},
Expand Down
4 changes: 2 additions & 2 deletions block/04-tweet/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function gb_block_04_tweet_editor_assets() {


// Only frontend.
if ( ! is_admin() ) {
// if ( ! is_admin() ) {
// Hook: Frontend assets.
add_action( 'enqueue_block_assets', 'gb_block_04_tweet_block_assets' );

Expand All @@ -65,4 +65,4 @@ function gb_block_04_tweet_block_assets() {
filemtime( plugin_dir_path( __FILE__ ) . 'editor.css' ) // filemtime — Gets file modification time.
);
} // End fucntion gb_block_04_tweet_block_assets().
} // End is_admin().
// } // End is_admin().

0 comments on commit 952e373

Please sign in to comment.