Skip to content

Commit

Permalink
Use prosemirror file handler flag (#6847)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Feb 8, 2024
1 parent b20a276 commit a5487b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG-DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ HumHub Changelog
- Fix #6830: Wrong view filename after module enabling
- Enh #6838: Fix LDAP encryption labels and allow ignore also part of DNs
- Enh #6490: Update button style on force password form

- Enh #6847: Use prosemirror file handler flag
2 changes: 1 addition & 1 deletion protected/humhub/modules/file/resources/js/humhub.file.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ humhub.module('file', function (module, require, $) {
}

this.$form.append('<input type="hidden" name="' + name + '" value="' + file.guid + '">');
if (this.preview) {
if (this.preview && (typeof humhub.prosemirrorFileHandler === 'undefined' || humhub.prosemirrorFileHandler === false)) {
this.preview.show();
this.preview.add(file);
}
Expand Down

0 comments on commit a5487b0

Please sign in to comment.