Permalink
Browse files

dispatch op_decoration.filter_html event for filtering a decorated ht…

…ml (fixes #1747)
  • Loading branch information...
upsilon committed Oct 27, 2010
1 parent b147fa2 commit ace43b7fff4ab5efe7db0df35b345a488441d95f
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/widget/opWidgetFormRichTextareaOpenPNE.class.php
@@ -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);

0 comments on commit ace43b7

Please sign in to comment.