I have a problem when typing content with a paragraph in a textarea (from a custom block) in a structure field.
When the content is saved, it disappears.
I discovered that in the content file (.txt), creating a new paragraph (pressing Enter key) is rendered as “\n” and this seems to break the content and the reason why it is not saved.
Switching the textarea field to a writer field seems to solve the problem by applying a <p></p> instead of ‘\n’.
Perhaps this is a problem with Kirby’s core code. What do you think?
hej, @nicopizza and @texnixe — I can also confirm and reproduce this behaviour, placing any (custom)-block containing a textarea into a layout that lives in a structure.
(I am using Kirby 3.9.7 with php 8.2)
Is there any workaround except using a writer field (which instead of placing \n is writing HTML)
Has anyone created an issue on gitHub yet?