mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
python: insert-image
This commit is contained in:
@ -186,6 +186,11 @@ def edit(request):
|
||||
}
|
||||
}
|
||||
|
||||
dataInsertImage = {
|
||||
'fileType': 'png',
|
||||
'url': config.EXAMPLE_DOMAIN + 'static/images/logo.png'
|
||||
}
|
||||
|
||||
if jwtManager.isEnabled():
|
||||
edConfig['token'] = jwtManager.encode(edConfig)
|
||||
|
||||
@ -196,6 +201,7 @@ def edit(request):
|
||||
'history': json.dumps(hist['history']) if 'history' in hist else None,
|
||||
'historyData': json.dumps(hist['historyData']) if 'historyData' in hist else None,
|
||||
'fileType': fileType,
|
||||
'dataInsertImage': json.dumps(dataInsertImage)[1 : len(json.dumps(dataInsertImage)) - 1],
|
||||
'apiUrl': config.DOC_SERV_API_URL
|
||||
}
|
||||
return render(request, 'editor.html', context)
|
||||
|
||||
Reference in New Issue
Block a user