Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/icewind1991/files_markdown.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/app.php')
-rw-r--r--appinfo/app.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index 33abf8e..55317c0 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -18,3 +18,11 @@ $eventDispatcher->addListener(
OCP\Util::addStyle('files_markdown', '../build/styles');
OCP\Util::addStyle('files_markdown', 'preview');
});
+
+
+$eventDispatcher->addListener(
+ 'OCA\Files_Sharing::loadAdditionalScripts',
+ function () {
+ OCP\Util::addScript('files_markdown', '../build/editor');
+ OCP\Util::addStyle('files_markdown', 'preview');
+ });