mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
fix: shortcut for cut
This commit is contained in:
@@ -1138,6 +1138,15 @@ class SlateUtils {
|
||||
});
|
||||
}
|
||||
|
||||
public removeBetweenPoints(startPoint: Point, endPoint: Point) {
|
||||
const at = {
|
||||
anchor: startPoint,
|
||||
focus: endPoint,
|
||||
};
|
||||
Transforms.select(this.editor, at);
|
||||
this.editor.deleteFragment();
|
||||
}
|
||||
|
||||
public setDoubleLinkSearchSlash(point: Point) {
|
||||
const str = Editor.string(this.editor, {
|
||||
anchor: this.getStart(),
|
||||
|
||||
Reference in New Issue
Block a user