Thread:Extension talk:WYSIWYG/Patch for CKeditor.body.php to make it work in MW 1.18

[josm@localhost extensions]$ diff -w -c 1 WYSIWYG/CKeditor.body.php extensions/WYSIWYG/CKeditor.body.php diff: extra operand `extensions/WYSIWYG/CKeditor.body.php' diff: Try `diff --help' for more information. [josm@localhost extensions]$ diff -w -C 1 WYSIWYG/CKeditor.body.php extensions/WYSIWYG/CKeditor.body.php --- extensions/WYSIWYG/CKeditor.body.php       2011-12-01 16:51:48.000000000 +0100 public static function onParserBeforeStrip( &$parser, &$text, &$stripState ) { !              $text = $parser->replaceVariables( $text ); return true; --- 132,134        public static function onParserBeforeStrip( &$parser, &$text, &$stripState ) { !              $text = $parser->strip( $text, $stripState ); return true;
 * WYSIWYG/CKeditor.body.php  2012-01-20 18:07:57.000000000 +0100
 * 132,134 ****
 * 132,134 ****
 * 216,221 ****
 * 216,221 ****

public function onCustomEditor( $article, $user ) { !                global $wgRequest, $wgUseExternalEditor;

!                $action = $wgRequest->getVal( 'action', 'view' );

--- 216,222

+       public function onCustomEditor( $article, $user ) { !              global $wgRequest, $mediaWiki;

!              $action = $mediaWiki->getVal( 'Action' );

$oldid = $wgRequest->getVal( 'oldid' ); !                if( !$wgUseExternalEditor || $action == 'submit' || $internal ||                  $section || $oldid || ( !$user->getOption( 'externaleditor' ) && !$external ) ) { $editor = new CKeditorEditPage( $article ); !                        $editor->edit; !                        return false; !                } else { !                        return true; }         } --- 226,238                 $oldid = $wgRequest->getVal( 'oldid' ); !              if( !$mediaWiki->getVal( 'UseExternalEditor' ) || $action == 'submit' || $internal ||                $section || $oldid || ( !$user->getOption( 'externaleditor' ) && !$external ) ) { $editor = new CKeditorEditPage( $article ); !                      $editor->submit; !              } elseif( $mediaWiki->getVal( 'UseExternalEditor' ) && ( $external || $user->getOption( 'externaleditor' ) ) ) { !                      $mode = $wgRequest->getVal( 'mode' ); !                      $extedit = new ExternalEdit( $article, $mode ); !                      $extedit->edit; } + +              return false; }
 * 225,234 ****
 * 225,234 ****