Skip to content

Commit

Permalink
fix public preview rendering
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Feb 27, 2018
1 parent 4edadad commit 22e4621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions js/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 22e4621

Please sign in to comment.