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

Heuristic:0xranx OpenContext Warning Deprecated Plate Editor

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

Overview

Deprecation warning: the PlateJS editor subsystem has been replaced by Tiptap and its import is commented out in the main App component.

Description

The PlateMarkdown.jsx component and all its dependent editor modules (keyboardHandlers, clipboardHandlers, markdownRules, nodeTypes, CodeBlockElement, SlashMenu, Toolbars, listCompatNormalize) form the legacy PlateJS-based markdown editor. In App.jsx, the Plate import is commented out (line 19) and replaced by TiptapMarkdownEditor/TiptapMarkdownViewer from TiptapMarkdown.jsx (line 17, marked "migrated from PlateJS"). The Tiptap editor now serves all document editing and viewing in the desktop and mobile UI. The Plate editor code remains in the repository but is dead code — no active import path reaches it.

Usage

Treat all pages linked to this heuristic as documenting legacy/deprecated code. Do not extend or build upon these modules. For new editor work, use the Tiptap-based equivalents (TiptapMarkdown, TiptapSlashMenu, Tiptap_CodeBlockComponent, etc.). These pages are retained for historical reference and to document the migration boundary.

The Insight (Rule of Thumb)

  • Action: Do not import or extend PlateJS editor modules. Use Tiptap equivalents instead.
  • Value: The migration is complete — App.jsx imports TiptapMarkdownEditor/TiptapMarkdownViewer, not PlateMarkdownEditor/PlateMarkdownViewer.
  • Trade-off: The Plate editor pages are kept for reference but represent dead code paths.
  • Compatibility: All 9 Plate editor files are only imported by PlateMarkdown.jsx, which itself is no longer imported anywhere.

Reasoning

The migration from PlateJS to Tiptap is visible in src/ui/src/App.jsx:

// Line 17 (active):
import { TiptapMarkdownEditor, TiptapMarkdownViewer } from './components/TiptapMarkdown';
// Line 19 (commented out):
// import { PlateMarkdownEditor, PlateMarkdownViewer } from './components/PlateMarkdown';

The comment on line 16 explicitly states "Tiptap Editor (migrated from PlateJS)". The PlateMarkdown.jsx file (1548 lines) and its 8 dependent modules total ~3000 lines of editor code that no active import path reaches. These are retained in the repository as a fallback reference but should not be extended.

Related Pages

Page Connections

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