Paragraph Tool for CodeX.Editor
npm install codex.editor.paragraph
Basic text Tool for the CodeX Editor.
Get the package
``shell`
npm i --save-dev codex.editor.paragraph
Include module at your application
`javascript`
const Paragraph = require('codex.editor.paragraph');
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.paragraph@2.0.2
Then require this script on page with CodeX Editor.
`html`
Add a new Tool to the tools property of the CodeX Editor initial config.
`javascript`
var editor = CodexEditor({
...
tools: {
...
paragraph: {
class: Paragraph,
inlineToolbar: true,
},
}
...
});
This Tool has no config params
| Field | Type | Description |
| ------ | -------- | ---------------- |
| text | string | paragraph's text |
`json``
{
"type" : "paragraph",
"data" : {
"text" : "Check out our projects on a GitHub page.",
}
}