0
Ich nehme Ajax Antwort nach einem Textarea und funktioniert ordnungsgemäß, jetzt ... Wie bringe ich die gleiche Antwort auf eine ckeditor? da der ckeditor ist eine Menge von divs eine TextArea-Wie man eine Antwort auf eine ckeditor Ajax TextArea
AJAX Simulation:
var token = document.getElementById('token').value;
$.ajax({
headers: {'X-CSRF-TOKEN': token},
dataType: "json",
data: {op: op},
url: ip+'/consultaObservacionOP/',
type: 'post',
beforeSend: function(){
},
success: function(respuesta)
{
document.getElementById('observacion').value = respuesta;
},
error: function(xhr,err)
{
alert("Error");
}
});
HTML:
<div class="modal-body">
<textarea class="ckeditor" style="width:570px" id="observacion"></textarea>
</div>
http://stackoverflow.com/questions/3610010/how-do-i-set-a-value-in-cheditor-with-javascript – bvoleti