
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.
@coolbytes/editorjs-alerts
Advanced tools
This block tool provides alert banners for Editor.js. The tool also provides configuration to choose from different styles (see Styles) and to enable alignment options.
Using npm
npm install @coolbytes/editorjs-alerts
Using yarn
yarn add @coolbytes/editorjs-alerts
Include it in the tools property of Editor.js config:
const editor = new EditorJS({
tools: {
alert: Alert
}
});
| Field | Type | Optional | Default | Description |
|---|---|---|---|---|
| alertTypes | string[] | Yes | ['info', 'success', 'blocked', 'warning', 'danger'] | All supported alert types |
| defaultAlertType | string | Yes | 'info' | Preferred alert type |
| alertStyles | string[] | Yes | ['pastel', 'solid', 'outlined'] | All supported alert styles |
| defaultAlertStyle | string | Yes | 'pastel' | Preferred alert style |
| alignTypes | string[] | Yes | ['left', 'center', 'right', 'justify'] | All supported alignment options |
| defaultAlignType | string | Yes | 'left' | Preferred alignment type |
const editor = EditorJS({
tools: {
alert: {
class: Alert,
config: {
alertTypes: ['info', 'success', 'blocked', 'warning', 'danger'],
defaultAlertType: 'info',
alertStyles: ['pastel', 'solid', 'outlined'],
defaultAlertStyle: 'pastel',
alignTypes: ['left', 'center', 'right', 'justify'],
defaultAlignType: 'left'
}
}
}
});
| Field | Type | Description |
|---|---|---|
| text | string | Alert's text |
| alert | string | Alert type |
| alertStyle | string | Alert style |
| align | string | Alignment type |
Example:
{
"time": 1715969561758,
"blocks": [
{
"id": "_K5QcJHHuK",
"type": "alert",
"data": {
"text": "This is an info alert",
"alert": "info",
"alertStyle": "pastel",
"align": "left"
}
}
],
"version": "2.29.1"
}
FAQs
Alerts block tool for Editor.js
We found that @coolbytes/editorjs-alerts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

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.