---
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!"
---

> This page is for Tiptap 2.x. [See the latest version of this page.](https://tiptap.dev/docs/editor/api/commands/nodes-and-marks/undo-input-rule.md)

# 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()
```
