code/pages/WikiPage.php
public function getCMSFields() {
		$fields = parent::getCMSFields();

		$options = $this->getEditorTypeOptions();
		$fields->addFieldToTab('Root.Behaviour', new OptionsetField('EditorType', _t('WikiPage.EDITORTYPE', 'Editor Type'), $options));
		
		// if we're not using the HTML editor type, we should just use a textarea edit field
		$formatter = $this->getFormatter();
		if ($formatter) {
			$formatter->updateCMSFields($fields);
		}
		
		return $fields;
	}
public function getCMSFields() {
		$fields = parent::getCMSFields();

		$options = $this->getEditorTypeOptions();
		$fields->addFieldToTab('Root.Behaviour', new OptionsetField('EditorType', _t('WikiPage.EDITORTYPE', 'Editor Type'), $options));
		
		// if we're not using the HTML editor type, we should just use a textarea edit field
		$formatter = $this->getFormatter();
		if ($formatter) {
			$formatter->updateCMSFields($fields);
		}
		
		return $fields;
	}
public function getCMSFields ( ) { $ fields = parent :: getCMSFields ( ) ; $ options = $ this -> getEditorTypeOptions ( ) ; $ fields -> addFieldToTab ( 'Root.Behaviour' , new OptionsetField ( 'EditorType' , _t ( 'WikiPage.EDITORTYPE' , 'Editor Type' ) , $ options ) ) ; // if we're not using the HTML editor type, we should just use a textarea edit field $ formatter = $ this -> getFormatter ( ) ; if ( $ formatter ) { $ formatter -> updateCMSFields ( $ fields ) ; } return $ fields ; }
Get the CMS fields
@see sapphire/core/model/SiteTree#getCMSFields()
Get the CMS fields