open-index/open-npm huggingface dataset:
npm package: @raazkhnl/rk-editor-core
Description: Core engine for RK Word Editor built with Tiptap and ProseMirror
Author: RaaZ Khanal
Latest version: 3.2.1

# @raazkhnl/rk-editor-core

The high-performance core engine for RK Word Editor, built on top of Tiptap and ProseMirror.

## Features

- **Standard Formatting**: Bold, Italic, Underline, Strikethrough, Subscript, Superscript.
- **Advanced Typography**: Control font family, size, line height, paragraph spacing, and indentation.
- **Table Support**: Create and manage tables with headers, merging/splitting, and resizing.
- **Lists**: Bullet, numbered, and task lists with multi-level support.
- **Devanagari Support**: Built-in support for Nepali numbering system (१, २, ३...).
- **Media**: Image upload with resizing and drag-and-drop support.
- **Export/Import**: Support for DOCX, Markdown, and HTML formats.
- **Productivity**: Track changes, slash commands, and table of contents.

## Installation

```bash
npm install @raazkhnl/rk-editor-core
```

[NPM Package Link](https://www.npmjs.com/package/@raazkhnl/rk-editor-core)

## Usage (Standalone Text Field)

If you want to use the editor as a professional text field in your own project without the pre-built toolbar, use the core engine directly:

```typescript
import { WordEditor } from '@raazkhnl/rk-editor-core';

// Initialize the editor
const editor = new WordEditor({
  element: document.getElementById('editor'),
  initialContent: '<p>Start typing...</p>',
  onUpdate: (json) => {
    // Handle content changes
    console.log(json);
  }
});

// Access the content
const html = editor.getHTML();
const json = editor.getJSON();

// Manually trigger commands
editor.commands.bold();
```

## License

MIT
npm package: @raazkhnl/rk-editor-ui
Description: UI components for RK Word Editor
Author: RaaZ Khanal
Latest version: 3.2.1

# @raazkhnl/rk-editor-ui

A feature-rich, Microsoft Word-inspired User Interface for the RK Word Editor.

## Features

- **Menu Bar**: Comprehensive File, Edit, Insert, and Format menus.
- **Dynamic Toolbar**: Real-time formatting controls for text, paragraphs, and tables.
- **Command Palette**: Quickly search and access all commands via `Ctrl+K`.
- **Professional Shell**: A complete editor environment with word count, print styles, and dark mode support.
- **Customizable**: Easily integrable into any web application.

## Installation

To get the complete experience, we recommend installing both the core engine and the UI package:

```bash
npm install @raazkhnl/rk-editor-ui @raazkhnl/rk-editor-core
```

[NPM Package Link](https://www.npmjs.com/package/@raazkhnl/rk-editor-ui)

## Usage

To use the full editor with the toolbar and shell:

```typescript
import { WordEditor } from '@raazkhnl/rk-editor-core';
import { WordToolbar } from '@raazkhnl/rk-editor-ui';
import '@raazkhnl/rk-editor-ui/styles.css';

// 1. Initialize the Core Editor
const editor = new WordEditor({
  element: document.getElementById('editor-area'),
});

// 2. Attach the UI Toolbar/Shell
const toolbar = new WordToolbar(editor, document.getElementById('toolbar-container'));
```

## Styling

Ensure you import the core styles for the toolbar and editor area:

```typescript
import '@raazkhnl/rk-editor-ui/styles.css';
```

## License

MIT