mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
This commit is contained in:
parent
4cb2875bda
commit
e6f727b961
1 changed files with 9 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue