HTML tags in Textarea field #54758
Replies: 2 comments 4 replies
-
Hi @MindProcess-WebDev, Why would you want to type multi-line paragraphs in the sidebar? If you want to use the input text as the block content, it is better to develop it as an inner block that can only insert paragraph blocks. Additionally, the |
Beta Was this translation helpful? Give feedback.
-
In that case, I think it's better to enter the content in the block itself instead of in the sidebar. Specifically, it is a block with a The Details block should be close to its implementation. |
Beta Was this translation helpful? Give feedback.
-
Maybe I'm missing something really obvious here, but I haven't found a way to do this with Gutenberg components without some workarounds.
I'm using a textarea field in a custom block, and I'd like to split the text into paragraphs. I can add some spaces between the text lines, but those spaces are stripped out on the block output.
As a workaround, I've used a richtext component with multiline set to "p". Since I'm using this field on the block sidebar, it shows up a bit weird, without a label or a border. I added the label manually and the border on the editor.scss, and it looks ok.
I'm wondering if there's an easier way to achieve this.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions