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

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-09-08 17:13:18 +0300
committerJulius Härtl <jus@bitgrid.net>2019-01-18 13:46:50 +0300
commit02795a3421a45ed02b39f3acb274c5323f421e82 (patch)
tree6c7fd29bdda7d682f10a3d6e3a2563da8be8288a /appinfo/app.php
parent3b22c445bf6c90d732b2a2949375c3fa0f24f08c (diff)
switch to webpack bundling
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'appinfo/app.php')
-rw-r--r--appinfo/app.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index bf08bc9..d7399f8 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -4,19 +4,20 @@ $eventDispatcher = \OC::$server->getEventDispatcher();
// only load text editor if the user is logged in
if (\OC::$server->getUserSession()->isLoggedIn()) {
- $eventDispatcher->addListener('OCA\Files::loadAdditionalScripts', function() {
+ $eventDispatcher->addListener('OCA\Files::loadAdditionalScripts', function () {
OCP\Util::addStyle('files_texteditor', 'merged');
- OCP\Util::addScript('files_texteditor', 'merged');
+ OCP\Util::addScript('files_texteditor', '../build/editor');
$cspManager = \OC::$server->getContentSecurityPolicyManager();
$csp = new \OCP\AppFramework\Http\ContentSecurityPolicy();
$csp->addAllowedChildSrcDomain("'self'");
+ $csp->addAllowedScriptDomain('blob:');
$cspManager->addDefaultPolicy($csp);
});
}
-$eventDispatcher->addListener('OCA\Files_Sharing::loadAdditionalScripts', function() {
+$eventDispatcher->addListener('OCA\Files_Sharing::loadAdditionalScripts', function () {
OC_Util::addVendorScript('core', 'marked/marked.min');
OCP\Util::addScript('files_texteditor', 'public-share');
- OCP\Util::addStyle('files_texteditor', 'public-share');
+ OCP\Util::addStyle('files_texteditor', '../build/public-share');
});