diff options
author | Sergey Linnik <sergey.linnik@onlyoffice.com> | 2017-12-20 13:47:26 +0300 |
---|---|---|
committer | Sergey Linnik <sergey.linnik@onlyoffice.com> | 2017-12-20 13:56:13 +0300 |
commit | b2519fdb1ffc90189a32865e9464b51628c3c7ae (patch) | |
tree | 1cf5f5cd3df336a60d8967a88188638453b6dd4f /templates/editor.php | |
parent | 07026afd906e002d79bbb37e7352b2e826d60522 (diff) |
initialization on document ready (#123)
Diffstat (limited to 'templates/editor.php')
-rw-r--r-- | templates/editor.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/templates/editor.php b/templates/editor.php index 40f1296..8fc4c9e 100644 --- a/templates/editor.php +++ b/templates/editor.php @@ -30,7 +30,7 @@ <div id="app"> - <div id="iframeEditor"></div> + <div id="iframeEditor" data-id="<?php p($_["fileId"]) ?>"></div> <?php if (!empty($_["documentServerUrl"])) { print_unescaped("<script nonce=\"") . @@ -40,8 +40,4 @@ print_unescaped("web-apps/apps/api/documents/api.js\" type=\"text/javascript\"></script>"); } ?> - <script type="text/javascript" nonce="<?php p(base64_encode($_["requesttoken"])) ?>"> - OCA.Onlyoffice.OpenEditor("<?php p($_["fileId"]) ?>", "<?php empty($_["error"]) ? "" : p($_["error"]) ?>"); - </script> - </div> |