Hi,
I have OnlyOffice Version: 8.0.1. Build: 31 installed in docker with the Alfresco connector.
I’m trying to configure the editor to:
- edit a docx with the docxf mode (creating fillable forms)
- make the user edits only the fillable fields that i have created;
The first step works well and i have no problem with this. The options that i use for this are:
{
“canManagePermissions”: true,
“demo”: false,
“editorConfig”: {
“document”: {
“fileType”: “docxf”,
“info”: {
“favorite”: false
},
“key”: “BLABLA”,
“permissions”: {
“edit”: true
},
“title”: “BLABLA.docx”,
“url”: “BLABLA”,
“token”: “BLABLA”,
“isForm”: false
},
“documentType”: “word”,
“editorConfig”: {
“callbackUrl”: “BLABLA”,
“createUrl”: “BLABLA”,
“customization”: {
“autosave”: false,
“comments”: false,
“trackChanges”: false,
“help”: false,
“hideRightMenu”: true,
“hideRulers”: true,
“uiTheme”: “theme-light”,
“zoom”: 100,
“about”: true,
“feedback”: false
},
“lang”: “it-IT”,
“mode”: “edit”,
“templates”: ,
“user”: {
“firstname”: “Administrator”,
“id”: “admin”,
“lastname”: “”,
“name”: "Administrator "
},
“canCoAuthoring”: false
},
“height”: “100%”,
“token”: “BLABLA”,
“type”: “desktop”,
“width”: “100%”,
“frameEditorId”: “testplaceholder”,
“parentOrigin”: “http://localhost:4200”
},
“favorite”: “parashift/onlyoffice/editor-api/favorite?nodeRef=workspace://SpacesStore/BLABLA”,
“folderNode”: “workspace://SpacesStore/BLABLA”,
“historyDataUrl”: “parashift/onlyoffice/history/data?nodeRef=workspace://SpacesStore/BLABLA”,
“historyInfoUrl”: “parashift/onlyoffice/history/info?nodeRef=workspace://SpacesStore/BLABLA”,
“mime”: “application/vnd.openxmlformats-officedocument.wordprocessingml.document”,
“onlyofficeUrl”: “BLABLA”
}
But when i try to add the permissions block TO MAKE THE USER EDIT ONLY THE FORMS AND NOT THE DOCUMENT (i created this block following the instructions found at Config - ONLYOFFICE Api Documentation)
"permissions": { "chat": false, "comment": false, "copy": false, "deleteCommentAuthorOnly": false, "download": false, "edit": false, "editCommentAuthorOnly": false, "fillForms": true, "modifyContentControl": false, "print": false, "protect": false, "review": false },
The editor will not open and an error will pop up saying that i have not the right permissions to do this action.
What am i doing wrong?
Thank you.