I created some text blocks in the layout builder and inside the text blocks I used the “textarea” html tag. After saving it appears to break the editor. I’m guessing this is a bug.
Is there a different way to do aside from within a text block?
Hey tbrim20!
Thank you for using the theme!
Regretfully, I’m not entirely sure of what it is you’re trying to do. If you don’t mind, please post the code on pastebin.com then we’ll check it and test it on our end. We’ll give you a response once we have taken a look at the issue.
Cheers!
Ismael
Hi Ismael,
In the Layout Editor, create a column. Then insert a text block element inside the column. Then edit the text block and insert a “textarea” like shown in the pastbin link below:
When I do this it previews OK, but once I update/publish the page, strange things happen in the editor and it breaks.
Let me know if you need any more detail.
Cheers,
-Tom
Hi!
You will need to use a plugin like this one to include html snippets into a shortcode and then call them that way: https://wordpress.org/plugins/insert-html-snippet/
We are working on a code block to properly escape the content inside of it and prevent the wpautop function from running but its not quite ready yet.
Best regards,
Devin
Thanks Devin. That does the trick!
Will be even nicer when you guys integrate this into the theme so it’s one less plugin to rely on.
Cheers,
-Tom