Gathering detailed insights and metrics for @editorjs/header
Gathering detailed insights and metrics for @editorjs/header
Gathering detailed insights and metrics for @editorjs/header
Gathering detailed insights and metrics for @editorjs/header
npm install @editorjs/header
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
104 Stars
160 Commits
122 Forks
6 Watching
12 Branches
18 Contributors
Updated on 27 Nov 2024
TypeScript (92.74%)
JavaScript (5.1%)
CSS (2.16%)
Cumulative downloads
Total Downloads
Last day
-8.3%
9,997
Compared to previous day
Last week
0.7%
56,482
Compared to previous week
Last month
7.8%
233,722
Compared to previous month
Last year
40%
2,410,591
Compared to previous year
2
4
Provides Headings Blocks for the Editor.js.
Get the package
1yarn add @editorjs/header
Include module at your application
1import Header from '@editorjs/header';
Optionally, you can load this tool from CDN JsDelivr CDN
Add a new Tool to the tools
property of the Editor.js initial config.
1var editor = EditorJS({ 2 ... 3 4 tools: { 5 ... 6 header: Header, 7 }, 8 9 ... 10});
You can insert this Block by a useful shortcut. Set it up with the tools[].shortcut
property of the Editor's initial config.
1var editor = EditorJS({ 2 ... 3 4 tools: { 5 ... 6 header: { 7 class: Header, 8 shortcut: 'CMD+SHIFT+H', 9 }, 10 }, 11 12 ... 13});
All properties are optional.
Field | Type | Description |
---|---|---|
placeholder | string | header's placeholder string |
levels | number[] | enabled heading levels |
defaultLevel | number | default heading level |
1var editor = EditorJS({ 2 ... 3 4 tools: { 5 ... 6 header: { 7 class: Header, 8 config: { 9 placeholder: 'Enter a header', 10 levels: [2, 3, 4], 11 defaultLevel: 3 12 } 13 } 14 } 15 16 ... 17});
You can select one of six levels for heading.
Field | Type | Description |
---|---|---|
text | string | header's text |
level | number | level of header: 1 for H1, 2 for H2 ... 6 for H6 |
1{ 2 "type": "header", 3 "data": { 4 "text": "Why Telegram is the best messenger", 5 "level": 2 6 } 7}
No vulnerabilities found.
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
7 existing vulnerabilities detected
Details
Reason
3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More