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 PlateMarkdown Editor

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

Overview

⚠ DEPRECATED: Legacy PlateJS-based markdown editor component with full plugin configuration including lists, tables, code blocks, drag-and-drop, slash menu, floating toolbars, and markdown serialization/deserialization. Replaced by TiptapMarkdown; import is commented out in App.jsx. See Heuristic:0xranx_OpenContext_Warning_Deprecated_Plate_Editor.

Description

The PlateMarkdown.jsx component in src/ui/src/components/ is a comprehensive Plate editor setup. It configures all Plate plugins (basic blocks, marks, table, column layout, list-classic, link, autoformat, code block with lowlight), registers custom components (CodeBlockElement, SlashMenu, Toolbars), installs the list compat normalizer, attaches clipboard and keyboard handlers, and provides drag-and-drop for blocks via dnd-kit. It supports markdown import/export through the markdown rules plugin and integrates the PageRefPicker for page references.

Usage

Import this component as the markdown editor in the document view/edit workflow.

Code Reference

Source Location

Signature

// Default export: PlateMarkdown component
export default function PlateMarkdown({ docId, markdown, onChange, placeholder, readOnly })

Import

import PlateMarkdown from './components/PlateMarkdown';

I/O Contract

Inputs

Name Type Required Description
docId string No Document identifier
markdown string Yes Initial markdown content
onChange Function No Content change callback
placeholder string No Editor placeholder text
readOnly boolean No Read-only mode

Usage Examples

Basic Usage

import PlateMarkdown from './components/PlateMarkdown';

<PlateMarkdown
  docId="my-doc"
  markdown="# Hello World\n\nThis is content."
  onChange={(md) => setContent(md)}
  placeholder="Type / for commands..."
/>

Related Pages

Page Connections

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