Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:0xranx OpenContext Tiptap TableToolbar

From Leeroopedia
Knowledge Sources
Domains Editor, React
Last Updated 2026-10-24 00:00 GMT

Overview

Tiptap floating toolbar for table manipulation, providing add/remove row and column operations and table deletion via a BubbleMenu.

Description

The TableToolbar.jsx in src/ui/src/editor/tiptap/ uses Tiptap's BubbleMenu with a custom pluginKey to show a floating toolbar when the cursor is inside a table. It provides seven actions: add row before/after, add column before/after, delete row, delete column, and delete table. Each action calls the corresponding Tiptap chain command.

Usage

Import and render this component with a Tiptap editor instance that has the Table extension enabled.

Code Reference

Source Location

Signature

function TiptapTableToolbar({ editor })
export default memo(TiptapTableToolbar);

Import

import TiptapTableToolbar from './editor/tiptap/TableToolbar';

I/O Contract

Inputs

Name Type Required Description
editor Editor Yes Tiptap editor with Table extension

Usage Examples

Rendering Table Toolbar

import TiptapTableToolbar from './editor/tiptap/TableToolbar';

<TiptapTableToolbar editor={editor} />

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment