mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-09 01:20:57 +08:00
This commit is contained in:
parent
ff92d1739c
commit
802aaf66a3
@ -630,8 +630,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
.protyle-wysiwyg:not([custom-sy-readonly]),
|
||||
.protyle-wysiwyg[custom-sy-readonly="true"] {
|
||||
.protyle-wysiwyg:not([contenteditable]),
|
||||
.protyle-wysiwyg[contenteditable="false"] {
|
||||
.img:hover .protyle-icons {
|
||||
display: none;
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
export const genIconHTML = (element?: false|HTMLElement) => {
|
||||
let enable = true;
|
||||
if (element) {
|
||||
const readonly = element.getAttribute("custom-sy-readonly");
|
||||
const readonly = element.getAttribute("contenteditable");
|
||||
if (typeof readonly === "string") {
|
||||
enable = element.getAttribute("custom-sy-readonly") === "false";
|
||||
enable = element.getAttribute("contenteditable") === "true";
|
||||
} else {
|
||||
return '<div class="protyle-icons"></div>';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user