diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-12-07 02:57:01 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-12-07 02:57:01 +0300 |
commit | 7ef24654cf0963bc9e27e2846fabea706b1a1cc5 (patch) | |
tree | 5f8619bd75127b3d1ffc2368211acbf583afdd75 /appinfo/app.php | |
parent | 4464726d8076d71a09c8b67e28ae0aad0e168f6c (diff) |
Public editing
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'appinfo/app.php')
-rw-r--r-- | appinfo/app.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index 3c8e00d8..8650a508 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -31,6 +31,13 @@ $eventDispatcher->addListener( \OCP\Util::addStyle('richdocuments', 'viewer/odfviewer'); } ); +$eventDispatcher->addListener( + 'OCA\Files_Sharing::loadAdditionalScripts', + function() { + \OCP\Util::addScript('richdocuments', 'viewer/viewer'); + \OCP\Util::addStyle('richdocuments', 'viewer/odfviewer'); + } +); if (class_exists('\OC\Files\Type\TemplateManager')) { $manager = \OC_Helper::getFileTemplateManager(); |