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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user