{"id":19454834,"url":"https://github.com/gssify/kityminder-editor","last_synced_at":"2026-06-13T03:03:38.073Z","repository":{"id":126188932,"uuid":"494058314","full_name":"gssify/kityminder-editor","owner":"gssify","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-23T08:25:49.000Z","size":4918,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T10:33:08.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"kityminder-editor.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gssify.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-19T12:17:14.000Z","updated_at":"2022-05-19T12:23:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d701caa-4f18-434b-9d54-4d0beb6b7c66","html_url":"https://github.com/gssify/kityminder-editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gssify/kityminder-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gssify%2Fkityminder-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gssify%2Fkityminder-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gssify%2Fkityminder-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gssify%2Fkityminder-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gssify","download_url":"https://codeload.github.com/gssify/kityminder-editor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gssify%2Fkityminder-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34270417,"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-13T02:00:06.617Z","response_time":62,"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-10T17:12:10.676Z","updated_at":"2026-06-13T03:03:38.034Z","avatar_url":"https://github.com/gssify.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"KityMinder Editor\n==========\n\n## 简介\n\nKityMinder Editor 是一款强大、简洁、体验优秀的脑图编辑工具，适合用于编辑树/图/网等结构的数据。\n\n编辑器由百度 [FEX](https://github.com/fex-team) 基于 [kityminder-core](https://github.com/fex-team/kityminder-core) 搭建，并且在[百度脑图](http://naotu.baidu.com)中使用。\n\n他们的区别与联系如下：\n\n![KityMinder 联系](relations.png \"KityMinder 联系\")\n\n- [kityminder-core](https://github.com/fex-team/kityminder-core) 是 kityminder 的核心部分，基于百度 [FEX](https://github.com/fex-team) 开发的矢量图形库 [kity](https://github.com/fex-team/kity)。包含了脑图数据的可视化展现，简单编辑功能等所有底层支持。\n- [kityminder-editor](https://github.com/fex-team/kityminder-editor) 基于 kityminder-core 搭建，依赖于 AngularJS，包含 UI 和热盒 [hotbox](https://github.com/fex-team/hotbox) 等方便用户输入的功能，简单来说，就是一款编辑器。\n- [百度脑图](http://naotu.baidu.com) 基于 kityminder-editor，加入了第三方格式导入导出 (FreeMind, XMind, MindManager) 、文件储存、用户认证、文件分享、历史版本等业务逻辑。\n\n## 功能\n\n- 基本操作：文本编辑，节点折叠、插入、删除、排序、归纳、复制、剪切、粘贴等\n- 样式控制：字体、加粗、斜体、颜色、样式拷贝、样式粘贴等\n- 图标：优先级、进度等\n- 历史：撤销/重做\n- 标签：多标签贴入\n- 备注：支持 Markdown 格式备注\n- 图片：支持本地/网络/搜索图片插入\n- 超链接：支持 HTTP/HTTPS/MAIL/FTP 链接插入\n- 布局：支持多种布局切换\n- 主题：支持多种主题切换\n- 数据导入导出：支持多种格式的导入，多种格式（包括图片）的导出\n- 缩略图：支持缩略图查看/导航\n\n## 开发使用\n根目录下的 `index.html` 为开发环境，`dist` 目录下的 `index.html` 使用打包好的代码，适用于线上环境。\n\n1. 安装 [nodejs](http://nodejs.org) 和 [npm](https://docs.npmjs.com/getting-started/installing-node)\n2. 初始化：切到 kityminder-editor 根目录下运行 `npm run init`\n3. 在 kityminder-editor 根目录下运行 `grunt dev` 即可启动项目\n4. 你可以基于根目录的 `index.html` 开发，或者查看 `dist` 目录下用于生产环境的 `index.html`，Enjoy it!\n\n另外，kityminder-editor 还提供了 bower 包，方便开发者直接使用。你可以在需要用到 kityminder-editor 的工程目录下\n运行 `bower install kityminder-editor`，接着手动引入 kityminder-editor 所依赖的 css 和 js 文件，具体文件见\n`dist` 目录下的 `index.html`，推荐使用 npm 包 [wireDep](https://www.npmjs.com/package/wiredep) 自动进行，\n可参考根目录下 `Gruntfile.js`。\n\n## 构建\n运行 `grunt build`，完成后 `dist` 目录里就是可用运行的 kityminder-editor, 双击 `index.html` 即可打开运行示例\n\n## 初始化配置\n用户可以根据需要，配置 `kityminder-editor`, 具体使用方法如下：\n```\nangular.module('kityminderDemo', ['kityminderEditor'])\n    .config(function (configProvider) {\n        configProvider.set('imageUpload', 'path/to/image/upload/handler');\n    });\n\n```\n\n## 数据导入导出\n由于 kityminder-editor 是基于 kityminder-core 搭建的，而 kityminder-core 内置了五种常见\n格式的导入或导出，在创建编辑器实例之后，可以使用四个接口进行数据的导入导出。\n\n* `editor.minder.exportJson()` - 导出脑图数据为 JSON 对象\n* `editor.minder.importJson(json)` - 导入 JSON 对象为当前脑图数据\n* `editor.minder.exportData(protocol, option)` - 导出脑图数据为指定的数据格式，返回一个 Promise，其值为导出的结果\n* `editor.minder.importData(protocol, data, option)` - 导入指定格式的数据为脑图数据，返回一个 Promise，其值为转换之后的脑图 Json 数据\n\n目前支持的数据格式包括：\n\n* `json` - JSON 字符串，支持导入和导出\n* `text` - 纯文本格式，支持导入和导出\n* `markdown` - Markdown 格式，支持导入和导出\n* `svg` - SVG 矢量格式，仅支持导出\n* `png` - PNG 位图格式，仅支持导出\n\n更多格式的支持，可以加载 [kityminder-protocol](https://github.com/fex-team/kityminder-protocol) 来扩展第三方格式支持。\n\n数据格式的具体信息，可参考 [kityminder-core-wiki 的中的说明](https://github.com/fex-team/kityminder-core/wiki)。\n\n## 联系我们\n问题和建议反馈：\n\n[Github issues](https://github.com/fex-team/kityminder-editor/issues)\n\n邮件组：kity@baidu.com\n\nQQ 讨论群：475962105","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgssify%2Fkityminder-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgssify%2Fkityminder-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgssify%2Fkityminder-editor/lists"}