Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#3200 closed Bug (invalid)

MediaWiki Trial Run (CKEditor)

Reported by: Eruc Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0 Beta 2
Keywords: Cc: Eruc

Description

I setup CKEditor in the following manner and it works as expected except... the Style, Font, etc drop-downs dont work? Any recommendations.


$wgHooks['EditPage::showEditForm:initial'][] 	= 'showEditForm';
function showEditForm($form){
	global $wgOut;
	$wgOut->addScriptFile( '/mediawiki/extensions/ckeditor/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;
}

Change History (4)

comment:1 Changed 16 years ago by Eruc

Milestone: CKEditor 3.x
Summary: MediaWiki Trial Run (CKEdior)MediaWiki Trial Run (CKEditor)
Version: CKEditor 3.0 Beta 2

comment:2 Changed 16 years ago by Eruc

Cc: Eruc added

comment:3 Changed 15 years ago by Frederico Caldeira Knabben

Resolution: invalid
Status: newclosed

Please use our Forums for discussions and support.

comment:4 Changed 15 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy