python: wrap data-insert-image with images array

This commit is contained in:
sshakndr
2025-10-09 13:53:35 +07:00
parent b16a9afddd
commit 9cf63d12ef

View File

@ -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