---
title: "Gapcursor extension"
description: "Prevent your cursor from getting stuck with the Gapcursor extension in Tiptap. Learn more in our documentation."
---

> This page is for Tiptap 2.x. [See the latest version of this page.](https://tiptap.dev/docs/editor/extensions/functionality/gapcursor.md)

# Gapcursor extension

Prevent your cursor from getting stuck with the Gapcursor extension in Tiptap. Learn more in our documentation.

This extension loads the [ProseMirror Gapcursor plugin](https://github.com/ProseMirror/prosemirror-gapcursor) by Marijn Haverbeke, which adds a gap for the cursor in places that don’t allow regular selection. For example, after a table at the end of a document.

Note that Tiptap is headless, but the gapcursor needs CSS for its appearance. The [default CSS](https://github.com/ueberdosis/tiptap/tree/main/packages/core/src/style.ts) is loaded through the Editor class.

> **Interactive demo:** [Gapcursor](https://v2--tiptap-embed.netlify.app/preview/Extensions/Gapcursor)

## Install

```bash
npm install @tiptap/extension-gapcursor
```

## Source code

[packages/extension-gapcursor/](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-gapcursor/)
