Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Post Edit Preview Hook

edited November 2010 in Vanilla 2.0 - 2.8
How do I hook into the post edit preview to manipulate the content before it is displayed? I need to pass the content through a function first before it renders in the preview.


  • Options
    I was wondering the same thing. I'm not sure if it's possible yet.
  • Options
    I figure out how to do it with the comment/discussion preview, but not with the edit preview popup. This is how you can do it with the comment/discussion preview:

    // Start a Discussion preview
    public function PostController_BeforeDiscussionRender_Handler($Sender) {


    // Comment preview
    public function PostController_BeforeCommentRender_Handler($Sender) {

  • Options
    Sweeeeet thanks dude.
  • Options
    No problem. Hopefully someone else will be able to help me out on the edit preview popup hook.
  • Options
    LincLinc Detroit Admin
    Check out my last comment on this issue:
  • Options
    Awesome. So when the next version comes out we can use:

    public function PostController_BeforeDiscussionPreview_Handler($Sender) {

Sign In or Register to comment.