Add textareacontrol for additional classes#67130
Add textareacontrol for additional classes#67130AKSHAT2802 wants to merge 2 commits intoWordPress:trunkfrom
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @porg. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
| attributes.className | ||
| ); | ||
| // Sanitize the className here by removing newlines, tabs, and extra spaces | ||
| const sanitizedClassName = attributes.className |
There was a problem hiding this comment.
It seems this is intended to help prevent such situations. Looping in @Mamaduka for his input on this approach.
Resolves #51814
What?
Replaces TextControl with TextAreaControl to enhance UI for adding additional classes for blocks
Why?
To make better visibility of added additional classes for any block
How?
Replaced
TextControlwithTextAreaControland also sanitized the value to replace line breaks, tabs and multiple spaces with single space to maintain structure.Screenshots or screencast