[Mediawiki-l] manipulating preview html?

Johannes Perl johannes.perl at gmail.com
Wed Sep 19 14:53:32 UTC 2007


Thomas Dalton <thomas.dalton at ...> writes:

> 
> On 19/09/2007, Johannes Perl <johannes.perl at ...> wrote:
> > hi,
> >
> > it's me again. ;) Is there a hook I can manipulate the html the preview is
> > showing?
> > I've got a problem with an extensions destroying file:// links and corrected
> > that by manipulating html with 'OutputPageBeforeHTML' hook.
> >
> > Would also like to do that for the preview now, so that you exactly get to
> > see what you will post.
> 
> If you use an appropriate hook in the parser, it should correct the
> problem anywhere it appears, including previews.
> 

Thanks for your comment. It made me investigate the case one more time.
The hook is appropriate, but in the preview case the text comes with the first
parameter (on preview you have to get $out->mBodytext and not $parserOutput)

-Johannes








More information about the MediaWiki-l mailing list