feat: git changes processing
This commit is contained in:
@@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user