CKeditor & MediaWiki 1.15 or 1.16 beta

Does any body have successfully integrated ckeditor 3.x with mediawiki

I followed the instructions for fckeditor, thinking that this might be the same for ckeditor, but that doesn't help.

it either does not load the wiki at all, or it does not load ckeditor.

any thoughts / suggestions or step by step to do this would be very helpful.

Thanks and Regards

+3
source share
2 answers

I know that your question is old, but I have long wanted to integrate CKEditor, and there is very little information on the network about this! For anyone who might look:

I found this on MediaWiki see FCKEditor page WYSIWYG_editor :

Halo Ontoprise MediaWiki CKEditor: : WYSIWYG.

MediaWiki (v.1.16), !

+1

, MW:
http://www.mwusers.com/forums/showthread.php?16957-CKEditor-with-MediaWiki

ckeditor mediawiki:

ckeditor mediawiki 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; 
}

- , /. (, ).

0

Source: https://habr.com/ru/post/1748122/


All Articles