Thread:Project:Support desk/ckeditor

i have added ckeditor with this in LocalSettings

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

now if i click to edit button i use the ckeditor editor, there is a method to have 2 button and use both old editor (the default one) and ckeditor?

2nd question when i save a page with ckeditor the contents menu is not created on page with some title item,

i mean this.. Contents

1 Characteristics 1.1 Editing wiki pages 1.2 Navigation 1.3 Linking and creating pages 1.4 Searching 2 History 3 Implementations