Skip to content

Commit

Permalink
dispatch op_decoration.filter_html event for filtering a decorated ht…
Browse files Browse the repository at this point in the history
…ml (fixes #1747)
  • Loading branch information
upsilon committed Oct 27, 2010
1 parent b147fa2 commit ace43b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/widget/opWidgetFormRichTextareaOpenPNE.class.php
Expand Up @@ -291,6 +291,9 @@ static public function toHtml($string, $isStrip, $isUseStylesheet, $isHtmlTagFol
}
}

$event = sfContext::getInstance()->getEventDispatcher()->filter(new sfEvent(null, 'op_decoration.filter_html'), $converted);
$converted = $event->getReturnValue();

if ($isHtmlTagFollowup)
{
$converted = self::htmlTagFollowup($converted);
Expand Down

0 comments on commit ace43b7

Please sign in to comment.