Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replace comment textarea with contenteditable and parse content

I'm making a new comment form for a web page and I've just configured a jQuery-based contenteditable to support text formatting for this.

The only problem is that I can't find a way to parse the content of it and send it to WordPress as if it was from the textarea#comment.

Does any one know a solution/workaround for this?

like image 314
Max Avatar asked Feb 11 '26 19:02

Max


1 Answers

You should be able to copy the contents of the contenteditable element to a hidden #comment field onblur, and post that to the comment action page.

like image 115
Don Zacharias Avatar answered Feb 15 '26 11:02

Don Zacharias



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!