mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🚨
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user