mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
03fe74710c
* fix: Undo/redo events duplicated * fix: Guard history use Prevent cross polination of editors * Remove unused check
16 lines
346 B
TypeScript
16 lines
346 B
TypeScript
import { undoInputRule } from "prosemirror-inputrules";
|
|
import type { Command } from "prosemirror-state";
|
|
import Extension from "../lib/Extension";
|
|
|
|
export default class InputRuleUndo extends Extension {
|
|
get name() {
|
|
return "inputRuleUndo";
|
|
}
|
|
|
|
keys(): Record<string, Command> {
|
|
return {
|
|
Backspace: undoInputRule,
|
|
};
|
|
}
|
|
}
|