我想在 contenteditable 字段/div 更改时发布它的内容。hx-trigger="change"
没有触发,但使用hx-trigger="blur"
没问题。如何在请求中提交 contenteditable div 的值?
<div id='parent-div'>
<div contenteditable='true'
hx-post="/update_db"
hx-trigger="blur"
hx-target="#parent-div"
hx-swap="outerHTML">
Hello, I am a content editable field
</div>
</div>