Quote Tool
Provides Quote Blocks for the CodeX Editor.
Installation
Install via NPM
Get the package
npm i --save-dev codex.editor.quote
Include module at your application
const Quote = ;
Download to your project's source dir
- Upload folder
dist
from repository - Add
dist/bundle.js
file to your page.
Load from CDN
You can load specific version of package from jsDelivr CDN.
https://cdn.jsdelivr.net/npm/codex.editor.quote@2.0.0
Then require this script on page with CodeX Editor.
Usage
Add a new Tool to the tools
property of the CodeX Editor initial config.
var editor = ;
Or init Quote Tool with additional settings
var editor = ;
Config Params
Field | Type | Description |
---|---|---|
quotePlaceholder | string |
quote's placeholder string |
captionPlaceholder | string |
caption's placeholder string |
Tool's settings
You can choose alignment for the quote. It takes no effect while editing, but saved the «alignment» param.
Output data
Field | Type | Description |
---|---|---|
text | string |
quote's text |
caption | string |
caption or an author |
alignment | string |
left or center |