{"id":15477477,"url":"https://github.com/jideguru/rich_editor","last_synced_at":"2025-05-07T16:10:00.467Z","repository":{"id":48786880,"uuid":"371185643","full_name":"JideGuru/rich_editor","owner":"JideGuru","description":"WYSIWYG editor for Flutter with a rich set of supported formatting options. (WIP)","archived":false,"fork":false,"pushed_at":"2025-04-23T11:29:28.000Z","size":2970,"stargazers_count":123,"open_issues_count":16,"forks_count":43,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-07T16:09:38.340Z","etag":null,"topics":["editor","flutter","flutter-html-editor","html-editor","text-editor"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/rich_editor","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JideGuru.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2021-05-26T22:42:13.000Z","updated_at":"2025-04-23T11:29:32.000Z","dependencies_parsed_at":"2023-11-21T13:57:18.074Z","dependency_job_id":null,"html_url":"https://github.com/JideGuru/rich_editor","commit_stats":{"total_commits":36,"total_committers":4,"mean_commits":9.0,"dds":"0.13888888888888884","last_synced_commit":"6b32fbda957362a9537fe4f61d6a923aa5eb7605"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JideGuru%2Frich_editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JideGuru%2Frich_editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JideGuru%2Frich_editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JideGuru%2Frich_editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JideGuru","download_url":"https://codeload.github.com/JideGuru/rich_editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252912996,"owners_count":21824066,"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":["editor","flutter","flutter-html-editor","html-editor","text-editor"],"created_at":"2024-10-02T04:00:59.469Z","updated_at":"2025-05-07T16:10:00.440Z","avatar_url":"https://github.com/JideGuru.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✨ rich_editor\n\n[![pub package](https://img.shields.io/pub/v/rich_editor.svg)](https://pub.dartlang.org/packages/rich_editor)\n[![pub points](https://badges.bar/rich_editor/pub%20points)](https://pub.dev/packages/rich_editor/score)\n\nWYSIWYG editor for Flutter with a rich set of supported formatting options.\n\nBased on https://github.com/dankito/RichTextEditor, but for Flutter.\n\n## ✨ Features\n\n- [x] Bold, Italic, Underline, Strike through, Subscript, Superscript\n- [x] Heading 1 - 6, Text body, Preformatted, Block quote\n- [x] Font (reads all system fonts) (Android only)\n- [x] Font Size\n- [x] Text Color\n- [x] Text Background Color\n- [x] Highlight text\n- [x] Justify Left, Center, Right, Blockquote\n- [x] Indent, Outdent\n- [x] Undo, Redo\n- [x] Unordered List (Bullets)\n- [x] Ordered List (Numbers)\n- [x] Insert local or remote Image\n- [x] Insert Link\n- [x] Insert Checkbox\n- [ ] Search\n- [ ] Icon indicators\n\n## 📸 Screenshots\n\n\u003cimg src=\"https://github.com/JideGuru/rich_editor/raw/master/res/1.png\" width=\"400\"\u003e\n\n## Usage\n\n```dart\n      // Insert widget into tree\n      RichEditor(\n        key: keyEditor,\n        value: 'initial html here',\n        editorOptions: RichEditorOptions(\n          placeholder: 'Start typing',\n          // backgroundColor: Colors.blueGrey, // Editor's bg color\n          // baseTextColor: Colors.white,\n          // editor padding\n          padding: EdgeInsets.symmetric(horizontal: 5.0),\n          // font name\n          baseFontFamily: 'sans-serif',\n          // Position of the editing bar (BarPosition.TOP or BarPosition.BOTTOM)\n          barPosition: BarPosition.TOP,\n        ),\n        // You can return a Link (maybe you need to upload the image to your\n        // storage before displaying in the editor or you can also use base64\n        getImageUrl: (image) {\n          String link = 'https://avatars.githubusercontent.com/u/24323581?v=4';\n          String base64 = base64Encode(image.readAsBytesSync());\n          String base64String = 'data:image/png;base64, $base64';\n          return base64String;\n        },\n      )\n```\n\nGet current HTML from editor\n\n```dart\nString? html = await keyEditor.currentState?.getHtml();\nprint(html);\n```\n\nSet Focus and Unfocus\n\n```dart\nawait keyEditor.currentState?.focus();\nawait keyEditor.currentState?.unFocus();\n```\n\nClear Editor content\n\n```dart\nawait keyEditor.currentState?.clear();\n```\n\n### Custom Toolbar\n\nIf you're interested in creating your own toolbar check the\ncustom_toolbar_demo.dart in the example\n\n## License\n\n    Copyright 2021 JideGuru\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjideguru%2Frich_editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjideguru%2Frich_editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjideguru%2Frich_editor/lists"}