Try the fastest and simplest way to install ONLYOFFICE

Cannot Rename Document using OPENEDIT code

Integration questions/issues

Cannot Rename Document using OPENEDIT code

Postby stever » Thu Sep 13, 2018 7:40 pm

I really hope someone can help me. I'm using the cloud version of OnlyOffice and using the following code to edit a document. This code comes directly from the OPENEDIT web service. The document loads correctly and saves correctly. The problem I'm having is that one of the menu items is "RENAME". Clicking on it opens the rename popup. However, the file never gets renamed after renaming it and clicking on ok. What am I missing. Is there something else that needs to load in addition to this code on the web page?

Code: Select all
    <div id="placeholder"></div>
    <script type="text/javascript" src="https://doc.onlyoffice.com/web-apps/apps/api/documents/api.js"></script>
    <script type="text/javascript">
        new DocsAPI.DocEditor("placeholder", {
            "document": {
                "info": {
                    "author": "Me",
                    "created": "8/17/2018 7:44 AM"
                },
                "permissions": {
                    "changeHistory": true,
                    "download": true,
                    "edit": true,
                    "print": true,
                    "rename": true,
                    "review": true
                },
                "fileType": "docx",
                "key": "xxxxxxxxxxx",
                "title": "Test Document.docx",
                "url": "https://dudesolutions.onlyoffice.com/products/files/httphandlers/filehandler.ashx?action=stream&fileid=5832304&version=10&stream_auth=xxxxxxxxxxxx"
            },
            "editorConfig": {
                "plugins": {
                    "pluginsData": [
                        "https://dudesolutions.onlyoffice.com/ThirdParty/plugin/wordpress/config.json"
                    ]
                },
                "customization": {
                    "customer": {
                        "logo": "https://dudesolutions.onlyoffice.com/storage/whitelabel/root/logo_dark_general.png",
                        "name": "Dude Solutions"
                    },
                    "logo": {
                        "image": "https://dudesolutions.onlyoffice.com/storage/whitelabel/root/logo_docseditor_general.png",
                        "url": "http://www.onlyoffice.com"
                    },
                    "about": true,
                    "feedback": {
                        "url": "http://support.onlyoffice.com/",
                        "visible": true
                    }
                },
                "user": {
                    "id": "12345678-1234-1234-1234-123456789",
                    "name": "Test Test"
                },
                "lang": "en-US",
                "mode": "edit"
            },
            "token": "xxxxxxxxx",
            "documentType": "text",
            "type": "external"
         });
    </script>
stever
 
Posts: 1
Joined: Thu Sep 13, 2018 7:23 pm

Return to API

Who is online

Users browsing this forum: No registered users and 2 guests