{"id":19255244,"url":"https://github.com/devlzl/richtexteditor","last_synced_at":"2026-06-12T22:32:39.625Z","repository":{"id":62904436,"uuid":"563441979","full_name":"devlzl/RichTextEditor","owner":"devlzl","description":"A custom rich text editor based on ProseMirror.","archived":false,"fork":false,"pushed_at":"2023-02-09T16:10:32.000Z","size":882,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T17:28:23.967Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devlzl.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-11-08T16:10:02.000Z","updated_at":"2024-08-09T04:37:29.000Z","dependencies_parsed_at":"2024-04-18T18:16:23.321Z","dependency_job_id":null,"html_url":"https://github.com/devlzl/RichTextEditor","commit_stats":null,"previous_names":["devlzl/richtexteditor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devlzl/RichTextEditor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlzl%2FRichTextEditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlzl%2FRichTextEditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlzl%2FRichTextEditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlzl%2FRichTextEditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devlzl","download_url":"https://codeload.github.com/devlzl/RichTextEditor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlzl%2FRichTextEditor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34265491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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-11-09T18:39:58.333Z","updated_at":"2026-06-12T22:32:39.592Z","avatar_url":"https://github.com/devlzl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rich Text Editor\n\nA custom rich text editor based on ProseMirror.\n\nEasily modify text styles, or insert image / audio / video.  \n\nCan load or save as markdown.\n\n\n## Screenshot\n![](./screenshot.png)\n\n\n## Usage\nThis project can be used directly as a ready-made editor.\n\nOr use `/src/components/Editor.vue` to wrap your own editor.\n\n```sh\nyarn\nnpx patch-package\nyarn dev\n```\n\n\n## API\n```html\n\u003cEditor\n    placeholder=\"type something...\"\n    :loadContent=\"loadContent\"\n    @input=\"onInput\"\n    :uploadFile=\"uploadFile\"\n/\u003e\n```\n```js\n// \"loadContent\" should be an async function and return a string in markdown format.\nasync function loadContent() {\n    return '# Hello'\n}\n\n\n// \"input\" event fires when the content has been changed.\nfunction onInput(content) {\n    data.value = content\n}\n\n\n// \"uploadFile\" should be an async function to upload the file to the server,\n// and return an object with 'ok' and 'data' fields.\nasync function uploadFile(file) {\n    return {\n        ok: true,\n        data: 'https://somepath.xxx/foo.mp3'\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlzl%2Frichtexteditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlzl%2Frichtexteditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlzl%2Frichtexteditor/lists"}