M
M
miroslavuss2020-07-22 12:55:35
CKEditor
miroslavuss, 2020-07-22 12:55:35

How to send html code to ckeditor using ajax?

ajax script

function call() {
 	  var msg   = $('#title').serialize();
        $.ajax({
          type: 'POST',
          url: 'stranajax/ajax.php',
          data: msg,
         success: function(data) {
            $('#htmlx').html(data);
          },
          error:  function(xhr, str){
      alert('Возникла ошибка: ' + xhr.responseCode);
          }
        });
    }

"htmlx"- id in ckeditor in this case nothing changes
tried to cling id to the block in which ckeditor was placed and already write ck in ajaxe, but then only textarea appeared.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question