1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 15:34:26 +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

@@ -131,4 +131,15 @@ abstract class ClientAction extends BaseClientAction
'core.write_a_post',
'core.write_a_reply'
];
protected function getAssets()
{
$assets = parent::getAssets();
$assets->addJs(function () {
return app('flarum.formatter')->getJS();
});
return $assets;
}
}