1
0
mirror of https://github.com/flarum/core.git synced 2025-10-15 00:44:40 +02:00

Live preview of post editing/replying thanks to TextFormatter 👏

This commit is contained in:
Toby Zerner
2015-07-22 16:05:00 +09:30
parent a0fe68272c
commit 017c258e46
14 changed files with 130 additions and 26 deletions

View File

@@ -29,7 +29,7 @@ class AssetManager
break;
default:
throw new DomainException('Unsupported asset type: '.$ext);
throw new DomainException('Unsupported asset type: ' . $ext);
}
}
@@ -38,14 +38,14 @@ class AssetManager
array_walk($files, [$this, 'addFile']);
}
public function addLess($string)
public function addLess(callable $callback)
{
$this->less->addString($string);
$this->less->addString($callback);
}
public function addJs($strings)
public function addJs(callable $callback)
{
$this->js->addString($string);
$this->js->addString($callback);
}
public function getCssFile()