https://bugzilla.wikimedia.org/show_bug.cgi?id=30114
Web browser: ---
Bug #: 30114
Summary: Need hook in EditPage.php after content is loaded
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Page editing
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
I need a hook to modify the content of an article before it is displayed in the
edit box. The best place for this would be in EditPage->getContent() right
after the call to $this->mArticle->getContent(). The hooks inside
Article->getContent() are not good enough since that function is called all
over the place and not just on edit.
Something like this:
wfRunHooks( 'EditPageAfterFetchContent', array( &$this, &$text ) ) ;
This would allow an extension to modify content before it is edited or load
additional metadata or whatever associated with the revision being edited.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l