From d83d14837120a4c98a521109c4314c1263ff8282 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Thu, 22 Oct 2009 13:54:36 +0000 Subject: [PATCH] Add some hook HTML injection points to EditForm, between the Copyright warning and the content, and after the preview content. --- includes/EditPage.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 282307cc68..7d4fccd986 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -83,6 +83,8 @@ class EditPage { public $editFormTextAfterWarn; public $editFormTextAfterTools; public $editFormTextBottom; + public $editFormTextAfterContent; + public $previewTextAfterContent; /* $didSave should be set to true whenever an article was succesfully altered. */ public $didSave = false; @@ -106,6 +108,8 @@ class EditPage { $this->editFormTextAfterWarn = $this->editFormTextAfterTools = $this->editFormTextBottom = + $this->editFormTextAfterContent = + $this->previewTextAfterContent = $this->mPreloadText = ""; } @@ -1547,6 +1551,8 @@ END END ); $this->showTextbox1( $classes ); + + $wgOut->addHTML( $this->editFormTextAfterContent ); $wgOut->wrapWikiMsg( "
\n$1\n
", $copywarnMsg ); $wgOut->addHTML( <<parse( $note ) . $conflict . "\n"; wfProfileOut( __METHOD__ ); - return $previewhead . $previewHTML; + return $previewhead . $previewHTML . $this->previewTextAfterContent; } function getTemplates() { -- 2.20.1