Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
editorjs-toggle-block
Advanced tools
Toggle block tool for Editor.js
$ npm i --save-dev editorjs-toggle-block
Include module at your application
import ToggleBlock from 'editorjs-toggle-block';
You can load a specific version of the package from jsDelivr CDN.
Require this script on a page with Editor.js.
<script src="https://cdn.jsdelivr.net/npm/editorjs-toggle-block"></script>
Add a new tool to the tools
property of the Editor.js initial config.
const editor = EditorJS({
tools: {
toggle: {
class: ToggleBlock,
inlineToolbar: true,
},
},
});
>
character followed by Space
to create a new toggle.Shift
+ Tab
to extract a nested block.Tab
to insert an existing block into a toggle.$ npm run build:dev
$ npm run build
dist/bundle.js
$ npm run test
We welcome everyone to contribute. Make sure you have read the CODE_OF_CONDUCT before.
For information on how to contribute, please refer to our CONTRIBUTING guide.
Features and bug fixes are listed in the CHANGELOG file.
This library is licensed under an MIT license. See LICENSE for details.
Made with 💙 by kommitters Open Source
0.3.6 (07.12.2022)
FAQs
Toggle block tool for Editor.js
The npm package editorjs-toggle-block receives a total of 1,059 weekly downloads. As such, editorjs-toggle-block popularity was classified as popular.
We found that editorjs-toggle-block demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.