FCKEditor: WYSIWYG editor for MediaWiki
IMPORTANT: As of April 2008, this page is OUTDATED. FCKeditor is now a regular extension for MediaWiki and there is no need for using a patch. For more details see this post.
Update: Please take a look at this page for the list of all versions of the patch (including the newest!).
Please, read the comments and other related pages before you decide to use this extension! In brief, it is not stable yet!
If you don’t want to read the whole article, download and install MediaWiki 1.10.1, download the patch which I prepared, copy it into your installed directory and add into your LocalSettings.php the line ‘require_once(“extensions/FCKeditor/FCKeditor.php”);’. You may see the full procedure on FCKeditor site dedicated to MediaWiki. Note that you still shouldn’t use it for public wikis (while it is working just fine on my local wiki).
A month or two ago I was positively surprised with Wikia‘s new look. However, it was just CSS and small PHP changes, possibly all of them using some extensions. But it was good to see that MediaWiki may look completely different.
Then I realized one more thing. They have WYSIWYG editor! Last time I was reading something about that issue, it was written something like “it is still too complex to parse wiki syntax”.
So, I tried to investigate the case 🙂
This was the time when I started to fill my SourceForge project with my older (but sometimes useful) software. While SourceForge has a number of disadvantages and I would, for sure, prefer Savannah because of ethical reasons, one thing is very true: SourceForge makes life much easier to developers.
I was amazed when I saw that they are giving now a wiki, too. And their wikis have WYSIWYG editor. As far as I was able to understand, their wikis are hosted by Wikispaces. So, I went there to see what is that wiki engine.
Wow, they developed blog-like (but not bliki!) providing. And it is a very good concept.
So, what is their wiki engine? Hm… Didn’t find… OK, I know for a good place to find it. Of course, it is Wikipedia. There is very useful comparison of wiki farms. Wikispaces, Wikispaces…
Wiki engine: custom. ARGHHH!
Even this is completely legal according to the free software licenses, in the age of moving software toward server-client model it is hardly to say fair. BTW, because of such issues I like Reciprocal Public License. At least, FSF should find some way to deal with such issues. If GPL 4.0 woudn’t think about such cases, we will have again world full of proprietary software which excuse is perfectly legal. Something like “if you make non-trivial changes and changes to your [GPL’d] software and your changed software is publicly used, you have to make your changes available”. (Because of that I like, for example, WordPress. While WordPress is making money on their blog service, they are giving back their software to the community — even WordPress MU is available.)
Then I went to MediaWiki site. The only relevant page which I was able to see was this page (I think that the version is right): there are some concepts, a lot of thoughts, but nothing which may be used (at least on my local wiki which I am using as my office suite).
At this moment I started to think a lot of bad things about Jimmy Wales: “So, you went to the close source! I can’t believe! What were you talking about even last months! …”
So, I went to #wikia channel on irc.freenode.net to see what is going on. Someone of Wikia’s admins told me that it is just an extension. Huh? OK. At least it is good that I was wrong about Jimmy. And because of that I was confused enough and didn’t ask what is that extension.
And I forgot all of this because I was thinking that WYSIWYG editor for MediaWiki is not stable yet.
Yesterday I was looking for wiki related resources for Wiki World. This search has a goal to find relevant enough pages which would be linked from the Wiki World site.
And I came to the page Comparison of wiki software. Inside of the (present) section “Features 2” it is stated that there was some experimental editor for 1.5.3 MediaWiki, but FCKEditor, too. (Maybe I saw the last time the same information, but it was a little bit confusing: Is FCKEditor also for MW 1.5.3?)
I went there and it is almost possible to say that the rest is history. I am just a little bit surprised about the fact that no one speaks loudly about the fact that MediaWiki has working WYSIWYG editor! Maybe still in the beta phase, but it is completely useful for small wikis.
The problem is that it is not possible to download the patch and install it, but it is necessary to try a couple of times with different methods. MediaWiki extension page is outdated. Even on the mediawiki.fckeditor.net site they state that their repository contains MediaWiki 1.10.1 + extension + patch,but patch doesn’t exist and after installation you are not able to edit your MediaWiki pages. The only valid manual is the FCKeditor integration guide.
So, I made a full patch.
- Check how the editor looks like on mediawiki.fckeditor.net’s Sandox.
- Don’t install the extension on the public wikis yet! (However, Wikia, as well as my local wiki, are working just fine.)
- Download and install MediaWiki 1.10.1 or update your MediaWiki to this version.
- Download patch which I prepared and unpack it inside of your installation directory.
- Add line ‘require_once(“extensions/FCKeditor/FCKeditor.php”);’ into your LocalSettings.php.
- Enjoy 🙂