diff --git a/appinfo/app.php b/appinfo/app.php index c2f86ab..289e228 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -1,4 +1,9 @@ getEventDispatcher(); +$eventDispatcher->addListener( + 'OCA\Files::loadAdditionalScripts', + function () { + //load the required files + OCP\Util::addscript('files_markdown', 'editor'); + OCP\Util::addStyle('files_markdown', 'preview'); + });