I'm using the new version of CKEditor. I have an instance of it created in a hidden div. The user clicks on a title and I then show the div and set the text to it from an ajax query like so:
res = runquery('journal', 'getJournalEntry', obj);
alert(res);
$('#form_container_scroll').hide();
$('#edit_holder').show();
$('#edit_text').val(res);
alert($('#edit_text').val());
The first alert shows the text properly, then I set it to the edit_text instance and do another alert, this time using the value of edit_text. The second alert shows the text properly but nothing is displayed in the editor.
Been banging my head on the desk with this one for hours!
Any help would be truly appreciated
res = runquery('journal', 'getJournalEntry', obj);
alert(res);
$('#form_container_scroll').hide();
$('#edit_holder').show();
$('#edit_text').val(res);
alert($('#edit_text').val());
The first alert shows the text properly, then I set it to the edit_text instance and do another alert, this time using the value of edit_text. The second alert shows the text properly but nothing is displayed in the editor.
Been banging my head on the desk with this one for hours!
Any help would be truly appreciated