[GH-ISSUE #654] FR: Add OnlyOffice viewver #466

Closed
opened 2026-03-02 15:58:58 +03:00 by kerem · 1 comment
Owner

Originally created by @baur on GitHub (Oct 29, 2021).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/654

Hi.
Office and GoogleDocs viewvers not works on selfhosting. Would be nice if add OnlyOffice viewer mode for Word and Excel

https://api.onlyoffice.com/editors/try

View mode (read-only)

https://api.onlyoffice.com/editors/example/php#win-1

<!DOCTYPE html>
<html style="height: 100%;">
<head>
    <title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
    <div id="placeholder" style="height: 100%"></div>
    <script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>

    <script type="text/javascript">

        window.docEditor = new DocsAPI.DocEditor("placeholder",
            {
                "document": {
                    "fileType": "xlsx",
                    "key": "138E9734B413",
                    "title": "Example Spreadsheet Title.xlsx",
                    "url": "https://example.com/url-to-example-spreadsheet.xlsx"
                },
                "documentType": "cell",
                "editorConfig": {
                    "mode": "view"
                },
                "height": "100%",
                "width": "100%"
            });

    </script>
</body>
</html>
<!DOCTYPE html>
<html style="height: 100%;">
<head>
    <title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
    <div id="placeholder" style="height: 100%"></div>
    <script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>

    <script type="text/javascript">

        window.docEditor = new DocsAPI.DocEditor("placeholder",
            {
                "document": {
                    "fileType": "docx",
                    "key": "D24A86BDE9A2",
                    "title": "Example Document Title.docx",
                    "url": "https://example.com/url-to-example-document.docx"
                },
                "documentType": "word",
                "editorConfig": {
                    "mode": "view"
                },
                "height": "100%",
                "width": "100%"
            });

    </script>
</body>
</html>
Originally created by @baur on GitHub (Oct 29, 2021). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/654 Hi. Office and GoogleDocs viewvers not works on selfhosting. Would be nice if add OnlyOffice viewer mode for Word and Excel https://api.onlyoffice.com/editors/try View mode (read-only) https://api.onlyoffice.com/editors/example/php#win-1 ```html <!DOCTYPE html> <html style="height: 100%;"> <head> <title>ONLYOFFICE Api Documentation</title> </head> <body style="height: 100%; margin: 0;"> <div id="placeholder" style="height: 100%"></div> <script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script> <script type="text/javascript"> window.docEditor = new DocsAPI.DocEditor("placeholder", { "document": { "fileType": "xlsx", "key": "138E9734B413", "title": "Example Spreadsheet Title.xlsx", "url": "https://example.com/url-to-example-spreadsheet.xlsx" }, "documentType": "cell", "editorConfig": { "mode": "view" }, "height": "100%", "width": "100%" }); </script> </body> </html> ``` ```html <!DOCTYPE html> <html style="height: 100%;"> <head> <title>ONLYOFFICE Api Documentation</title> </head> <body style="height: 100%; margin: 0;"> <div id="placeholder" style="height: 100%"></div> <script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script> <script type="text/javascript"> window.docEditor = new DocsAPI.DocEditor("placeholder", { "document": { "fileType": "docx", "key": "D24A86BDE9A2", "title": "Example Document Title.docx", "url": "https://example.com/url-to-example-document.docx" }, "documentType": "word", "editorConfig": { "mode": "view" }, "height": "100%", "width": "100%" }); </script> </body> </html> ```
kerem closed this issue 2026-03-02 15:58:58 +03:00
Author
Owner

@baur commented on GitHub (Oct 30, 2021):

but I'm not sure about https://example.com/url-to-example-document.xlsx

<!-- gh-comment-id:955171431 --> @baur commented on GitHub (Oct 30, 2021): but I'm not sure about https://example.com/url-to-example-document.xlsx
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#466
No description provided.