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:
Diffstat (limited to 'js/editor.ts')
-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 (