Index: trunk/extensions/FCKeditor/FCKeditor.body.php |
— | — | @@ -462,7 +462,7 @@ |
463 | 463 | |
464 | 464 | if ( !( typeof(oDoc.FCK) == "undefined" ) && !( typeof(oDoc.FCK.EditingArea) == "undefined" ) ){ |
465 | 465 | txtarea = oDoc.FCK.EditingArea.Textarea; |
466 | | - } elseif( oDoc.editform ){ |
| 466 | + } else if( oDoc.editform ){ |
467 | 467 | // if we have FCK enabled, behave differently... |
468 | 468 | if ( showFCKEditor & RTE_VISIBLE ){ |
469 | 469 | SRCiframe = oDoc.getElementById( 'wpTextbox1___Frame' ); |
— | — | @@ -498,7 +498,7 @@ |
499 | 499 | // save window scroll position |
500 | 500 | if ( oDoc.documentElement && oDoc.documentElement.scrollTop ) |
501 | 501 | var winScroll = oDoc.documentElement.scrollTop; |
502 | | - elseif ( oDoc.body ) |
| 502 | + else if ( oDoc.body ) |
503 | 503 | var winScroll = oDoc.body.scrollTop; |
504 | 504 | |
505 | 505 | // get current selection |
— | — | @@ -519,10 +519,10 @@ |
520 | 520 | // restore window scroll position |
521 | 521 | if ( oDoc.documentElement && oDoc.documentElement.scrollTop ) |
522 | 522 | oDoc.documentElement.scrollTop = winScroll; |
523 | | - elseif ( oDoc.body ) |
| 523 | + else if ( oDoc.body ) |
524 | 524 | oDoc.body.scrollTop = winScroll; |
525 | 525 | |
526 | | - } elseif ( txtarea.selectionStart || txtarea.selectionStart == '0' ){ // Mozilla |
| 526 | + } else if ( txtarea.selectionStart || txtarea.selectionStart == '0' ){ // Mozilla |
527 | 527 | |
528 | 528 | // save textarea scroll position |
529 | 529 | var textScroll = txtarea.scrollTop; |
— | — | @@ -536,7 +536,7 @@ |
537 | 537 | if( !selText ){ |
538 | 538 | selText = sampleText; |
539 | 539 | isSample = true; |
540 | | - } elseif( selText.charAt(selText.length - 1) == ' ' ){ //exclude ending space char |
| 540 | + } else if( selText.charAt(selText.length - 1) == ' ' ){ //exclude ending space char |
541 | 541 | selText = selText.substring(0, selText.length - 1); |
542 | 542 | tagClose += ' '; |
543 | 543 | } |
— | — | @@ -560,7 +560,7 @@ |
561 | 561 | if( !selText ) { |
562 | 562 | selText = sampleText; |
563 | 563 | isSample = true; |
564 | | - } elseif( selText.charAt(selText.length - 1) == ' ' ) { //exclude ending space char |
| 564 | + } else if( selText.charAt(selText.length - 1) == ' ' ) { //exclude ending space char |
565 | 565 | selText = selText.substring(0, selText.length - 1); |
566 | 566 | tagClose += ' ' |
567 | 567 | } |
— | — | @@ -591,7 +591,7 @@ |
592 | 592 | // Remove the mwSetupToolbar onload hook to avoid a JavaScript error with FF. |
593 | 593 | if ( window.removeEventListener ) |
594 | 594 | window.removeEventListener( 'load', mwSetupToolbar, false ); |
595 | | - elseif ( window.detachEvent ) |
| 595 | + else if ( window.detachEvent ) |
596 | 596 | window.detachEvent( 'onload', mwSetupToolbar ); |
597 | 597 | mwSetupToolbar = function(){ return false ; }; |
598 | 598 | |