Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jun 23, 2023
1 parent abdef4f commit 8ff0376
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions siyuan.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ interface ICommandOption {

interface IProtyleOption {
action?: string[],
mode?: "preview" | "wysiwyg",
mode?: "preview" | "wysiwyg",
blockId: string
key?: string
scrollAttr?: {
Expand All @@ -156,6 +156,7 @@ interface IProtyleOption {
breadcrumbDocName?: boolean
}
typewriterMode?: boolean;

after?(protyle: Protyle): void;
}

Expand Down Expand Up @@ -224,6 +225,12 @@ export abstract class Plugin {
app: App;
commands: ICommandOption[];
setting: Setting;
protyleSlash: {
filter: string[],
html: string,
id: string
callback(protyle: Protyle): void
}[];

constructor(options: {
app: App,
Expand Down Expand Up @@ -319,7 +326,7 @@ export class Protyle {
* @param {boolean} [isBlock=false]
* @param {boolean} [useProtyleRange=false]
*/
insert(html: string, isBlock: boolean, useProtyleRange: boolean): void
insert(html: string, isBlock?: boolean, useProtyleRange?: boolean): void
}

export class Setting {
Expand Down

0 comments on commit 8ff0376

Please sign in to comment.