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 - 2.0.3 + 2.0.4 office https://github.com/icewind1991/files_markdown https://github.com/icewind1991/files_markdown/issues 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 (