Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-07-02 17:25:57 +0300
committerJulius Härtl <jus@bitgrid.net>2019-07-02 17:25:57 +0300
commite05626f0c8b8c81ec2592e7bf63b3861924a2df6 (patch)
tree91cfd5b97e7b2d075eb45434933cb50a0586a3d6 /src/components/PublicFilesEditor.vue
parent46e60926dd5a7d1803bddfcf655b2220a5b8d3a8 (diff)
Split out helper functions and add syntax detection
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/components/PublicFilesEditor.vue')
-rw-r--r--src/components/PublicFilesEditor.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/PublicFilesEditor.vue b/src/components/PublicFilesEditor.vue
index 6991ad37c..6e8cb3b73 100644
--- a/src/components/PublicFilesEditor.vue
+++ b/src/components/PublicFilesEditor.vue
@@ -23,7 +23,7 @@
<template>
<modal v-if="active" :title="fileName" @close="close">
<editor-wrapper :file-id="fileId" :relative-path="relativePath" :active="active"
- :share-token="shareToken" />
+ :share-token="shareToken" :mime="mimeType" />
</modal>
</template>
@@ -52,6 +52,10 @@ export default {
shareToken: {
type: String,
default: null
+ },
+ mimeType: {
+ type: String,
+ default: null
}
},
computed: {