mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
169586e9aa
commit
4704284ad2
2 changed files with 8 additions and 1 deletions
|
|
@ -1199,6 +1199,12 @@ export class Toolbar {
|
|||
if (!protyle.disabled) {
|
||||
textElement.select();
|
||||
}
|
||||
this.app.plugins.forEach(item => {
|
||||
item.eventBus.emit("open-noneditableblock", {
|
||||
protyle,
|
||||
toolbar: this
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
public showCodeLanguage(protyle: IProtyle, languageElement: HTMLElement) {
|
||||
|
|
|
|||
3
app/src/types/index.d.ts
vendored
3
app/src/types/index.d.ts
vendored
|
|
@ -22,7 +22,8 @@ type TOperation =
|
|||
| "removeFlashcards"
|
||||
type TBazaarType = "templates" | "icons" | "widgets" | "themes" | "plugins"
|
||||
type TCardType = "doc" | "notebook" | "all"
|
||||
type TEventBus = "ws-main" | "click-blockicon" | "click-editorcontent" | "click-pdf" | "click-editortitleicon"
|
||||
type TEventBus = "ws-main" | "click-blockicon" | "click-editorcontent" | "click-pdf" |
|
||||
"click-editortitleicon" | "open-noneditableblock"
|
||||
|
||||
declare module "blueimp-md5"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue