I'm using AJAX to load a modal dialog containing a form that uses FCKeditor. Before anyone asks, it has to be done this way for several reasons. I've considered alternatives, but nothing else will work the way we need it to.
Basically, the modal dialog is called, and the form fields get populated based on database contents. The FCKeditor gets created with the following code:
The problem is that in IE, the editor will load the first time the page is called. After that, though, users only get an empty box. Once the page is refreshed, they can call it again, but like before, only once. This issue is not present in Firefox.
How do I correct this?
Basically, the modal dialog is called, and the form fields get populated based on database contents. The FCKeditor gets created with the following code:
<? $oFCKeditor = new FCKeditor('requires'); $oFCKeditor->BasePath = 'scripts/fckeditor/'; $oFCKeditor->Value = $requires; $oFCKeditor->ToolbarSet = 'Minimal'; if($_SESSION['auth']<3){ $oFCKeditor->Height = '0'; $oFCKeditor->Width = '0'; echo "<textarea id=\"requiresDisabled\" name=\"requiresDisabled\" rows=\"10\" style=\"width:100%;\" disabled=\"disabled\">$requires</textarea><em>You do not have permission to modify this section.</em>"; } else { $oFCKeditor->Height = '200'; } $oFCKeditor->Create(); ?>
The problem is that in IE, the editor will load the first time the page is called. After that, though, users only get an empty box. Once the page is refreshed, they can call it again, but like before, only once. This issue is not present in Firefox.
How do I correct this?