PDF editor: Fix empty preview tab in Chrome (#2806)

This commit is contained in:
Richard Schreiber
2022-09-20 11:14:28 +02:00
committed by GitHub
parent c7c3aa2c95
commit 9e07a40ae9

View File

@@ -959,10 +959,10 @@ var editor = {
return false;
},
_preview: function () {
_preview: function (e) {
$("#preview-form input[name=data]").val(JSON.stringify(editor.dump()));
$("#preview-form input[name=background]").val(editor.uploaded_file_id);
$("#preview-form").get(0).submit();
if (!e || !e.target.form) $("#preview-form").get(0).submit();
},
_replace_pdf_file: function (url) {