1
0
mirror of https://github.com/flarum/core.git synced 2025-08-01 14:10:37 +02:00

Hide mentions in inline spoilers

Fixes #2033
This commit is contained in:
Matthew Kilgore
2020-03-01 09:52:30 -05:00
parent 990201cb95
commit 8a71c6f17d
2 changed files with 17 additions and 1 deletions

View File

@@ -12,10 +12,12 @@ use s9e\TextFormatter\Configurator;
return [
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js'),
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/less/forum.less'),
(new Extend\Formatter)
->configure(function (Configurator $config) {
$config->Litedown;
$config->tags['ispoiler']->template = '<span class="spoiler" data-s9e-livepreview-ignore-attrs="style" onclick="removeAttribute(\'style\'); removeAttribute(\'class\')" style="background:#444;color:transparent"><xsl:apply-templates/></span>';
})
];