What is the right way to produce a link to an existing article within a parser function? I tried Linker::link() embedded within a bunch of Xml::openElement and Xml::closeElement calls, and the "A" tag got escaped. So this PHP code:
Xml::openElement('li') . $linker->link($title) . Xml::closeElement('li')
rendered as escaped like this:
<ul><li> <a href=http://mywiki/wiki/articlename%3E; </li></ul>
etc.
Maybe this is because parser functions return wikitext and Linker::link() returns HTML...?
I don't want to produce a manual "A" tag with Xml::element('a') because I need the rest of the intelligence of Linker::link(), like redlinking for nonexistent articles.
Thanks, DanB
Hi,
Could anyone pls let me know the complete steps to be done to have CK Editor instead of FCK Editor with Media Wiki (ver 1.5.6). I tried installing the CK Editor (ver 3.2.1) under $IP/extensions directory i.e. $IP/extensions/ckeditor and modified the LocalSettings.php to point to the ckeditor --> require_once("$IP/extensions/ckeditor/ckeditor.php"). But while editing pages, the ckeditor is not showing up.
Any help or suggestions will be greatly appreciated.
Thanks, Ganesan
Ganesan Sethuraman wrote:
Hi,
Could anyone pls let me know the complete steps to be done to have CK Editor instead of FCK Editor with Media Wiki (ver 1.5.6). I tried installing the CK Editor (ver 3.2.1) under $IP/extensions directory i.e. $IP/extensions/ckeditor and modified the LocalSettings.php to point to the ckeditor --> require_once("$IP/extensions/ckeditor/ckeditor.php"). But while editing pages, the ckeditor is not showing up.
Any help or suggestions will be greatly appreciated.
Thanks, Ganesan
Upgrade to the latest mediawiki, or stay with old extensions. I don't think any modernly designed extension will play well with such an old mediawiki. Things have changed in the last 5 years.
Hi,
I am using Media Wiki 1.15.2 version and not the one mentioned in my earlier mail. Sorry for the typo error. Pls let me know how to integrate CKEditor with this version of mediaWiki.
Thanks, Ganesan
________________________________ From: Platonides Platonides@gmail.com To: mediawiki-l@lists.wikimedia.org Sent: Wed, April 21, 2010 4:10:05 PM Subject: Re: [Mediawiki-l] Integrating MediaWiki with CK Editor
Ganesan Sethuraman wrote:
Hi,
Could anyone pls let me know the complete steps to be done to have CK Editor instead of FCK Editor with Media Wiki (ver 1.5.6). I tried installing the CK Editor (ver 3.2.1) under $IP/extensions directory i.e. $IP/extensions/ckeditor and modified the LocalSettings.php to point to the ckeditor --> require_once("$IP/extensions/ckeditor/ckeditor.php"). But while editing pages, the ckeditor is not showing up.
Any help or suggestions will be greatly appreciated.
Thanks, Ganesan
Upgrade to the latest mediawiki, or stay with old extensions. I don't think any modernly designed extension will play well with such an old mediawiki. Things have changed in the last 5 years.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org