Skip to content

Commit

Permalink
fix(insert): file type wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
humyfred committed Dec 30, 2021
1 parent 34224a8 commit e9b680f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toolbars/hooks/Insert.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class Insert extends MenuBase {
handleUpload(type = 'image') {
// type为上传文件类型 image|video|audio|pdf|word
const input = document.createElement('input');
input.type = type || 'file';
input.type = 'file';
input.id = 'fileUpload';
input.value = '';
input.style.display = 'none';
Expand Down

0 comments on commit e9b680f

Please sign in to comment.