This commit is contained in:
parent
7b702c8b11
commit
781183e434
2 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue