This commit is contained in:
Vanessa 2023-05-27 10:34:51 +08:00
parent 169586e9aa
commit 4704284ad2
2 changed files with 8 additions and 1 deletions

View file

@ -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) {

View file

@ -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"