Hello, I'm pretty new to FCKeditor, so forgive me if this is a n00b question. I searched the docs but couldn't find the answer. Basically, I have a select element that, when changed, should change the content of the FCKeditor window. My code looks something like this (it uses jQuery, but that is beside the point):
When I set the value of the textarea on window load, it works fine. It is only after the page has already loaded that I have issues. Setting the content of the textarea has no effect. Is there a method I am not aware of that allows you to change the content of the FCKeditor window?
// setting the value on page load works fine
$('#FCKeditor1').val('foo');
// setting the page value inside of an onChange() event doesn't work
$('#page').change(function() {
$.get('/content/load/', {'page': $(this).val()}, function(data, status) {
if (status == 'success') {
// this doesn't work...
$('#FCKeditor1').val(data);
} else {
alert('Sorry, the content could not be loaded for this page right now. Try again later.');
}
});
});When I set the value of the textarea on window load, it works fine. It is only after the page has already loaded that I have issues. Setting the content of the textarea has no effect. Is there a method I am not aware of that allows you to change the content of the FCKeditor window?

Re: How do I change the value of the FCKeditor inside onChange?
FCKeditor is not the textarea, so you must use its API to get and set its value: http://docs.cksource.com/FCKeditor_2.x/ ... Script_API