#1385: FCKeditor Converts to HTML on "Edit Conflict"
--------------------------------------------+-------------------------------
Reporter: Stephen R | Owner:
Type: Bug | Status: closed
Priority: Normal | Milestone:
Component: Project : MediaWiki+FCKeditor | Version: SVN
Resolution: fixed | Keywords: Confirmed HasPatch
--------------------------------------------+-------------------------------
Changes (by wwalc):
* status: new => closed
* resolution: => fixed
Comment:
Fixed with [1929]. This will probably work with MediaWiki 1.12.1.
Earlier versions of MediaWiki have to be manually patched (new hook is
required - see above):
For example in MW 1.11, in includes/EditPage.php, at the end of
showEditForm function, find this code:
{{{
$wgOut->addHtml( wfHidden( 'wpAutoSummary', $autosumm ) );
if ( $this->isConflict ) {
$wgOut->addWikiText( '==' . wfMsg( "yourdiff" ) . '==' );
}}}
and replace with:
{{{
$wgOut->addHtml( wfHidden( 'wpAutoSummary', $autosumm ) );
if ( $this->isConflict && wfRunHooks( 'EditPageBeforeConflictDiff', array(
&$this, &$wgOut ) )) {
$wgOut->addWikiText( '==' . wfMsg( "yourdiff" ) . '==' );
}}}
--
Ticket URL: <http://dev.fckeditor.net/ticket/1385#comment:8>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac