
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
editorjs-header-with-alignment
Advanced tools
Provides Headings Blocks for the Editor.js.
Get the package
npm i --save editorjs-header-with-alignment
Include module at your application
const Header = require("editorjs-header-with-alignment");
dist
from repositorydist/bundle.js
file to your page.Add a new Tool to the tools
property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
header: Header,
},
...
});
All properties are optional.
Field | Type | Description |
---|---|---|
placeholder | string | header's placeholder string |
levels | number[] | enabled heading levels |
defaultLevel | number | default heading level |
defaultAlignment | string | default alignment level |
var editor = EditorJS({
...
tools: {
...
header: {
class: Header,
config: {
placeholder: 'Enter a header',
levels: [2, 3, 4],
defaultLevel: 3,
defaultAlignment: 'left'
}
}
}
...
});
Field | Type | Description |
---|---|---|
text | string | header's text |
level | number | level of header: 1 for H1, 2 for H2 ... 6 for H6 |
align | string | heder alignment: 'left', 'center', 'justify', 'right |
{
"type": "header",
"data": {
"text": "Why Telegram is the best messenger",
"level": 2,
"align": "left"
}
}
FAQs
Header Tool With Alignment for Editor.js
The npm package editorjs-header-with-alignment receives a total of 737 weekly downloads. As such, editorjs-header-with-alignment popularity was classified as not popular.
We found that editorjs-header-with-alignment 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
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.