Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Alodon's avatar

Editor.js is not working with textarea

Hello, I am working with a rich text editor. I can't use it with textarea html tag. But it works with div. Problem is I can't validate a div with laravel. As div doesn't support name attribute.

0 likes
4 replies
Snapey's avatar

You cannot submit a div contents as part of a form submission, so at some point, the editor will expect to copy the div content to a hidden field which is part of your form.

The documentation for the editor should tell you this.

Tell us which editor it is if you want more guidance.

Please or to participate in this conversation.