feat: page display + renderers reorg

This commit is contained in:
Nicolas Giard
2018-08-20 01:02:57 -04:00
parent 4bb522f9d9
commit db8e598e9a
36 changed files with 241 additions and 52 deletions

View File

@@ -116,7 +116,7 @@ module.exports = class Page extends Model {
authorId: opts.authorId,
content: opts.content,
creatorId: opts.authorId,
contentType: _.get(WIKI.data.editors, `${opts.editor}.contentType`, 'text'),
contentType: _.get(_.find(WIKI.data.editors, ['key', opts.editor]), `contentType`, 'text'),
description: opts.description,
editorKey: opts.editor,
isPrivate: opts.isPrivate,