Привет, @ScaryLarryGames1 , спасибо, что сообщил об этой проблеме.
Исправление оказалось тем, что ты предложил с использованием textarea, и оно только что было принято. Подожди немного, пока оно пройдёт CI/CD и попадёт в ветку latest.
main ← fix-form-template-composer-preview-newlines
merged 08:41PM - 31 Aug 26 UTC
Follow up to #42192, which switched the composer field's hidden validation stand… -in from `type="hidden"` to `type="text"` so `required` would fire on submit. Text inputs strip CR/LF on value assignment per the HTML value-sanitization rules, and the reply body is assembled from these controls via `new FormData(form)`, so multi-line composer input came out flattened in the edit preview. Saved posts were unaffected because the raw source is read from the editor directly.
Swap the stand-in to a visually hidden `<textarea>`. Textareas participate in constraint validation just like text inputs, preserving the required-field enforcement from #42192, but do not sanitize newlines, so multi-line content survives in the preview.
2 лайка