From: Tim Düsterhus Date: Thu, 29 Nov 2018 14:31:01 +0000 (+0100) Subject: Add selectHighlighter event to HtmlOutputNodePre X-Git-Tag: 5.2.0_Alpha_1~420^2~5^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=032ee52c1f058d87bd94be43d73c4bc20fc96bfe;p=GitHub%2FWoltLab%2FWCF.git Add selectHighlighter event to HtmlOutputNodePre see #2752 Closes #2614 --- diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php index e80e7bdbcd..41ca5cf43e 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php @@ -1,6 +1,7 @@ $highlighter, + 'data' => $data, + 'content' => $content + ]; + EventHandler::getInstance()->fireAction($this, 'selectHighlighter', $eventData); + $highlighter = $eventData['highlighter']; $meta = BBCodeHandler::getInstance()->getHighlighterMeta(); $title = WCF::getLanguage()->get('wcf.bbcode.code');