Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update shortcodes to use textarea #3184

Merged
merged 3 commits into from
Oct 26, 2017
Merged

update shortcodes to use textarea #3184

merged 3 commits into from
Oct 26, 2017

Conversation

shaunsantacruz
Copy link
Contributor

Description

Update shortcode block to use textarea instead of input. #3154

How Has This Been Tested?

Ran tests locally and all is good.

Screenshots (jpeg or gifs if applicable):

Types of changes

Straightforward change of input -> textarea

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

@@ -40,7 +40,7 @@ registerBlockType( 'core/shortcode', {
<Dashicon icon="editor-code" />
{ __( 'Shortcode' ) }
</label>
<input
<textarea
id={ inputId }
type="text"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<textarea> has no type attribute.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Thanks!

@aduth
Copy link
Member

aduth commented Oct 26, 2017

Per #1709 (comment) maybe this would be better served with a resizable textarea, i.e. react-autosize-textarea used elsewhere in Gutenberg.

@Soean
Copy link
Member

Soean commented Oct 26, 2017

Successfully tested, looks good to me.
bildschirmfoto 2017-10-26 um 18 30 09

Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 👍

@aduth aduth merged commit b2e25cd into WordPress:master Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants