2016-09-05 19:23:49 -04:00
|
|
|
extends ../layout.pug
|
2016-08-29 22:19:47 -04:00
|
|
|
|
|
|
|
block rootNavCenter
|
2017-05-02 21:41:22 -04:00
|
|
|
h2.nav-item= t('header.createdoc')
|
2016-08-29 22:19:47 -04:00
|
|
|
|
|
|
|
block rootNavRight
|
2017-05-27 18:03:24 -04:00
|
|
|
loading-spinner
|
2017-02-09 21:35:37 -05:00
|
|
|
span.nav-item
|
2017-05-27 18:03:24 -04:00
|
|
|
a.button.is-outlined(v-on:click='$store.dispatch("modalDiscardPage/open")')
|
2017-02-09 21:35:37 -05:00
|
|
|
i.icon-cross
|
2017-05-02 21:41:22 -04:00
|
|
|
span= t('nav.discard')
|
2017-06-01 20:30:32 -04:00
|
|
|
a.button(v-on:click='$root.$emit("editor/save")')
|
2017-02-09 21:35:37 -05:00
|
|
|
i.icon-check
|
2017-05-02 21:41:22 -04:00
|
|
|
span= t('nav.savedocument')
|
2016-08-29 22:19:47 -04:00
|
|
|
|
|
|
|
block content
|
2017-05-27 18:03:24 -04:00
|
|
|
editor(inline-template, current-path=pageData.meta.path, v-cloak)
|
2017-02-09 21:35:37 -05:00
|
|
|
.editor-area
|
2017-06-01 20:15:02 -04:00
|
|
|
textarea(ref='editorTextArea', v-pre)= pageData.markdown
|
2017-04-02 23:27:07 -04:00
|
|
|
|
2017-05-28 20:30:58 -04:00
|
|
|
editor-video
|
|
|
|
editor-codeblock
|
2017-05-27 18:03:24 -04:00
|
|
|
modal-discard-page(mode='create', current-path=pageData.meta.path)
|
|
|
|
page-loader(text=t('loading.editor'))
|