Cannot Rename Document using OPENEDIT code

Integration questions/issues
Post Reply
stever
Posts: 1
Joined: Thu Sep 13, 2018 7:23 pm

Cannot Rename Document using OPENEDIT code

Post by 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>

Maxim
Posts: 1821
Joined: Tue Oct 11, 2016 2:34 pm

Re: Cannot Rename Document using OPENEDIT code

Post by Maxim » Thu Dec 20, 2018 10:37 am

Hello stever!
The problem I'm having is that one of the menu items is "RENAME". Clicking on it opens the rename popup.
Can you attach screenshot of the rename popup?

Post Reply