Hi,
So I am loading a textarea via ajax using jquery .load and then setting up the instance using CKEDITOR.replace but it returns null. heres my code:
$('#contentModal').load('/modals/contentModal.php', function() {
CKEDITOR.replace('moduleContent');
});
the file /modals/contentModal.php contains a simple text area with id and name: moduleContent
I have tried updating to the latest version of CKEditor which has not helped, iv also tried executing CKEDITOR.replace('moduleContent'); manually using the JS console after the modal has opened but it still returns null. Any ideas? Really need this solved quickly, can provide access to the codebase and willing to pay for it to be fixed if need be,
$('#contentModal').load('/modals/contentModal.php', function() {
CKEDITOR.replace('moduleContent');
});
the file /modals/contentModal.php contains a simple text area with id and name: moduleContent
I have tried updating to the latest version of CKEditor which has not helped, iv also tried executing CKEDITOR.replace('moduleContent'); manually using the JS console after the modal has opened but it still returns null. Any ideas? Really need this solved quickly, can provide access to the codebase and willing to pay for it to be fixed if need be,