This commit is contained in:
parent
ff92d1739c
commit
802aaf66a3
2 changed files with 4 additions and 4 deletions
|
@ -630,8 +630,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.protyle-wysiwyg:not([custom-sy-readonly]),
|
.protyle-wysiwyg:not([contenteditable]),
|
||||||
.protyle-wysiwyg[custom-sy-readonly="true"] {
|
.protyle-wysiwyg[contenteditable="false"] {
|
||||||
.img:hover .protyle-icons {
|
.img:hover .protyle-icons {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
export const genIconHTML = (element?: false|HTMLElement) => {
|
export const genIconHTML = (element?: false|HTMLElement) => {
|
||||||
let enable = true;
|
let enable = true;
|
||||||
if (element) {
|
if (element) {
|
||||||
const readonly = element.getAttribute("custom-sy-readonly");
|
const readonly = element.getAttribute("contenteditable");
|
||||||
if (typeof readonly === "string") {
|
if (typeof readonly === "string") {
|
||||||
enable = element.getAttribute("custom-sy-readonly") === "false";
|
enable = element.getAttribute("contenteditable") === "true";
|
||||||
} else {
|
} else {
|
||||||
return '<div class="protyle-icons"></div>';
|
return '<div class="protyle-icons"></div>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue