{"id":13769540,"url":"https://github.com/kaaaaaaaaaaai/paragraph-with-alignment","last_synced_at":"2026-01-11T03:32:51.714Z","repository":{"id":42705360,"uuid":"285786362","full_name":"kaaaaaaaaaaai/paragraph-with-alignment","owner":"kaaaaaaaaaaai","description":"Paragraph Tool for Editor.js 2.0","archived":false,"fork":false,"pushed_at":"2023-04-28T15:52:41.000Z","size":611,"stargazers_count":49,"open_issues_count":9,"forks_count":19,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-05T06:14:55.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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}},"created_at":"2020-08-07T09:07:18.000Z","updated_at":"2025-04-09T11:46:42.000Z","dependencies_parsed_at":"2024-01-06T20:53:58.811Z","dependency_job_id":null,"html_url":"https://github.com/kaaaaaaaaaaai/paragraph-with-alignment","commit_stats":{"total_commits":64,"total_committers":9,"mean_commits":7.111111111111111,"dds":0.65625,"last_synced_commit":"2e38d198452a49b8405480a47cc6b029da760d16"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaaaaaaaaaaai%2Fparagraph-with-alignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaaaaaaaaaaai%2Fparagraph-with-alignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaaaaaaaaaaai%2Fparagraph-with-alignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaaaaaaaaaaai%2Fparagraph-with-alignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaaaaaaaaaaai","download_url":"https://codeload.github.com/kaaaaaaaaaaai/paragraph-with-alignment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253507144,"owners_count":21919158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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:28.111Z","updated_at":"2026-01-11T03:32:51.668Z","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.0/blue)\n\n# Paragraph Tool with alignment for Editor.js\n\n#### If you can help, please push the Star button :)\n\n![image](https://user-images.githubusercontent.com/2194021/113742029-29803780-973d-11eb-8a66-c599d5d08c16.png)\n\n### If you want to add an alignment to another block\nThis is useful\n[editorjs-alignment-blocktune](https://github.com/kaaaaaaaaaaai/editorjs-alignment-blocktune)\n\n## versions\n| version  | Description     |\n| ------ | -------- |\n| @2.x   | support alignment left/center/right |\n| @3.x | support alignment left/center/right/justify |\n\n## Installation\n\n### Install via NPM\n\nGet the package\n\n```shell\nnpm i --save editorjs-paragraph-with-alignment@3.x\n```\n\nInclude module at your application\n\n```javascript\nconst Paragraph = require('editorjs-paragraph-with-alignment');\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-paragraph-with-alignment@3.0.0`\n\n## Usage\n\nThe Paragraph tool is included at editor.js by default, so you don't need to connect it manually.\nIf you want to connect your customized version of this tool, do not forget to use the [`initialBlock`](https://editorjs.io/configuration#change-the-default-block)\noption of the editor config.\n\nAdd a new Tool to the `tools` property of the Editor.js initial config.\n\n```javascript\nvar editor = EditorJS({\n  ...\n\n  tools: {\n    ...\n    paragraph: {\n      class: Paragraph,\n      inlineToolbar: true,\n    },\n  }\n\n  ...\n});\n```\n\n## Config Params\n\nThe Paragraph Tool supports these configuration parameters:\n\n| Field | Type     | Description        |\n| ----- | -------- | ------------------ |\n| placeholder | `string` | The placeholder. Will be shown only in the first paragraph when the whole editor is empty.  |\n| preserveBlank | `boolean` | (default: `false`) Whether or not to keep blank paragraphs when saving editor data |\n\n## Output data\n\n| Field  | Type     | Description      |\n| ------ | -------- | ---------------- |\n| text   | `string` | paragraph's text |\n| alignment   | `string` | left/center/right/justify |\n\n\n```json\n{\n    \"type\" : \"paragraph\",\n    \"data\" : {\n        \"text\" : \"Check out our projects on a \u003ca href=\\\"https://github.com/codex-team\\\"\u003eGitHub page\u003c/a\u003e.\",\n        \"alignment\": \"left\"\n    }\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaaaaaaaaaaai%2Fparagraph-with-alignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaaaaaaaaaaai%2Fparagraph-with-alignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaaaaaaaaaaai%2Fparagraph-with-alignment/lists"}