mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 14:12:34 +01:00
This commit is contained in:
parent
00f7439daf
commit
d697f2799f
4 changed files with 12 additions and 20 deletions
|
|
@ -74,10 +74,6 @@ export class Preview {
|
|||
this.element.appendChild(previewElement);
|
||||
|
||||
this.element.addEventListener("click", (event) => {
|
||||
if (protyle.model) {
|
||||
setPanelFocus(protyle.model.element.parentElement.parentElement);
|
||||
updateOutline(getAllModels(), protyle.model.editor.protyle);
|
||||
}
|
||||
let target = event.target as HTMLElement;
|
||||
while (target && !target.isEqualNode(this.element)) {
|
||||
if (target.tagName === "A") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue