Extension:WYSIWYG

The WYSIWYG extension enables a more intuitive editing of pages on a MediaWiki-based site. When this extension is installed, the tab 'Edit' in the command bar on top of every page leads directly in the wysiwyg editing mode.

It uses a special version of the CKeditor that outputs wiki text rather than the usual HTML that caused problems for MediaWiki integrations in the past.

Features of the WYSIWYG extension
The WYSIWYG extension supports the following:
 * importing / insertion of tables, images, formatting stuff like enumerations, font style etc. as well as links
 * real copy and paste without postprocessing
 * working with the known Word-like toolbar arrangement
 * using special characters
 * real time spell-checking with recommender function
 * undo/redo and find and replace functionality

Download

 * WYSIWYG (dependencies, download, help)

NOTE!

Installation on Mediawiki 1.17+
-Quick note! When you extract the zip file you get a bunch of stuff that doesn't seem to be needed, copy the WYSIWSG folder from the extracted files into the extensions directory, then copy the code from below into LocalSettings.php Otherwise everything seems to break.

MW 1.22 and #6 bundle of Download -section
For more information about proper settings of LocalSettings.php etc. with MW 1.22.x and #6 bundle, see README.md (on github -page).

Customize the toolbar
Everything is explained here.

Disable for some namespaces
To disable the rich editor for some namespaces (for example, here Mediawiki), add the following code in your LocalSettings.php :

$wgFCKEditorExcludedNamespaces = array(NS_MEDIAWIKI);

Style the content of the editor
Two solutions : config.contentsCss = 'path/to/your/file.css';
 * 1) Edit the file ckeditor/contents.css
 * 2) Point to the css file of your choice, adding this line to ckeditor/config.js :

Improvements
Modifications (#5 and #6 refer to Download section above)
 * One button to add a reference (footnote) (incl. in #5 and #6)
 * One button to add the bloc (incl. in #5 and #6)
 * $$$$ tags aren't destroyed anymore by the parser (incl. in #5 and #6)
 * Fixed Images dialog (parameters) (incl. in #5 and #6)
 * Dialog to handle categories (incl. in #6)

Todo : Possible customizations :
 * Make a dialog to handle math formulas
 * [//en.wikipedia.org wikipedia] is considered as internal link
 * Autofilling of the link dialog with selected text, and autosearch (incl. in #5)


 * One button to add the ... in one click when text link is target link (incl. in #5)
 * Disable search for images in link dialog

Known incompatibilities with extensions

 * May not work if you use the FileLink extension
 * May not work with the HoverGallery extension

Development Repositories
If anyone is interested in developing the extension further, there are three known repositories created by users:


 * "WYSIWYG" wikimedia.org repository from Wingsofcourage (#1 of Download section above)
 * "CKEditor in MediaWiki" github.com repository from Ciges (#2 of Download section above)
 * Mediawiki-wysiwyg github.com repository (#6 of Download section above)

See the discussion/talk page to get in touch with the owners of these repositories.