
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
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
To test the functionality of the plugin, you can use the provided playground:
playground
folder in the project directory.index.html
file in your web browser.$ 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
FAQs
Toggle block tool for Editor.js
The npm package editorjs-toggle-block receives a total of 1,993 weekly downloads. As such, editorjs-toggle-block popularity was classified as popular.
We found that editorjs-toggle-block demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.