diff --git a/extensions/bbcode/extend.php b/extensions/bbcode/extend.php index 325d7b4185..16a49d9320 100644 --- a/extensions/bbcode/extend.php +++ b/extensions/bbcode/extend.php @@ -38,5 +38,15 @@ $config->BBCodes->addFromRepository('CENTER'); $config->BBCodes->addFromRepository('SIZE'); $config->BBCodes->addFromRepository('*'); + + // Fix for highlight JS not working after changing post content. + $codeTag = $config->tags->get('CODE'); + $script = ' + '; + $codeTag->template = str_replace('', $script.'', $codeTag->template); }), ];