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
path: root/js
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 /js
parent4edadadb3691bd12c5556e7b0a577862da0c700c (diff)
fix public preview rendering
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'js')
-rw-r--r--js/editor.ts2
1 files changed, 2 insertions, 0 deletions
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 (