Skip to content

ACTom/kityminder-editor

 
 

Repository files navigation

KityMinder Editor

--> Chinese version

Introduction

KityMinder Editor is a powerful, concise, and excellent mind map editing tool for editing data in structures such as trees/maps/nets.

The editor is built by Baidu FEX based on kityminder-core and in Baidu Brain Figure used.

Their differences and connections are as follows:

KityMinder Contact

  • kityminder-core is the core part of kityminder, based on Baidu FEX Graphics library kity. It includes all the underlying support for visual representation of mind map data, simple editing functions.
  • kityminder-editor Built on kityminder-core, relying on AngularJS, including UI and hotbox [hotbox](https://github.com/ Fex-team/hotbox) is a function that is easy for users to input. Simply put, it is an editor.
  • Baidu mind map Based on kityminder-editor, it has added third-party format import and export (FreeMind, XMind, MindManager), file storage, user authentication, file sharing, historical version, etc. logic.

Features

  • Basic operations: text editing, node folding, inserting, deleting, sorting, inducting, copying, cutting, pasting, etc.
  • Style control: font, bold, italic, color, style copy, style paste, etc.
  • Icon: priority, progress, etc.
  • History: Undo / Redo
  • Tags: Multi-label stickers
  • Note: Support Markdown format comments
  • Image: Support local/network/search image insertion
  • Hyperlink: Support for HTTP/HTTPS/MAIL/FTP link insertion
  • Layout: Support multiple layout switches
  • Topic: Support for multiple theme switching
  • Data import and export: support import of multiple formats, export of multiple formats (including images)
  • Thumbnail: Support for thumbnail viewing/navigation

Development and Use

The index.html in the root directory is the development environment, and the index.html in the dist directory uses the packaged code for the online environment.

  1. Install nodejs and npm
  2. Initialize:
    1. go to the kityminder-editor root directory and run npm run init
    2. Run grunt dev in the kityminder-editor root directory to start the project.
  3. You can develop based on the index.html in the root directory, or view the index.html for the production environment in the dist directory. Enjoy!

In addition, kityminder-editor also provides a bower package for developers to use directly. You can use the kityminder-editor project directory. Run bower install kityminder-editor, then manually import the css and js files that kityminder-editor depends on. See the specific file index.html in the dist directory, it is recommended to use the npm package wireDep to do it automatically. See the Gruntfile.js in the root directory.

Construct

Run grunt build. After the completion, the dist directory is the kityminder-editor that can be run. Double-click index.html to open the running example.

Initial configuration

Users can configure kityminder-editor as needed. The specific usage is as follows:

angular.module('kityminderDemo', ['kityminderEditor'])
    .config(function (configProvider) {
        configProvider.set('lang', 'en');
    });

Data import and export

Since kityminder-editor is built on kityminder-core, kityminder-core has five common built-in import or export formats, after creating the editor instance, you can use four interfaces to import and export data.

  • editor.minder.exportJson() - Export mind map data to JSON objects
  • editor.minder.importJson(json) - Import JSON object as current mind map data
  • editor.minder.exportData(protocol, option) - Export mind map data to the specified data format, return a promise whose value is the result of the export
  • editor.minder.importData(protocol, data, option) - Imports data in the specified format as mind map data, returns a promise whose value is the mind map after conversion Json data

Currently supported data formats include:

  • json - JSON string, support for import and export
  • text - plain text format, support for import and export
  • markdown - Markdown format, support for import and export
  • svg - SVG vector format, only supports export
  • png - PNG bitmap format, only supports export

For more format support, you can load kityminder-protocol to extend third-party format support.

For specific information on the data format, refer to the description in kityminder-core-wiki.

Contact us

Questions and suggestions feedback:

Github issues

Mail group: [email protected]

QQ discussion group: 475962105

About

Powerful Mindmap Editing Tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 74.2%
  • HTML 13.4%
  • CSS 12.4%