bug fixes

This commit is contained in:
JT Smith 2005-03-07 19:38:17 +00:00
parent d7d6819204
commit 88c42da7a0
14 changed files with 59 additions and 23 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 680 B

After

Width:  |  Height:  |  Size: 1,023 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before After
Before After

View file

@ -18,6 +18,7 @@ function toggleTab(i){
document.getElementById('tab'+i).className = 'tab tabActive';
document.getElementById('tab'+i).onmouseover = '';
document.getElementById('tab'+i).onmouseout = '';
fixFckEditor();
}
}
@ -25,4 +26,32 @@ function initTabs () {
toggleTab(1);
}
function fixFckEditor() {
if ( !document.all && FCKeditorAPI) {
for ( var o in FCKeditorAPI.__Instances ) {
var oEditor = FCKeditorAPI.__Instances[ o ] ;
if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG ) {
oEditor.SwitchEditMode() ;
//oEditor.SwitchEditMode() ;
}
}
}
}
function fixFckEditor1 () {
for (i=0;i<document.forms.length; i++) {
for (j=0; j< document.forms[i].elements.length; j++) {
if (document.forms[i].elements[j].type == "textarea") {
if ( !document.all ) {
var oEditor = FCKeditorAPI.GetInstance( document.forms[i].elements[j].name ) ;
if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG ) {
oEditor.SwitchEditMode() ;
// oEditor.SwitchEditMode() ;
}
}
//alert("found a text area - value = " + document.forms[i].elements[j].value);
}
}
}
}