feat: git changes processing

This commit is contained in:
Nick committed 2019-02-24 23:48:28 -05:00
1 parent abe5f3b25d
commit e6f1f3add4
13 files changed
+275 -25

No files matched your search

+10
View File
@@ -90,4 +90,14 @@ module.exports = class Editor extends Model {
WIKI.logger.error(err)
}
}
static async getDefaultEditor(contentType) {
// TODO - hardcoded for now
switch (contentType) {
case 'markdown':
return 'markdown'
default:
return 'code'
}
}
}