mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 03:58:07 +01:00
🎨 https://github.com/siyuan-note/siyuan/issues/5066 "click-editorcontent" | "click-pdf"
This commit is contained in:
parent
839308173a
commit
ca2d08de27
3 changed files with 8 additions and 2 deletions
|
|
@ -30,8 +30,11 @@ export class Asset extends Model {
|
|||
this.element = options.tab.panelElement;
|
||||
this.path = options.path;
|
||||
this.pdfId = options.page;
|
||||
this.element.addEventListener("click", () => {
|
||||
this.element.addEventListener("click", (event) => {
|
||||
setPanelFocus(this.element.parentElement.parentElement);
|
||||
this.app.plugins.forEach(item => {
|
||||
item.eventBus.emit("click-pdf", event);
|
||||
});
|
||||
});
|
||||
if (typeof this.pdfId === "string") {
|
||||
this.getPdfId(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue