Skip to content
This is a test page. It will be removed before release.

Test

Status: Stable Beta Deprecated New

rocket setting puzzle seti:typescript github discord

Get Started Installation Minimal style
dynamic-code.ts
import { Editor } from '@domternal/core';
const editor = new Editor({ extensions: [] });
Terminal window
pnpm add @domternal/core

Built on ProseMirror

Reliable document model and battle-tested transaction system.

Ready-to-use UI

Toolbar, bubble menu, floating menu. All optional.

Extension System

13 nodes, 9 marks, 24 extensions. Tree-shakeable.

TypeScript First

Fully typed API, commands, and configs.

  1. Install packages

    Terminal window
    pnpm add @domternal/core @domternal/theme
  2. Create the editor

    import { Editor, StarterKit } from '@domternal/core';
    const editor = new Editor({
    element: document.getElementById('editor')!,
    extensions: [StarterKit],
    });
  3. Done

    Your editor is ready.

  • Directorypackages/
    • Directorycore/
      • Directorysrc/
        • Directoryextensions/
        • Directorynodes/
        • Directorymarks/
      • package.json
    • Directorytheme/
      • Directorysrc/
      • package.json
    • Directoryangular/
      • Directorysrc/
      • package.json
  • Directoryapps/
    • Directorydemo-angular/
  • package.json

Standardni:

const editor = new Editor({ extensions: [StarterKit] });

S naslovom:

editor.ts
import { Editor, StarterKit } from '@domternal/core';

S highlightanim linijama:

const editor = new Editor({
element: document.getElementById('editor')!,
extensions: [StarterKit],
});

S diff oznakom:

const editor = new Editor({
extensions: [
StarterKit,
// highlight-next-line
Placeholder.configure({ placeholder: 'Type here...' }), // [!code ++]
CodeBlock, // [!code --]
],
});