Vanessa 2024-04-15 23:28:06 +08:00
parent 7b702c8b11
commit 781183e434
2 changed files with 5 additions and 1 deletions

View file

@ -635,7 +635,8 @@
}
.protyle-wysiwyg:not([contenteditable]),
.protyle-wysiwyg[data-readonly="true"] {
.protyle-wysiwyg[data-readonly="true"],
.protyle-wysiwyg__embed {
.img:hover .protyle-icons {
display: none;
}

View file

@ -265,6 +265,9 @@ export class BlockPanel {
this.element.querySelectorAll(".block__edit").forEach((item: HTMLElement, index) => {
if (index < 5) {
this.initProtyle(item, index === 0 ? () => {
if (!document.contains(this.element)) {
return;
}
let targetRect;
if (this.targetElement && this.targetElement.classList.contains("protyle-wysiwyg__embed")) {
targetRect = this.targetElement.getBoundingClientRect();