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.
Thank you for your help.
-Johannes
On 19/09/2007, Johannes Perl johannes.perl@gmail.com 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.
Thomas Dalton <thomas.dalton@...> writes:
On 19/09/2007, Johannes Perl <johannes.perl@...> 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
mediawiki-l@lists.wikimedia.org