feat: git changes processing

This commit is contained in:
Nick
2019-02-24 23:48:28 -05:00
parent abe5f3b25d
commit e6f1f3add4
13 changed files with 275 additions and 25 deletions

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'
}
}
}