Extension:TagCorrection
|
|
This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version Extension:FCKeditor (Official). |
{{Extension |name = TagCorrection |status = beta |type = page action |author = Johannes Perl |username = Jperl |image = |version = 0.1.2 (2008-11-25) |update = |mediawiki = 1.10.1+ |download = TagCorrection.zip |readme = |changelog = |description = beeing able to use tags like <source>, Not a valid URL: with MediaWiki+FCKeditor |parameters = |rights = |example = }}
== 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.
== Changelog ==
Version 0.1.2: Self closing tags like <references /> are now supported.
== Usage ==
== Installation ==
=== Changes to LocalSettings.php ===
Add the following code to the end:
<source lang="php">
- for fck editor tag correction
require_once("$IP/extensions/TagCorrection.php"); </source>
=== Code ===
Download the file [http://www.perlproductions.at/downloads/TagCorrection.zip TagCorrection.zip] and unzip it in your extensions directory:
=== 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.
- To have self closing tags corrected enter them into $wgSelfClosingTagnames.
- 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".
=== See also ===
[http://mediawiki.fckeditor.net MediaWiki+FCKeditor]<br /> [[Extension:FileLinkCorrection]]
== TODO ==
- Add more tags
- Check if other tags should be supported
[[Category:FCKeditor extensions]]
