protected function onBeforeWrite() {
		parent::onBeforeWrite();

		// Changes in 2.4 mean that $this->Content can now become polluted with UTF-8 HTML entitised garbage
		// we'll leave this legacy conversion in for now?
		$this->Content = str_replace('&#13;', '', $this->Content);

		$formatter = $this->getFormatter();
		$formatter->analyseSavedContent($this);

		// set a lock expiry in the past if there's not one already set
		if (!$this->WikiLockExpiry) {
			$this->WikiLockExpiry = date('Y-m-d H:i:s');
		}

		// Make sure to set the last editor to the current user
		if (Member::currentUser()) {
			$this->WikiLastEditor = Member::currentUser()->Email;
		}
	}