Dear all,
I try to use SetHTML serveral times in a short period, in IE7, it will stop to set content after the first time(but it works in FF).
I try to use your offical exampel sample08.html and change the code like this
function SetContents()
{
// Get the editor instance that we want to interact with.
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
// Set the editor contents (replace the actual one).
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.1' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.2' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.3' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.4' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.5' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.6' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.7' ) ;
}
in IE 7, it will show 'This is the <b>new content<\/b> I want in the editor.1'
but in FF it will show 'This is the <b>new content<\/b> I want in the editor.7'
Regards,
Victor
I try to use SetHTML serveral times in a short period, in IE7, it will stop to set content after the first time(but it works in FF).
I try to use your offical exampel sample08.html and change the code like this
function SetContents()
{
// Get the editor instance that we want to interact with.
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
// Set the editor contents (replace the actual one).
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.1' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.2' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.3' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.4' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.5' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.6' ) ;
oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.7' ) ;
}
in IE 7, it will show 'This is the <b>new content<\/b> I want in the editor.1'
but in FF it will show 'This is the <b>new content<\/b> I want in the editor.7'
Regards,
Victor
Re: SetHTML bug???
FCK.EditorDocument.detachEvent("onselectionchange", Doc_OnSelectionChange ) ;
in the following functions.
Does any one have any solution???
Regards,
Victor
Re: SetHTML bug???