{"id":13422157,"url":"https://github.com/wangzuo/react-medium-editor","last_synced_at":"2025-10-04T05:14:25.917Z","repository":{"id":32434943,"uuid":"36012979","full_name":"wangzuo/react-medium-editor","owner":"wangzuo","description":"React wrapper for medium-editor","archived":false,"fork":false,"pushed_at":"2023-05-29T05:36:30.000Z","size":1028,"stargazers_count":503,"open_issues_count":26,"forks_count":93,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-09-18T20:41:49.873Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://wangzuo.github.io/react-medium-editor","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/wangzuo.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":"2015-05-21T13:01:19.000Z","updated_at":"2025-08-02T19:48:46.000Z","dependencies_parsed_at":"2024-01-25T05:09:32.207Z","dependency_job_id":"078fb113-94da-42a6-ae7c-48f57322e716","html_url":"https://github.com/wangzuo/react-medium-editor","commit_stats":{"total_commits":63,"total_committers":7,"mean_commits":9.0,"dds":"0.17460317460317465","last_synced_commit":"481152eaf6fd03e1bf75fc5552561a952d804286"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wangzuo/react-medium-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangzuo%2Freact-medium-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangzuo%2Freact-medium-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangzuo%2Freact-medium-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangzuo%2Freact-medium-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangzuo","download_url":"https://codeload.github.com/wangzuo/react-medium-editor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangzuo%2Freact-medium-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278266896,"owners_count":25958733,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-07-30T23:00:38.230Z","updated_at":"2025-10-04T05:14:25.900Z","avatar_url":"https://github.com/wangzuo.png","language":"JavaScript","readme":"# react-medium-editor\n\nReact wrapper for [medium-editor](https://github.com/daviferreira/medium-editor)\n\n### Demo\n\n[http://wangzuo.github.io/react-medium-editor](http://wangzuo.github.io/react-medium-editor)\n\n### Installation\n\n```sh\nnpm install react-medium-editor --save\n```\n\n### Usage\n\n```javascript\n// load theme styles with webpack\nrequire('medium-editor/dist/css/medium-editor.css');\nrequire('medium-editor/dist/css/themes/default.css');\n\n// ES module\nimport Editor from 'react-medium-editor';\n\n// CommonJS enviroment\n// var Editor = require('react-medium-editor').default;\n\nvar App = React.createClass({\n  getInitialState() {\n    return { text: 'Fusce dapibus, tellus ac cursus commodo' };\n  },\n\n  render() {\n    return (\n      \u003cdiv className=\"app\"\u003e\n        \u003ch1\u003ereact-medium-editor\u003c/h1\u003e\n        \u003ch3\u003eHtml content\u003c/h3\u003e\n        \u003cdiv\u003e{this.state.text}\u003c/div\u003e\n\n        \u003ch3\u003eEditor #1 (\u0026lt;pre\u0026gt; tag)\u003c/h3\u003e\n        \u003cEditor\n          tag=\"pre\"\n          text={this.state.text}\n          onChange={this.handleChange}\n          options={{ toolbar: { buttons: ['bold', 'italic', 'underline'] } }}\n        /\u003e\n        \u003ch3\u003eEditor #2\u003c/h3\u003e\n        \u003cEditor text={this.state.text} onChange={this.handleChange} /\u003e\n      \u003c/div\u003e\n    );\n  },\n\n  handleChange(text, medium) {\n    this.setState({ text: text });\n  }\n});\n```\n\n### License\n\nMIT\n","funding_links":[],"categories":["UI Components","Uncategorized","Demos","\u003csummary\u003eUI Components\u003c/summary\u003e","JavaScript"],"sub_categories":["Form Components","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangzuo%2Freact-medium-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangzuo%2Freact-medium-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangzuo%2Freact-medium-editor/lists"}