BlockQuote Block for the Editor.js.
Allows to add Amazing Quote block.
Get the package
Still Work In progress You can use it by importing ./build/bundle.js file
Include module at your application
const BlockQuote = require('https://cdn.jsdelivr.net/gh/prashant1k99/blockquote@latest/build/bundle.js');
- Download folder
build
from repository - Add
build/bundle.js
file to your page.
You can load specific version of package from jsDelivr CDN.
https://cdn.jsdelivr.net/npm/@editorjs/link@2.0.0
Then require this script on page with Editor.js through the <script src=""></script>
tag.
Add a new Tool to the tools
property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
blockquote: {
class: BlockQuote,
config: {
placeholder: 'Your Custom placeholder'
}
}
}
...
});
This Tool returns data
with following format
Field | Type | Description |
---|---|---|
value | string |
Value of the quote block |
{
"type" : "blockquote",
"data" : {
"value" : "Whatever your great thoughts are"
}
}
We always love to customize the existing and make it better for everyone. Please go ahead and contribute to this project and I will check and accept pull request after checking the code..