The way FCKEditor, TinyMCE, and other online richtext editors work is that they dynamically replace a textarea. For instance, the default content for MODx has a page that allows you to add a blog entry. On that page, a reference to a template variable called ’tvblogContent’ is made. Looking at the source shows a textarea called ’tvblogContent’ and the call for FCKEditor creates a new instance to replace the textarea with something like this:
new FCKeditor(’tvblogContent’);
There is no direct way to grab the content of FCKEditor without going through its instance. Instead, you can simply reference the textarea itself. Which brings us to the function you mentioned...
That particular function is what updates the content of the textarea. Anytime the content of FCKEditor changes, it triggers a function that updates the textarea associated with the FCKEditor instance. The function you listed is part of that function and is necessary to ensure that the textarea is properly updated.
More details can be found on the FCKEditor website (www.fckeditor.net). Not as much documentation as there probably should be...but there is help available nonetheless.