@7polo/kityminder-core
Version:
KityMinder Core Implement
18 lines (15 loc) • 458 B
JavaScript
define(function(require, exports, module) {
var data = require('../core/data');
data.registerProtocol('json', module.exports = {
fileDescription: 'KityMinder 格式',
fileExtension: '.km',
dataType: 'text',
mineType: 'application/json',
encode: function(json) {
return JSON.stringify(json);
},
decode: function(local) {
return JSON.parse(local);
}
});
});