Tagged: Code block, form, textarea
Hi Enfold Support team,
So, I was trying to add a javascript and a form in a page with the builder, via the “Code Block” element.
Preview was ok, but the builder had trouble to edit the Code block (builder tag visible outside the builder element, code disappears in the code block when editing it …)
I tried to check which element made the builder break and i think it’s the textarea tag. And when i tried with this single part of code, it broke :
<div><form><textarea name=”avia_test_texte_area_1″ class=”text_area ” cols=”40″ rows=”7″ id=”avia_test_texte_area_1″></textarea></form></div>
Is there a way to prevent this ? I saw a previous thread about a similar problem, but it was in the “text block” element of the builder, not the “code block”.
The solution was to use the html snippet plugin and to wait for the fix. It was in April and i don”t know if there is a way to do that now with the code blok…
Thanks for your help.
Hi ouranos3!
I’ll mark this thread for Kriesi. Afaik the textarea tag does not work because we use a textarea for the code input and probably you can’t wrap a textarea into a textarea without breaking the html structure. We reported this issue to Kriesi but I’m not sure if he already found a fix yet or if there’s no fix at all. I suggest to stick with the html snippet plugin for now if your code contains a textarea tag.
Cheers!
Peter
Thanks Peter.