I am using CKEditor to change my text field in wysiwyg. Everything works fine, except when I load content through an Ajax call. Then my CKEditor does not load.
I was looking for a solution, but could not find anything that would work for me.
My Ajax call basically looks like this:
$.ajax({ type: "POST", url: url, success: function(data) { $('#content').html(data); $('.ckeditor').ckeditor(); } });
As you can see, I tried using the ckeditor () function to programmatically load CKEditor. But this gives me the following error:
Firefox says:
$ (".ckeditor"). ckeditor is not a function
And IE says:
The object does not support the property or method 'ckeditor'
Is there any other way to load CKEditor by class name when the content is loaded via an Ajax call?
source share