Я установил div для summernote, чтобы изменить текст, извлеченный из базы данных.
<div id="summernote" class="form-control"><?php echo $laws['content']; ?></div>
$(document).ready(function() {
$('#summernote').summernote({
height: 300,
});
});
непосредственно после div у меня есть текстовая область с идентификатором.
<textarea id="lawsContent"></textarea>
Я хочу, чтобы содержимое текстового поля менялось при вводе в summernote div. Точно так же, как то, что происходит, когда я печатаю этот вопрос.