@jotx-labs/editor
v2.4.193
Published
Shared Tiptap editor for jotx - works in VS Code, web, and Electron
Readme
@jotx-labs/editor
A powerful, schema-driven Tiptap editor for the Jotx ecosystem. Designed for use in VS Code, web applications, and Electron environments.
Features
- Rich Text Editing: Built on top of Tiptap and Prosemirror.
- Math Support: KaTeX-powered LaTeX equation rendering with inline/block support and resize capabilities.
- Diagrams: Integrated Mermaid.js support for flowcharts, sequence diagrams, and more.
- Media: Image and video blocks with resizing and caption support.
- Structured Content: Support for tables, task lists, code blocks, and callouts.
- Theming: Fully themeable via CSS variables.
Installation
npm install @jotx-labs/editorUsage
import { JotxEditor } from '@jotx-labs/editor';
import '@jotx-labs/editor/dist/styles/JotxEditor.css';
function App() {
return (
<JotxEditor
content="Hello World"
onChange={(content) => console.log(content)}
/>
);
}License
Apache-2.0
