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

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'templates/editor.php')
-rw-r--r--templates/editor.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/editor.php b/templates/editor.php
index ced8968..a9642dd 100644
--- a/templates/editor.php
+++ b/templates/editor.php
@@ -30,11 +30,19 @@
style("onlyoffice", "editor");
script("onlyoffice", "desktop");
script("onlyoffice", "editor");
+ if (!empty($_["directToken"])) {
+ script("onlyoffice", "directeditor");
+ }
?>
<div id="app">
- <div id="iframeEditor" data-id="<?php p($_["fileId"]) ?>" data-path="<?php p($_["filePath"]) ?>" data-sharetoken="<?php p($_["shareToken"]) ?>"></div>
+ <div id="iframeEditor"
+ data-id="<?php p($_["fileId"]) ?>"
+ data-path="<?php p($_["filePath"]) ?>"
+ data-sharetoken="<?php p($_["shareToken"]) ?>"
+ data-directtoken="<?php p($_["directToken"]) ?>"
+ data-inframe="<?php p($_["inframe"]) ?>"></div>
<?php if (!empty($_["documentServerUrl"])) { ?>
<script nonce="<?php p(base64_encode($_["requesttoken"])) ?>"