mirror of
https://github.com/flarum/core.git
synced 2025-07-12 12:26:23 +02:00
Live preview of post editing/replying thanks to TextFormatter 👏
This commit is contained in:
@ -160,11 +160,17 @@ abstract class ClientAction extends HtmlAction
|
||||
*/
|
||||
protected function addCustomizations(AssetManager $assets)
|
||||
{
|
||||
foreach ($this->getLessVariables() as $name => $value) {
|
||||
$assets->addLess("@$name: $value;");
|
||||
}
|
||||
$assets->addLess(function () {
|
||||
$less = '';
|
||||
|
||||
$assets->addLess($this->settings->get('custom_less'));
|
||||
foreach ($this->getLessVariables() as $name => $value) {
|
||||
$less .= "@$name: $value;";
|
||||
}
|
||||
|
||||
$less .= $this->settings->get('custom_less');
|
||||
|
||||
return $less;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user