{"id":13770022,"url":"https://github.com/kaaaaaaaaaaai/editorjs-button","last_synced_at":"2026-01-14T23:40:15.035Z","repository":{"id":45474668,"uuid":"321018429","full_name":"kaaaaaaaaaaai/editorjs-button","owner":"kaaaaaaaaaaai","description":"button plugin for Editor.js","archived":false,"fork":false,"pushed_at":"2024-05-07T01:08:34.000Z","size":356,"stargazers_count":28,"open_issues_count":5,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-30T03:49:38.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaaaaaaaaaaai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-13T08:30:37.000Z","updated_at":"2025-10-31T04:14:42.000Z","dependencies_parsed_at":"2024-05-07T02:27:51.895Z","dependency_job_id":"660696e6-22a5-433d-94fe-8d7d9b1b5254","html_url":"https://github.com/kaaaaaaaaaaai/editorjs-button","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"5d747f64548cb0ef75f336a918ecc621c4d28668"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/kaaaaaaaaaaai/editorjs-button","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaaaaaaaaaaai%2Feditorjs-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaaaaaaaaaaai%2Feditorjs-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaaaaaaaaaaai%2Feditorjs-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaaaaaaaaaaai%2Feditorjs-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaaaaaaaaaaai","download_url":"https://codeload.github.com/kaaaaaaaaaaai/editorjs-button/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaaaaaaaaaaai%2Feditorjs-button/sbom","scorecard":{"id":546677,"data":{"date":"2025-08-11","repo":{"name":"github.com/kaaaaaaaaaaai/editorjs-button","commit":"cada7cdbd6169da4b1032f68d442946a0ee3fd98"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 2/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T09:43:12.390Z","repository_id":45474668,"created_at":"2025-08-20T09:43:12.390Z","updated_at":"2025-08-20T09:43:12.390Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:00:33.586Z","updated_at":"2026-01-14T23:40:15.015Z","avatar_url":"https://github.com/kaaaaaaaaaaai.png","language":"JavaScript","funding_links":[],"categories":["Tools"],"sub_categories":["Block Tools"],"readme":"![](https://badgen.net/badge/Editor.js/v2.22.3/blue)\n\n# Set Link and Text and Generate button plugin for Editor.js\n\n![画面収録 2020-12-13 16 59 53](https://user-images.githubusercontent.com/2194021/102006852-7a6fb880-3d67-11eb-98d2-20b7e88672df.gif)\n\n### change log\n- v2.x\n  - toggle menu button\n- v3.x\n  - delete toggle button, and integration blockTune menu\n  - icon update\n\n## Installation\n\n### Install via NPM\n\nGet the package\n\n```shell\nnpm i --save editorjs-button\n```\n\nInclude module at your application\n\n```javascript\nconst anyButton = require('anyButton');\n```\n\n### Download to your project's source dir\n\n1. Upload folder `dist` from repository\n2. Add `dist/bundle.js` file to your page.\n\n### Load from CDN\n\n`https://cdn.jsdelivr.net/npm/editorjs-button@latest`\n\n## Usage\n\nAdd a new Tool to the `tools` property of the Editor.js initial config.\n\n```javascript\ntools: {\n        AnyButton: {\n          class: AnyButton,\n          inlineToolbar: false,\n          config:{\n            css:{\n              \"btnColor\": \"btn--gray\",\n            },\n            textValidation: (text) =\u003e {\n              console.log(\"error!\", text)\n              return true;\n            },\n            linkValidation: (text) =\u003e {\n              console.log(\"error!\", text)\n              return false;\n            }\n          }\n        },\n      },\n      i18n: {\n        messages: {\n          tools: {\n            \"AnyButton\": {\n              'Button Text': 'ボタンに表示するテキスト',\n              'Link Url': 'ボタンの飛び先のURL',\n              'Set': \"設定する\",\n              'Default Button': \"デフォルト\",\n            }\n          }\n        },\n      },\n}\n```\n## input field validation\n\nif you want to validate input field, you can use `textValidation` and `linkValidation` function.\n\n\n\n\n## Config Params\n\n`i18n` overwrite if want to change default placeholder text,\n\n```\ni18n: {\n    messages: {\n      tools: {s\n        \"AnyButton\": {\n          'Button Text': 'ボタンに表示するテキスト',\n          'Link Url': 'ボタンの飛び先のURL',\n          'Set': \"設定する\",\n          'Default Button': \"デフォルト\",\n        }\n      }\n    },\n},\n```\n\nif customize css, input filed, button design, and etc... \n\n```\nconfig:{\n    css:{\n      \"btnColor\": \"btn--gray\",\n    }\n}\n```\n\n## Output data\n\n| Field  | Type     | Description      |\n| ------ | -------- | ---------------- |\n| link   | `string` | Exclusion HTML Tag text |\n| text   | `string` | Exclusion HTML Tag text |\n\n\n```json\n{\n            \"type\" : \"AnyButton\",\n            \"data\" : {\n                \"link\" : \"https://editorjs.io/\",\n                \"text\" : \"editorjs official\"\n            }\n        }\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaaaaaaaaaaai%2Feditorjs-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaaaaaaaaaaai%2Feditorjs-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaaaaaaaaaaai%2Feditorjs-button/lists"}