D
D
Dmitry Lakhno2016-04-06 17:46:28
opencart
Dmitry Lakhno, 2016-04-06 17:46:28

Summernote not saving OpenCart 2.x text?

Summernote does not save the text in the description of the manufacturers, but in the rest of the sections everything is ok. There is text in the input itself (added via PhpMyAdmin), but it is not displayed in the summernote editor itself. If you start typing, it is visible, but after saving it disappears and nothing arrives in the database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Web Lizard, 2016-04-07
@lahno

Keep a crutch on js

$(document).ready(function() {
  $(".note-editable").html($("#input-description").val());
  $(".note-editable").keyup(function(event) {
     $("#input-description").attr("value", $(this).html());
  });
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question