{"id":21832886,"url":"https://github.com/null-none/draft-js-first-line-heading","last_synced_at":"2025-10-03T13:18:58.925Z","repository":{"id":57215967,"uuid":"129214148","full_name":"null-none/draft-js-first-line-heading","owner":"null-none","description":"The plugin force block style on first line for a heading/title. Alternatives to Medium Editor.","archived":false,"fork":false,"pushed_at":"2020-05-06T18:43:55.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T01:48:47.703Z","etag":null,"topics":["draft-js","plugin","plugins","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/null-none.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-12T07:53:53.000Z","updated_at":"2020-05-06T18:44:04.000Z","dependencies_parsed_at":"2022-08-26T13:31:49.875Z","dependency_job_id":null,"html_url":"https://github.com/null-none/draft-js-first-line-heading","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fdraft-js-first-line-heading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fdraft-js-first-line-heading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fdraft-js-first-line-heading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fdraft-js-first-line-heading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/null-none","download_url":"https://codeload.github.com/null-none/draft-js-first-line-heading/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244807285,"owners_count":20513608,"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":["draft-js","plugin","plugins","react"],"created_at":"2024-11-27T19:26:50.538Z","updated_at":"2025-10-03T13:18:58.802Z","avatar_url":"https://github.com/null-none.png","language":"JavaScript","readme":"# draft-js-first-line-heading\nThe plugin force block style on first line for a heading/title. Alternatives to Medium Editor.\n\n## Install\n\n```bash\n$ npm install draft-js-first-line-heading\n```\n\n## Usage\n\n```js\nimport createFirstLineHeadingPLugin from 'draft-js-first-line-heading';\nconst firstLineHeading = createFirstLineHeadingPLugin();\n\n...\n\nconst plugins = [firstLineHeading];\n\nlet lines = this.state.story.getCurrentContent().getPlainText().split('\\n');\nlet title = lines[0];\nlines.shift();\nlet body = lines.join('\\n');\n\nconsole.log(title, body)\n\n...\n\n```\n\n## License\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull-none%2Fdraft-js-first-line-heading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnull-none%2Fdraft-js-first-line-heading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull-none%2Fdraft-js-first-line-heading/lists"}