Skip to content

Commit

Permalink
🎨 fix #8598
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jun 22, 2023
1 parent 4cb2875 commit e6f727b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/src/protyle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {setEmpty} from "../mobile/util/setEmpty";
import {resize} from "./util/resize";
import {getDocByScroll} from "./scroll/saveScroll";
import {App} from "../index";
import {insertHTML} from "./util/insertHTML";

export class Protyle {

Expand Down Expand Up @@ -355,4 +356,12 @@ export class Protyle {
public resize() {
resize(this.protyle);
}

public reload(focus: boolean) {
reloadProtyle(this.protyle, focus);
}

public insert(html: string, isBlock = false, useProtyleRange = false) {
insertHTML(html, this.protyle, isBlock, useProtyleRange);
}
}

0 comments on commit e6f727b

Please sign in to comment.