mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-11 15:12:33 +01:00
This commit is contained in:
parent
681489bc24
commit
0fa75ec71a
5 changed files with 14 additions and 9 deletions
|
|
@ -321,13 +321,6 @@ export const disabledProtyle = (protyle: IProtyle) => {
|
|||
protyle.wysiwyg.element.querySelectorAll('.protyle-action[draggable="true"]').forEach(item => {
|
||||
item.setAttribute("draggable", "false");
|
||||
});
|
||||
protyle.wysiwyg.element.querySelectorAll(".av").forEach((item: HTMLElement) => {
|
||||
const headerElement = item.querySelector(".av__row--header") as HTMLElement;
|
||||
if (headerElement) {
|
||||
headerElement.style.transform = "";
|
||||
(item.querySelector(".av__row--footer") as HTMLElement).style.transform = "";
|
||||
}
|
||||
});
|
||||
if (protyle.breadcrumb) {
|
||||
protyle.breadcrumb.element.parentElement.querySelector('[data-type="readonly"] use').setAttribute("xlink:href", "#iconLock");
|
||||
protyle.breadcrumb.element.parentElement.querySelector('[data-type="readonly"]').setAttribute("aria-label", window.siyuan.config.editor.readOnly ? window.siyuan.languages.tempUnlock : window.siyuan.languages.unlockEdit);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue