I am using CKEditor by class on a form which I am then loading via jquery load() function. I have included the .js file at the bottom of the document below the form and the divs etc. It works fine when I visit that page by itself, but when I load it within my layout using the load90 function it doesn't work. It is just as if it couldn't find the javascript file (but I am using a path from the root so it definatly can + all files are in same folder at the mo).
Any suggestions?
Thanks
James
Any suggestions?
Thanks
James
Re: CKEditor doesnt work when using jquery load() function
For example, this will work:
But this will not:
If you look in the jquery sourcecode, you will see that this was specifically done like this in order to avoid problems with I.E.
Good luck!
Re: CKEditor doesnt work when using jquery load() function
Which will then call this
I have removed the fader on the callback to check, it still isnt working, however once it is loaded it removes the border on the textarea.
My form is below (no functionality at the mo, I'm keeping it simple until this is sorted) I have tried replace by class too.
Re: CKEditor doesnt work when using jquery load() function
//load method
$('#somediv').load(webroot + resourceUrl, data, handlePostLoad);
//postload
function handlePostLoad() {
CKEDITOR.replace("textareaname");
}
I was not able to utilize the replaceClass property for instantiating editors for multiple textareas and would like to know if and how that might be possible.
Re: CKEditor doesnt work when using jquery load() function
and put this at the bottom of the page I am loading
the callback is definitely working as I added a document write after the CKEDITOR.replace() function to test, however the textarea dissapears when the ckeditor.js file loads (but it also did this before I added the callback, am I calling the right function?)
Re: CKEditor doesnt work when using jquery load() function
Thanks for all of your help!