python: insert-image

This commit is contained in:
Alexandr Fedorov
2020-11-26 15:33:16 +03:00
parent 17cad4a0dc
commit 31337cc9c9
2 changed files with 14 additions and 0 deletions

View File

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