Log in or register to post comments
Last post
Ajax Example
I've looked at Method #3 on http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Integration/JavaScript and tried to emu;ate it, but it just doesn't work for me. The example doesn't show where the text to be put in the editor comes from or where it is put to go in.

I've got the data coming back from an Ajax request. Some of that data I put into text fields. No problem. I even put the text I wanted into a textarea. But when I changed the textarea to FCKEditor, nothing worked.

Does someone have code samples of how to manipulate the content of FCKEditor? I want to know how to put content in, and how to get content out, using Javascript. I've also got jQuery on hand, of course.

Thanks for your help,
- AAA

PS: yes, I know FCKEditor is no longer supported.
Re: Ajax Example
Have you checked the _samples that come with FCKeditor?
Re: Ajax Example
Yeah I've checked those examples, they are always a great help! :D
Ajax Example
This is a simple ajax example
function getquerystring() {
    var form     = document.forms['f1'];
    var word = form.word.value;
    qstr = 'w=' + escape(word);  // NOTE: no '?' before querystring
    return qstr;
}