// This is a hack for Gecko... it stops editing when the editor is hidden. if ( !document.all ) { var oEditor = FCKeditorAPI.GetInstance( 'FCKeditor1' ) ; var oEditor2 = FCKeditorAPI.GetInstance( 'FCKeditor2' ) ;
I am having trouble with this same error. I posted a bug report for it, but I traced it down to the
oEditor2.EditorDocument.designMode = "on" ;
call in the fck code. I Believe it is a bug in Firefox, not with fck editor itself. That designMode call is a Gecko function and it is throwing an exception.
One thing I did find out is that you can reload the broken editor with this code, and it will work again:
RE: hidden div in gekko
function Show()
{
document.getElementById('eEditor').style.display = '' ;
document.getElementById('eNoEditor').style.display = 'none' ;
// This is a hack for Gecko... it stops editing when the editor is hidden.
if ( !document.all )
{
var oEditor = FCKeditorAPI.GetInstance( 'FCKeditor1' ) ;
var oEditor2 = FCKeditorAPI.GetInstance( 'FCKeditor2' ) ;
oEditor.EditorDocument.designMode = "off" ;
oEditor.EditorDocument.designMode = "on" ;
oEditor.Focus() ;
oEditor.ToolbarSet.RefreshItemsState() ;
oEditor2.EditorDocument.designMode = "off" ;
oEditor2.EditorDocument.designMode = "on" ;
oEditor2.Focus() ;
oEditor2.ToolbarSet.RefreshItemsState() ;
}
}
RE: hidden div in gekko
RE: hidden div in gekko
http://publicdemo.dev.lateralsystems.ne ... e_demo.htm
RE: hidden div in gekko
(NOW working...) sorry for the typo
RE: hidden div in gekko
http://localhost/path/to/file.php
RE: hidden div in gekko
oEditor2.EditorDocument.designMode = "on" ;
call in the fck code. I Believe it is a bug in Firefox, not with fck editor itself. That designMode call is a Gecko function and it is throwing an exception.
One thing I did find out is that you can reload the broken editor with this code, and it will work again:
var oEditor = FCKeditorAPI.GetInstance(fckEditorName);
document.getElementById(fckEditorName).value = oEditor.GetXHTML( true );
document.getElementById(fckEditorName+"___Frame").src = document.getElementById(fckEditorName+"___Frame").src;
RE: hidden div in gekko