{"id":28633493,"url":"https://github.com/rickx81/ckeditor5-line-height","last_synced_at":"2025-06-12T15:08:41.722Z","repository":{"id":212215019,"uuid":"730967882","full_name":"rickx81/ckeditor5-line-height","owner":"rickx81","description":"line height plugin for ckeditor5","archived":false,"fork":false,"pushed_at":"2025-04-21T09:40:48.000Z","size":1305,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-29T11:15:17.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rickx81.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2023-12-13T04:20:12.000Z","updated_at":"2025-04-21T09:40:40.000Z","dependencies_parsed_at":"2025-04-15T04:31:59.540Z","dependency_job_id":"15b4db20-558d-4f46-ac8e-2b3cc2187b93","html_url":"https://github.com/rickx81/ckeditor5-line-height","commit_stats":null,"previous_names":["rickx81/ckeditor5-line-height"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/rickx81/ckeditor5-line-height","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickx81%2Fckeditor5-line-height","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickx81%2Fckeditor5-line-height/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickx81%2Fckeditor5-line-height/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickx81%2Fckeditor5-line-height/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rickx81","download_url":"https://codeload.github.com/rickx81/ckeditor5-line-height/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickx81%2Fckeditor5-line-height/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259490549,"owners_count":22865767,"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":"2025-06-12T15:08:36.196Z","updated_at":"2025-06-12T15:08:41.708Z","avatar_url":"https://github.com/rickx81.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"@rickx/ckeditor5-line-height\n============================\n\nThis package was created by the [ckeditor5-package-generator](https://www.npmjs.com/package/ckeditor5-package-generator) package.\n# ckeditor5-line-height\n\nThe line height plugin for ckeditor5.\n\n## Quick start\n\nFirst, install the build from npm:\n\n```bash\npnpm i @rickx/ckeditor5-line-height\n# or\nyarn add @rickx/ckeditor5-line-height\n# or\nnpm i @rickx/ckeditor5-line-height\n```\n\n### [How to use your plugin in new installation methods?](https://ckeditor.com/docs/ckeditor5/latest/updating/nim-migration/custom-plugins.html#how-to-use-your-plugin-in-new-installation-methods)\n\nUse it in your application:\n\n```ts\n// Importing ClassicEditor\nimport { ClassicEditor } from 'ckeditor5'\n\n// Importing the plugin code.\nimport { LineHeight } from '@rickx/ckeditor5-line-height'\n\n// Optionally importing the translations.\nimport lineHeightTranslations from '@rickx/ckeditor5-line-height/translations/zh-cn.js'\n```\n\nAdd it to your editor:\n\n```js\nClassicEditor\n  .create(document.querySelector('#editor'), {\n    plugins: [\n      /* ..., */\n      LineHeight, // add it to your plugins array\n    ],\n    lineHeight: {\n      // specify your otions in the lineHeight config object.\n      // Default values are ['default', 1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2, 2.5]\n      options: [\n        'default',\n        '10px',\n        2,\n        '150%',\n        '8em',\n        {\n          title: 'Custom Title',\n          model: '48px',\n        },\n      ],\n      supportAllValues: true,\n    },\n    toolbar: [\n      /* ..., */\n      'lineHeight', // add the button to your toolbar\n    ],\n    transitions: [\n      /* ..., */\n      lineHeightTranslations, // line-height translations\n    ]\n  })\n  .then(/* ... */)\n  .catch(/* ... */)\n```\n\n## License\n\nThe `@rickx/ckeditor5-line-height` package is available under [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickx81%2Fckeditor5-line-height","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frickx81%2Fckeditor5-line-height","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickx81%2Fckeditor5-line-height/lists"}