
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
svelte-editorjs2
Advanced tools
A wrapper for EditorJS in Svelte
# yarn
yarn add @editorjs/editorjs svelte-editorjs
# npm
npm i -S @editorjs/editorjs svelte-editorjs
To use it import the createEditor function from svelte-editorjs.
<script>
import { createEditor } from 'svelte-editorjs';
const { editor, data, isReady } = createEditor();
</script>
<div use:editor />
editor is an action to use in your element that will contain the editor. It can also be used as a readable store that contains the following props:
instance: the editor's instance as shown in their docs.save: a shortcut to instance.save that also updates the data store.clear: a shortcut to instance.clear that also updates the data store.render: a shortcut to instance.render.data is a writable store containing the data from the editor. It'll only be updated on save. Mutating this store will also mutate the editors content.isReady is a readable store containing a single boolean indicating if the editor is ready to be used.The createEditor accepts the same properties that EditorjS accepts as options except for holderId and holder, since that's determined by the action.
MIT
FAQs
An EditorJS wrapper for Svelte, built for svelte V4
We found that svelte-editorjs2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.