feat: editor - existing content
This commit is contained in:
@@ -3,4 +3,14 @@ extends master.pug
|
||||
block body
|
||||
#root
|
||||
v-app
|
||||
editor
|
||||
editor(
|
||||
locale=page.localeCode
|
||||
path=page.path
|
||||
title=page.title
|
||||
description=page.description
|
||||
tags=page.tags
|
||||
:is-published=page.isPublished
|
||||
init-mode=page.mode
|
||||
init-editor=page.editorKey
|
||||
init-content=page.content
|
||||
)
|
||||
|
@@ -8,7 +8,7 @@ block body
|
||||
img.animated.fadeIn(src='/svg/henry-thinking.svg', alt='Henry')
|
||||
.headline= t('newpage.title')
|
||||
.subheading.mt-3= t('newpage.subtitle')
|
||||
v-btn.mt-5(href='/e/home', large)
|
||||
v-btn.mt-5(href='/e' + pagePath, large)
|
||||
v-icon(left) add
|
||||
span= t('newpage.create')
|
||||
v-btn.mt-2(color='blue lighten-4', href='javascript:window.history.go(-1);', large, outline)
|
||||
|
@@ -13,7 +13,7 @@ block body
|
||||
created-at=page.createdAt
|
||||
updated-at=page.updatedAt
|
||||
author-name=page.authorName
|
||||
author-id=page.authorId
|
||||
:author-id=page.authorId
|
||||
is-published=page.isPublished
|
||||
)
|
||||
template(slot='contents')!= page.render
|
||||
|
Reference in New Issue
Block a user