This commit is contained in:
2020-04-16 14:13:51 +00:00
parent 4f5fca0dd7
commit 4107060c51
2 changed files with 15 additions and 13 deletions

View File

@@ -1,14 +1,15 @@
<template> <template>
<div> <div>
<v-col cols="12"> <span class="v-label v-label--active theme--light">
<span class="v-label v-label--active theme--light"> {{ $ay.t("WikiPage") }}
{{ $ay.t("WikiPage") }} </span>
</span> <v-sheet
<v-sheet elevation="4" color="light-gray" v-html="compiledOutput" class="pa-2 pa-sm-6"> elevation="1"
<!-- <div v-html="compiledOutput"></div> --> color="grey lighten-5"
</v-sheet> v-html="compiledOutput()"
<div>raw Content: {{ content }}</div> class="pa-2 pa-sm-6"
</v-col> >
</v-sheet>
</div> </div>
</template> </template>
<script> <script>
@@ -16,12 +17,12 @@ import marked from "marked";
export default { export default {
data: () => ({}), data: () => ({}),
props: { props: {
content: String value: String
}, },
computed: { methods: {
compiledOutput() { compiledOutput() {
//return marked(this.content, { sanitize: true }); //return marked(this.content, { sanitize: true });
return marked(this.content); return marked(this.value);
} }
} }
}; };
@@ -32,6 +33,7 @@ put the output on a paper element so it's raised and delineated
figure out why parts are fucked (blockquote) figure out why parts are fucked (blockquote)
remove extra spacing on sides in xs mode (gutters maybe on column or row?) remove extra spacing on sides in xs mode (gutters maybe on column or row?)
Show/hide/edit control Show/hide/edit control
eyeball icon like password reveal
*/ */
</script> </script>

View File

@@ -205,7 +205,7 @@
></gz-custom-fields> ></gz-custom-fields>
</v-col> </v-col>
<v-col cols="12"> <v-col cols="12">
<gz-wiki :content="obj.wikiContent"></gz-wiki <gz-wiki v-model="obj.wikiContent" :parentVM="this"></gz-wiki
></v-col> ></v-col>
</v-row> </v-row>
</v-form> </v-form>