mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 22:08:48 +01:00
🚨
This commit is contained in:
parent
e9bf86e9d0
commit
ffd153d268
1 changed files with 5 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ import {WYSIWYG} from "./wysiwyg";
|
|||
import {Toolbar} from "./toolbar";
|
||||
import {Gutter} from "./gutter";
|
||||
import {Breadcrumb} from "./breadcrumb";
|
||||
import {onTransaction} from "./wysiwyg/transaction";
|
||||
import {onTransaction, transaction} from "./wysiwyg/transaction";
|
||||
import {fetchPost} from "../util/fetch";
|
||||
/// #if !MOBILE
|
||||
import {Title} from "./header/Title";
|
||||
|
|
@ -383,4 +383,8 @@ export class Protyle {
|
|||
public insert(html: string, isBlock = false, useProtyleRange = false) {
|
||||
insertHTML(html, this.protyle, isBlock, useProtyleRange);
|
||||
}
|
||||
|
||||
public transaction( doOperations: IOperation[], undoOperations?: IOperation[]) {
|
||||
transaction(this.protyle, doOperations, undoOperations);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue