Skip to content

Commit

Permalink
🎨 #13358
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Dec 5, 2024
1 parent e191446 commit 865e9f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/protyle/util/editorCommonEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
let html = "";
for (let i = 0; i < selectedIds.length; i++) {
const response = await fetchSyncPost("/api/block/getRefText", {id: selectedIds[i]});
html += `((${selectedIds[i]} '${response.data}')) `;
html += protyle.lute.Md2BlockDOM(`((${selectedIds[i]} '${response.data}'))`);
}
insertHTML(html, protyle);
} else if (event.shiftKey) {
Expand Down Expand Up @@ -1085,7 +1085,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
let html = "";
for (let i = 0; i < ids.length; i++) {
const response = await fetchSyncPost("/api/block/getRefText", {id: ids[i]});
html += `((${ids[i]} '${response.data}')) `;
html += protyle.lute.Md2BlockDOM(`((${ids[i]} '${response.data}'))`);
}
insertHTML(html, protyle);
} else if (targetElement && !protyle.options.backlinkData && targetElement.className.indexOf("dragover__") > -1) {
Expand Down

0 comments on commit 865e9f6

Please sign in to comment.