0
I’m working on a control panel for website where the news posts are made.
For it you can edit the news if necessary, I’m using the CKEDITOR in my textarea, the consultation shall be made by means of ajax/php, but I can’t play the searched text on banco for editing back on textarea with CKEDITOR. Someone can give me a boost?
function editaTextoNoticia(idd) {
var url = "buscaEditarTextoNoticia.php?id=" + idd;
req2.open("Get", url, true);
req2.onreadystatechange = function() {
if (req2.readyState == 1) {
document.getElementById('textoEditar').innerHTML = 'Carregando...';
}
if (req2.readyState == 4 && req2.status == 200) {
var resposta = req2.responseText;
CKEDITOR.instances.textoEditar.updateElement();
}
};
req2.send(null);
}
Post part of code with error
– Leonardo
Click edit the question friend, before reading the tour to learn how to use the site: http://answall.com/tour
– Leonardo