Skip to content
RAW Tool for CodeX Editor 2.0
Branch: master
Clone or download
Latest commit e0ace3a Mar 3, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Rename to @editorjs/raw Mar 3, 2019
src Rename to @editorjs/raw Mar 3, 2019
.eslintrc Initial Sep 2, 2017
.gitignore CodeX Editor Raw Tool version 2.0.1 Aug 5, 2018
.jshintrc Initial Sep 2, 2017
.npmignore Rename to @editorjs/raw Mar 3, 2019
.postcssrc Initial Sep 2, 2017
.stylelintrc Initial Sep 2, 2017
LICENSE Update readme Mar 3, 2019
package.json Update readme Mar 3, 2019
webpack.config.js Rename to @editorjs/raw Mar 3, 2019
yarn.lock Rename to @editorjs/raw Mar 3, 2019

Raw HTML Tool for Editor.js

Raw Tool for the Editor.js allows to include raw HTML code in your articles.


Install via NPM

Get the package

npm i --save-dev @editorjs/raw

Include module at your application

const RawTool = require('@editorjs/raw');

Download to your project's source dir

  1. Upload folder dist from repository
  2. Add dist/bundle.js file to your page.

Load from CDN

You can load specific version of package from jsDelivr CDN.

Require this script on a page with CodeX Editor.

<script src="..."></script>


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

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.

    "type" : "raw",
    "data" : {
        "html": "<div style=\"background: #000; color: #fff; font-size: 30px; padding: 50px;\">Any HTML code</div>",
You can’t perform that action at this time.