mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +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";
|
||||
const isKanban = blockElement.getAttribute("data-av-type") === "kanban";
|
||||
if (isKanban) {
|
||||
ghostElement.innerHTML = `<div class="av__kanban"></div>`;
|
||||
ghostElement.innerHTML = "<div class=\"av__kanban\"></div>";
|
||||
}
|
||||
let galleryElement: HTMLElement;
|
||||
let cloneGalleryElement = document.createElement("div");
|
||||
|
|
@ -614,7 +614,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
if (isKanban) {
|
||||
cloneGalleryElement.className = "av__kanban-group";
|
||||
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);
|
||||
} else {
|
||||
cloneGalleryElement.classList.add("av__gallery");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue