I'm trying to use below code to get text copied from jhtmlarea to another textarea but it do not work.
<textarea id="attrArticleHtml"></textarea>
<textarea id="attrArticleSecond"></textarea>
$(function() {
$('#attrArticleHtml').keyup(function() {
var textareaHtml = $('#attrArticleHtml').htmlarea('toHtmlString');
console.log(textareaHtml);
$('#attrArticleSecond').text(textareaHtml);
});
});
What ID I should use to get text copied using keyup? Seems that jhtmlarea is using iframe and therefore attrArticleHtml is not ok.