diff options
author | Robin Appelman <robin@icewind.nl> | 2018-02-27 17:11:13 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-02-27 17:11:13 +0300 |
commit | 22e4621a490bb7b826979037168301f0466e962d (patch) | |
tree | c2ad48c4cd33e4291ee911845290c06f0b40f8d0 | |
parent | 4edadadb3691bd12c5556e7b0a577862da0c700c (diff) |
fix public preview rendering
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | appinfo/info.xml | 2 | ||||
-rw-r--r-- | js/editor.ts | 2 |
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 ( |