Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you easily configure MediaWiki to accept full HTML/CSS or even JS content?

Tags:

wiki

mediawiki

I'd like to create a technical wiki site and it requires the full use of HTML/CSS and maybe Javascript when editing a page. Is this something I can easily configure in MediaWiki? If not, is there any other wiki software that you'd recommend?

Thanks!

like image 781
pixelfreak Avatar asked Jul 20 '09 23:07

pixelfreak


1 Answers

You can enable raw HTML support by setting $wgRawHtml = true; in your LocalSettings.php:

http://www.mediawiki.org/wiki/Manual:$wgRawHtml

However, as noted above this is rather insecure for a public site. (If locked down to registered usage only by known folks it's ok -- but you need to trust your users.)

There are some links on that manual page to extensions organized around letting you put specific known bits of HTML/JS in your output code as well, which may or may not fit your needs better.

like image 125
Brion Avatar answered Nov 03 '22 02:11

Brion