# @editorjs/raw

> Raw HTML Tool for Editor.js

Latest version **2.5.1** (published 2024-12-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @editorjs/raw
pnpm add @editorjs/raw
yarn add @editorjs/raw
bun add @editorjs/raw
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.5.1 |
| Published | 2024-12-04 |
| First published | 2019-03-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 71 |
| Author | CodeX |
| Maintainers | codex-team |
| Keywords | codex editor, raw, editorjs |

## Links

- npm: https://www.npmjs.com/package/@editorjs/raw
- Repository: https://github.com/editor-js/raw
- npm.io page: https://npm.io/package/@editorjs/raw

## Dependencies (1)

- [@codexteam/icons](https://npm.io/package/@codexteam/icons.md) ^0.0.4

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 2.5.1 (latest) — 2024-12-04
- 2.5.0 — 2023-11-16
- 2.4.0 — 2022-11-29
- 2.3.1 — 2022-04-22
- 2.3.0 — 2020-11-10
- 2.2.0 — 2020-09-29
- 2.1.2 — 2020-03-27
- 2.1.1 — 2019-03-03
- 2.1.0 — 2019-03-03

## README

![](https://badgen.net/badge/CodeX%20Editor/v2.0/blue)

# Raw HTML Tool for Editor.js

Raw Tool for the [Editor.js](https://codex.so/editor) allows to include raw HTML code in your articles.

![](https://capella.pics/5195d944-966d-40cf-8f86-78c6349d94cb.jpg)

## Installation

Get the package

```shell
yarn add @editorjs/raw
```

Include module at your application

```javascript
import RawTool from '@editorjs/raw';
```

Optionally, you can load this tool from CDN [JsDelivr CDN](https://cdn.jsdelivr.net/npm/@editorjs/raw@latest)

## Usage

Add a new Tool to the `tools` property of the CodeX Editor initial config.

```javascript
var editor = CodexEditor({
  ...
  
  tools: {
    ...
    raw: RawTool,
  }
  
  ...
});
```

## Config Params

| Field       | Type     | Description                   |
| ----------- | -------- | ------------------------------|
| placeholder | `string` | Raw Tool's placeholder string |

## Output data

This Tool returns raw HTML code.

```json
{
    "type" : "raw",
    "data" : {
        "html": "<div style=\"background: #000; color: #fff; font-size: 30px; padding: 50px;\">Any HTML code</div>",
    }
}
```

---
_Source: https://npm.io/package/@editorjs/raw · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
