-
Notifications
You must be signed in to change notification settings - Fork 136
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
TextArea control not working #1895
Comments
Hello @jan-clockworkwp. Thank you for the report. It looks like we are indeed missing the handler thats renders the We will provide a small PR soon that provides this functionality. |
@jan-clockworkwp @faustwp/block-editor-utils@0.2.1 contains a fix for this issue. I'm closing this ticket, but feel free to comment back if you still have any problems. |
@theodesp I have tested this fix and after updating to |
Hi @theodesp, there is one thing I have originally missed and it is the fact that if you use for textarea control type: "object" in the block.json file as described in the faust.js docs, you end up with extra double quotes on the FE causing "Attempt Block Recovery" action in the backend. If you use type "string" in |
Description
I wonder if anyone is able to use TextAreaControl within the custom block. TextControl works fine, richText as well, but I was not able to make TextAreaControl work. I have followed steps from the official docs as well went through the #1522 and tried various combinations of
block.json
andeditorFields
config. Whencontrol: 'textarea'
is set ineditorFields
config, no matter what type is set in theblock.json
filetype: string | array | object
text area field is not being rendered at all.Steps to reproduce
block-support
repoblock.json
, for examplemessage_area
Component.js
updateeditorFields
config and setcontrol: 'textarea'
to the newly added fieldmessage_area
Additional context
No response
@faustwp/core Version
3.0.1
@faustwp/cli Version
3.0.1
FaustWP Plugin Version
1.3.1
WordPress Version
6.5.2
Additional environment details
No response
Please confirm that you have searched existing issues in the repo.
The text was updated successfully, but these errors were encountered: