开发者

CKeditor & MediaWiki 1.15 or 1.16 beta

Has any body successfully integrated ckeditor 3.x with mediawiki

I have followed the instructions for fckeditor, thinking it may be the same for ckeditor too, but that doesn't helps.

it either doesn't loads the wiki at all or doesn't loads the ckeditor.

any thought开发者_StackOverflows / suggestions or a step by step to do this would be very helpful.

Thanks & Regards


I know your question is old but I've been looking to integrate CKEditor for a while now and there is very little information concerning this on the net! For anyone else who might be looking:

I found this on MediaWiki in FCKEditor section of the WYSIWYG_editor page:

Ontoprise's halo team is maintaining a production quality integration of MediaWiki and CKEditor: Extension:WYSIWYG.

I installed it on our MediaWiki (v.1.16) and so far it works like a charm!


I've been looking into this as well, and found this from the MW users site:
http://www.mwusers.com/forums/showthread.php?16957-CKEditor-with-MediaWiki

To use ckeditor with mediawiki:

download and unpack the source ckeditor package place it in the extensions directory of mediawiki add the following lines to the end of mediawiki LocalSettings.php:

require_once("$IP/extensions/ckeditor/ckeditor.php");
$wgHooks['EditPage::showEditForm:initial'][] = 'showEditForm';
function showEditForm($form) {
   global $wgOut; 
   $wgOut->addScriptFile('/extensions/ckeditor/ckeditor.js' );
   $script = "<script type=\"text/javascript\"> window.onload = function() {
       CKEDITOR.replace( 'wpTextbox1' ); }; if ( window.removeEventListener )
       window.removeEventListener( 'load', mwSetupToolbar, false ) ; else if
       ( window.detachEvent ) window.detachEvent( 'onload', mwSetupToolbar )
       </script>";
   $wgOut->addHTML($script);
   return true; 
}

If someone is able to confirm this works or not, please comment/reply. (Apologies that I can't fully confirm this solution at present).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜