We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0393789 commit 18b84b1Copy full SHA for 18b84b1
web_src/js/markup/tasklist.js
@@ -43,12 +43,20 @@ export function initMarkupTasklist() {
43
44
try {
45
const editContentZone = container.querySelector('.edit-content-zone');
46
- const {updateUrl, context} = editContentZone.dataset;
+ const {updateUrl, context, attachmentUrl} = editContentZone.dataset;
47
+
48
+ const resp = await fetch(attachmentUrl);
49
+ const attachments = await resp.json();
50
+ const files = [];
51
+ for (const attachment of attachments) {
52
+ files.push(attachment.uuid);
53
+ }
54
55
await $.post(updateUrl, {
56
_csrf: window.config.csrf,
57
content: newContent,
58
context,
59
+ files
60
});
61
62
rawContent.textContent = newContent;
0 commit comments