Différences entre les versions de « Fichier:FCKeditor.zip »
(Patching MediaWiki (1.10 - 1.12)) |
|||
(2 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 20 : | Ligne 20 : | ||
MediaWiki 1.10 - 1.12 users have to add this hook manually. | MediaWiki 1.10 - 1.12 users have to add this hook manually. | ||
In includes/EditPage.php, at the end of showEditForm function, find this code: | In <span style="background-color: rgb(255, 255, 0);">includes/EditPage.php</span>, at the end of showEditForm function, find this code: | ||
<pre>$wgOut->addHtml( wfHidden( 'wpAutoSummary', $autosumm ) ); | <pre>$wgOut->addHtml( wfHidden( 'wpAutoSummary', $autosumm ) ); | ||
Ligne 29 : | Ligne 29 : | ||
if ( $this->isConflict && wfRunHooks( 'EditPageBeforeConflictDiff', array( &$this, &$wgOut ) )) { | if ( $this->isConflict && wfRunHooks( 'EditPageBeforeConflictDiff', array( &$this, &$wgOut ) )) { | ||
</pre> | </pre> | ||
=== SanitizerAfterFixTagAttributes === | === SanitizerAfterFixTagAttributes === | ||
Ligne 36 : | Ligne 37 : | ||
MediaWiki 1.10 - 1.12 users have to add this hook manually. | MediaWiki 1.10 - 1.12 users have to add this hook manually. | ||
In includes/Sanitizer.php, at the end of fixTagAttributes function, find this code: | In <span style="background-color: rgb(255, 255, 0);">includes/Sanitizer.php</span>, at the end of fixTagAttributes function, find this code: | ||
<pre>return count( $attribs ) ? ' ' . implode( ' ', $attribs ) : ''; | <pre>return count( $attribs ) ? ' ' . implode( ' ', $attribs ) : ''; | ||
</pre> | </pre> |
Version actuelle datée du 31 août 2008 à 13:45
Guide officiel
Pour le fichier LocalSettings.php
require_once( "extensions/FCKeditor/FCKeditor.php" ); $wgDefaultUserOptions['riched_disable'] = 0; $wgDefaultUserOptions['riched_use_toggle'] = 1; $wgDefaultUserOptions['riched_start_disabled'] = 1; $wgDefaultUserOptions['riched_use_popup'] = 1; $wgDefaultUserOptions['riched_toggle_remember_state'] = 1;
Patching MediaWiki (1.10 - 1.12)
Adding EditPageBeforeEditConflict hook
In the latest MediaWiki (1.13, SVN version), new hook EditPageBeforeEditConflict is already available. This hook is required to fix WikiText/HTML problems when conflict occurs.
MediaWiki 1.10 - 1.12 users have to add this hook manually.
In includes/EditPage.php, at the end of showEditForm function, find this code:
$wgOut->addHtml( wfHidden( 'wpAutoSummary', $autosumm ) ); if ( $this->isConflict ) {
and replace with:
$wgOut->addHtml( wfHidden( 'wpAutoSummary', $autosumm ) ); if ( $this->isConflict && wfRunHooks( 'EditPageBeforeConflictDiff', array( &$this, &$wgOut ) )) {
SanitizerAfterFixTagAttributes
In the latest MediaWiki (1.13, SVN version), new hook SanitizerAfterFixTagAttributes is already available. This hook is required to keep templates defining tag attributes.
MediaWiki 1.10 - 1.12 users have to add this hook manually.
In includes/Sanitizer.php, at the end of fixTagAttributes function, find this code:
return count( $attribs ) ? ' ' . implode( ' ', $attribs ) : '';
and add this before the last line (with return statement):
if ( !wfRunHooks( 'SanitizerAfterFixTagAttributes', array( $text, $element, &$attribs ) ) ) { return ''; }
at the end you should have:
if ( !wfRunHooks( 'SanitizerAfterFixTagAttributes', array( $text, $element, &$attribs ) ) ) { return ''; } return count( $attribs ) ? ' ' . implode( ' ', $attribs ) : '';
Historique du fichier
Cliquer sur une date et heure pour voir le fichier tel qu'il était à ce moment-là.
Date et heure | Dimensions | Utilisateur | Commentaire | |
---|---|---|---|---|
actuel | 30 août 2008 à 21:05 | (1,12 Mio) | Dieudo (discussion | contributions) |
Vous ne pouvez pas remplacer ce fichier.
Utilisation du fichier
Aucune page n’utilise ce fichier.