Here is a snippet of where the editor is created, pretty standard
- Code: Select all
<span id='content_editor' style='<?php echo ($f_info['is_editable'] != 1 ? "display:none" : ""); ?>'>
<?php
include('FCKeditor/fckeditor.php');
$f_editor = new FCKeditor('e_file_content') ;
$f_editor->BasePath = './FCKeditor/';
$f_editor->Value = $f_info['file_content'];
$f_editor->Width = '500';
$f_editor->Create();
?>
</span>
The javascript handler is as follows
- Code: Select all
function file_content_toggle(){
var content_title = get_obj('content_editor_title');
var content_editor = get_obj('content_editor');
if(document.file_edit.is_editable.checked){
content_title.style.display='block';
content_editor.style.display='block';
document.file_edit.e_file_content.focus();
}
else{
content_title.style.dispay='none';
content_editor.style.display='none';
}
}
the get_obj call is basically like document.getElementById
I threw that document.file_edit.e_file_content.focus() call in there just to see if it would help...to no avail
Any help would be greatly appreciated[/quote]