---
title: "undoInputRule command"
description: "Use the undoInputRule command in Tiptap to undo the most recent input rule that was triggered. Learn more in our docs!"
canonical_url: "https://tiptap.dev/docs/editor/api/commands/nodes-and-marks/undo-input-rule"
---

# undoInputRule command

Use the undoInputRule command in Tiptap to undo the most recent input rule that was triggered. Learn more in our docs!

`undoInputRule` will undo the most recent input rule that was triggered.

## Use the undoInputRule command

```js
editor.commands.undoInputRule()
```
