Raw HTML Tool for CodeX Editor
npm install codex.editor.raw
Raw Tool for the CodeX Editor allows to include raw HTML code in your articles.

Get the package
``shell`
npm i --save-dev codex.editor.raw
Include module at your application
`javascript`
const RawTool = require('codex.editor.raw');
1. Upload folder dist from repositorydist/bundle.js
2. Add file to your page.
You can load specific version of package from jsDelivr CDN.
https://cdn.jsdelivr.net/npm/codex.editor.raw@2.0.0
Require this script on a page with CodeX Editor.
`html`
Add a new Tool to the tools property of the CodeX Editor initial config.
`javascript`
var editor = CodexEditor({
...
tools: {
...
raw: RawTool,
}
...
});
| Field | Type | Description |
| ----------- | -------- | ------------------------------|
| placeholder | string | Raw Tool's placeholder string |
This Tool returns raw HTML code.
`json``
{
"type" : "raw",
"data" : {
"html": "Any HTML code",
}
}