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

Function redo

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

Source from the content-addressed store, hash-verified

122 state.facet(yUndoManagerFacet).undo() || true
123
124export const redo: cmState.StateCommand = ({ state, dispatch }) =>
125 state.facet(yUndoManagerFacet).redo() || true
126
127export const undoDepth = (state: cmState.EditorState) =>
128 state.facet(yUndoManagerFacet).undoManager.undoStack.length

Callers 1

beforeinputMethod · 0.70

Calls 1

redoMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…