editorjs-placeholder-tool
v1.0.4
Published
This is a custom tool for [Editor.js](https://editorjs.io/) that adds a editorjs-placeholder-tool feature.
Downloads
24
Maintainers
Readme
editorjs-placeholder-tool
This is a custom tool for Editor.js that adds a editorjs-placeholder-tool feature.
Installation
Install the package using npm:
npm install @editorjs/editorjs-placeholder-tool
import PlaceholderTool from '@editorjs/editorjs-placeholder-tool';
Usage
Add a new Tool to the tools
property of the placeholder Editor initial config.
import PlaceholderTool from '@editorjs/editorjs-placeholder-tool';
const editor = new EditorJS({
// Other Editor.js configuration options...
tools: {
// Other tools...
placeholder: {
class: PlaceholderTool,
config: {
placeholder: 'Enter your text here...',
},
},
},
});