mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
python: wrap data-insert-image with images array
This commit is contained in:
@ -355,12 +355,20 @@ def edit(request):
|
||||
|
||||
# an image which will be inserted into the document
|
||||
dataInsertImage = {
|
||||
'fileType': 'svg',
|
||||
'url': docManager.getServerUrl(True, request) + '/static/images/logo.svg',
|
||||
'directUrl': docManager.getServerUrl(False, request) + '/static/images/logo.svg'
|
||||
'images': [
|
||||
{
|
||||
'fileType': 'svg',
|
||||
'url': docManager.getServerUrl(True, request) + '/static/images/logo.svg',
|
||||
'directUrl': docManager.getServerUrl(False, request) + '/static/images/logo.svg'
|
||||
}
|
||||
]
|
||||
} if isEnableDirectUrl else {
|
||||
'fileType': 'svg',
|
||||
'url': docManager.getServerUrl(True, request) + '/static/images/logo.svg'
|
||||
'images': [
|
||||
{
|
||||
'fileType': 'svg',
|
||||
'url': docManager.getServerUrl(True, request) + '/static/images/logo.svg'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
# a document which will be compared with the current document
|
||||
|
||||
Reference in New Issue
Block a user