MCPcopy Create free account
hub / github.com/editablejs/editable / undo

Function undo

packages/plugins/codeblock/src/plugin/yjs/undomanager.ts:121–122  ·  view source on GitHub ↗
({ state, dispatch })

Source from the content-addressed store, hash-verified

119export const yUndoManager = cmView.ViewPlugin.fromClass(YUndoManagerPluginValue)
120
121export const undo: cmState.StateCommand = ({ state, dispatch }) =>
122 state.facet(yUndoManagerFacet).undo() || true
123
124export const redo: cmState.StateCommand = ({ state, dispatch }) =>
125 state.facet(yUndoManagerFacet).redo() || true

Callers 1

beforeinputMethod · 0.70

Calls 1

undoMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…