Web: Editor: Fixed document type for creation url.

This commit is contained in:
Tatiana Lopaeva 2023-01-09 17:22:42 +03:00
parent 5a83f41348
commit f7bcbf54e0

View File

@ -555,7 +555,7 @@ function Editor({
config.editorConfig.createUrl = combineUrl(
window.location.origin,
window.DocSpaceConfig?.proxy?.url,
`/filehandler.ashx?action=create&doctype=text&title=${encodeURIComponent(
`/filehandler.ashx?action=create&doctype=${documentType}&title=${encodeURIComponent(
defaultFileName
)}`
);