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

github.com/icewind1991/files_markdown.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-02-27 17:11:13 +0300
committerRobin Appelman <robin@icewind.nl>2018-02-27 17:11:13 +0300
commit22e4621a490bb7b826979037168301f0466e962d (patch)
treec2ad48c4cd33e4291ee911845290c06f0b40f8d0
parent4edadadb3691bd12c5556e7b0a577862da0c700c (diff)
fix public preview rendering
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--appinfo/info.xml2
-rw-r--r--js/editor.ts2
2 files changed, 3 insertions, 1 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 09178a4..35dc090 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -13,7 +13,7 @@ A full list of features can be found [in the README](https://github.com/icewind1
<nextcloud min-version="11" max-version="14"/>
</dependencies>
- <version>2.0.3</version>
+ <version>2.0.4</version>
<category>office</category>
<website>https://github.com/icewind1991/files_markdown</website>
<bugs>https://github.com/icewind1991/files_markdown/issues</bugs>
diff --git a/js/editor.ts b/js/editor.ts
index bf302ab..4d01f20 100644
--- a/js/editor.ts
+++ b/js/editor.ts
@@ -7,6 +7,8 @@ const previewPlugin = new PreviewPlugin();
$(document).ready(function () {
if (OCA.Files_Texteditor && OCA.Files_Texteditor.registerPreviewPlugin) {
OCA.Files_Texteditor.registerPreviewPlugin('text/markdown', previewPlugin);
+ } else if (!OCA.Files_Texteditor) {
+ OCA.Files_Texteditor = {};
}
if (