Extension:TagCorrection

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
TagCorrection

Release status: beta

Implementation Page action
Description beeing able to use tags like <source>, <rss> with MediaWiki+FCKeditor
Author(s) Johannes Perl (Jperl Talk)
Version 0.1.1
MediaWiki 1.10.1
Download TagCorrection.zip

Contents

[edit] What can this extension do?

This extension helps to be able to use MediaWiki+FCKeditor with plugins like syntax highlighting etc. using <tags>. The extensions corrects for example &lt;source lang="php"&gt; to <source lang="php">. So with this extension you can paste code into the WYSIWYG editor. Actually reediting isn't possible for some tags. I will try to resolve this issue.

[edit] Usage

[edit] Installation

[edit] Changes to LocalSettings.php

add the following code to the end:

#for fck editor tag correction
require_once("$IP/extensions/TagCorrection.php");

[edit] Code

Download the file TagCorrection.zip and unzip it in your extensions directory:

[edit] Parameter

To add more tags to be corrected by this extension, add the tagname to $wgTagnames.

To have special HTML Codes replaced within a tag, add the tagname to $wgTagnamesHtmlReplace.

Any other text you want to have replaced with all tags listed in $wgTagnamesHtmlReplace, have to be added in $wgHtmlCodeReplace in the form "code" => "replacement".

[edit] See also

MediaWiki+FCKeditor
Extension:FileLinkCorrection

[edit] TODO

  • Convince my boss not to use MediaWiki+FCKeditor
  • Convince FCKeditor developers to built the functionality into their editor and make this extension unnecessary
  • Add more tags
  • Check my regulary expression if its ok
Personal tools