Do you want to: Suggest a feature / Report a bug / Ask a how-to question
For feature suggestions, describe the result you would like to achieve in detail.
For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem.
Document Server version:
Type of installation of the Document Server (docker, deb/rpm, exe)
OS: Docker (debian)
Browser version: Chrome Versión 120.0.6099.110 (Build oficial) (64 bits)
Hello there!
Im facing a issue. I got an a iframe working perfectly on mi test project (Razor page), the editor is working fine and loading docs… but… is not saving changes, also is not working collab on real time.
This is my config
config = {
"width": "100%",
"height": "1000px",
"type": "desktop",
"documentType": docType,
"token": "",
"document": {
"title": fileName,
"url": baseUrl + fileName + addrUrl,
"fileType": ext,
"key": "",
"info": {
"owner": "Me",
"uploaded": "Wed Oct 18 2023",
"favorite": null
},
"permissions": {
"comment": true,
"copy": true,
"download": true,
"edit": true,
"print": true,
"fillForms": true,
"modifyFilter": true,
"modifyContentControl": true,
"review": true,
"reviewGroups": null,
"commentGroups": {},
"userInfoGroups": null
}
},
"editorConfig": {
"actionLink": null,
"mode": "edit",
"lang": "es",
"canCoAuthoring": true,
"canRename": false,
"canRequestCreateNew":false,
"callbackUrl": "http://10.4.4.50:52695/example/track?filename=" + fileName + addrUrl,
"createUrl": "http://10.4.4.50:52695/example/editor?fileExt="+ext+"&userid=uid-1&type=undefined&lang=es",
"templates": [{ "image": "", "title": "Blank", "url": "http://10.4.4.50:52695/example/editor?fileExt="+ext+"&userid=uid-1&type=undefined&lang=es" }, { "image": "http://rw-mpf-desa-06:52695/example/images/file_docx.svg", "title": "With sample content", "url": "http://10.4.4.50:52695/example/editor?fileExt="+ext+"&userid=uid-1&type=undefined&lang=es&sample=true" }],
"user": {
"group": "",
"id": "uid-1",
"name": user
},
"embedded": {
"saveUrl": baseUrl + fileName + addrUrl+"&dmode=emb",
"embedUrl": baseUrl + fileName + addrUrl + "&dmode=emb",
"shareUrl": baseUrl + fileName + addrUrl + "&dmode=emb",
"toolbarDocked": "top"
}
}
};
var docEditor = new DocsAPI.DocEditor("placeholder", config);```
And this is my razor page
@page “/OOtest”
@inject IJSRuntime JSRuntime
@inject NavigationManager NavigationManager
@inject AuthenticationStateProvider AuthenticationStateProvider
@code {
private string fileName;
private string UserName;
protected override async Task OnInitializedAsync()
{
var authenticationState = await AuthenticationStateProvider.GetAuthenticationStateAsync();
UserName = authenticationState.User.Identity.Name;
// Obtener el valor del parámetro fileName de la URL
var uri = new Uri(NavigationManager.Uri);
var queryString = System.Web.HttpUtility.ParseQueryString(uri.Query);
fileName = queryString["fileName"];
}
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
await JSRuntime.InvokeVoidAsync("initOnlyOffice", UserName, fileName);
}
}
}
I hope you can help me. I'm using onlyoffice document server 7.1.1.23 (i need this version). running on docker.