diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts index a7a8ae596..da228970a 100644 --- a/app/src/protyle/index.ts +++ b/app/src/protyle/index.ts @@ -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 { @@ -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); + } }