Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
kityminder-editor
Advanced tools
KityMinder Editor 是一款强大、简介、体验优秀的脑图编辑工具,适合用于编辑树/图/网等结构的数据。
编辑器由百度 FEX 基于 kityminder-core 搭建,并且在百度脑图中使用。
可参照 demo
目录下的两种使用方式,dev.html
使用 CMD 的方式来加载,适用于开发环境;而 editor.html
使用打包压缩好的代码,适用于线上环境。
<script src="../lib/kity/dist/kity.js"></script>
<script src="../bower_components/seajs/dist/sea-debug.js"></script>
<script>
/* global seajs */
seajs.config({
base: '../src'
});
define('demo', function(require) {
var Editor = require('editor');
window.editor = new Editor('#minder-editor');
});
seajs.use('demo');
</script>
<script src="../lib/kity/dist/kity.js"></script>
<script src="../kityminder.editor.js"></script>
<script>
/* global kityminder */
window.editor = new kityminder.Editor('#minder-editor');
</script>
创建编辑器实例之后,可以使用四个接口进行数据的导入导出。
editor.minder.exportJson()
- 导出脑图数据为 JSON 对象editor.minder.importJson(json)
- 导入 JSON 对象为当前脑图数据editor.minder.exportData(protocol, option)
- 导出脑图数据为指定的数据格式,返回一个 Promise,其值为导出的结果editor.minder.importData(protocol, data, option)
- 导入指定格式的数据为脑图数据,返回一个 Promise,其值为转换之后的脑图 Json 数据目前支持的数据格式包括:
json
- JSON 字符串,支持导入和导出text
- 纯文本格式,支持导入和导出markdown
- Markdown 格式,支持导入和导出svg
- SVG 矢量格式,仅支持导出png
- PNG 位图格式,仅支持导出数据格式的具体信息,可参考 kityminder-core-wiki 的中的说明。
FAQs
A powerful mind map editor
The npm package kityminder-editor receives a total of 185 weekly downloads. As such, kityminder-editor popularity was classified as not popular.
We found that kityminder-editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.