mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🚨
This commit is contained in:
parent
10256c5486
commit
d5257471fd
1 changed files with 2 additions and 2 deletions
|
|
@ -602,7 +602,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
||||||
ghostElement.className = "protyle-wysiwyg protyle-wysiwyg--attr";
|
ghostElement.className = "protyle-wysiwyg protyle-wysiwyg--attr";
|
||||||
const isKanban = blockElement.getAttribute("data-av-type") === "kanban";
|
const isKanban = blockElement.getAttribute("data-av-type") === "kanban";
|
||||||
if (isKanban) {
|
if (isKanban) {
|
||||||
ghostElement.innerHTML = `<div class="av__kanban"></div>`;
|
ghostElement.innerHTML = "<div class=\"av__kanban\"></div>";
|
||||||
}
|
}
|
||||||
let galleryElement: HTMLElement;
|
let galleryElement: HTMLElement;
|
||||||
let cloneGalleryElement = document.createElement("div");
|
let cloneGalleryElement = document.createElement("div");
|
||||||
|
|
@ -614,7 +614,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
||||||
if (isKanban) {
|
if (isKanban) {
|
||||||
cloneGalleryElement.className = "av__kanban-group";
|
cloneGalleryElement.className = "av__kanban-group";
|
||||||
cloneGalleryElement.setAttribute("style", item.parentElement.parentElement.parentElement.getAttribute("style"));
|
cloneGalleryElement.setAttribute("style", item.parentElement.parentElement.parentElement.getAttribute("style"));
|
||||||
cloneGalleryElement.innerHTML = `<div class="av__gallery"></div>`;
|
cloneGalleryElement.innerHTML = "<div class=\"av__gallery\"></div>";
|
||||||
ghostElement.firstElementChild.appendChild(cloneGalleryElement);
|
ghostElement.firstElementChild.appendChild(cloneGalleryElement);
|
||||||
} else {
|
} else {
|
||||||
cloneGalleryElement.classList.add("av__gallery");
|
cloneGalleryElement.classList.add("av__gallery");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue