diff options
Diffstat (limited to 'js/editor.ts')
-rw-r--r-- | js/editor.ts | 2 |
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 ( |