У меня есть список ответов. рядом с каждым у меня есть кнопка «цитата», которая копирует содержимое ответа в текстовый редактор - summernote.
Проблема в том, что когда я публикую форму, содержание цитаты не публикуется
$(document).ready(function(){
$('.quoteMsg').click(function() {
var replyMsg = $(this).closest('.replyBox').find('.replyMsg').html();
var currentMsg = $(".note-editable").html();
$(".note-editable").html($.trim(currentMsg + "\n" + "<quote><br /><br />" + replyMsg + "</quote><br />")); // for textarea editor (summernote)
});
});
<textarea id="editor-area" name="msgText" class="form-control" rows="9"><?PHP echo nl2br($_POST['msgText']) ?></textarea>