I have been using the jhtmlarea for a wysiwyg editor. Most of it is working. Though I can't figure out how to set the html inside of the textarea.
I have tried .html, .val, .attr('value',''), .text, though none of them work.
Any suggestions on how to do this/a better solution?
Thanks
Set the original text area value and call updateHtmlArea:
$('#textAreaID').val(newHtml).htmlarea('updateHtmlArea');
This works for me
$("#yourTextArea").htmlarea('pasteHTML', "HTML to paste");
Hope it helps you and someone else :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With