Skip to content

Commit

Permalink
fix: media tag init
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Jun 24, 2021
1 parent 655e4f9 commit 26ad91c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/dialog/audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ export default {
}

this.plugins.fileManager.setInfo.call(this, 'audio', element, this.functions.onAudioUpload, null, false);
this.plugins.audio.init.call(this);
},

/**
Expand Down
1 change: 1 addition & 0 deletions src/plugins/dialog/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ export default {
if (link && !contextImage.anchorCtx.linkValue) contextImage.anchorCtx.linkValue = ' ';

imagePlugin.update_image.call(this, true, false, true);
imagePlugin.init.call(this);
}.bind(this);

this.plugins.fileManager.checkInfo.call(this, 'image', ['img'], this.functions.onImageUpload, modifyHandler, true);
Expand Down
1 change: 1 addition & 0 deletions src/plugins/dialog/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ export default {
}

this.plugins.fileManager.setInfo.call(this, 'video', oFrame, this.functions.onVideoUpload, null, true);
this.plugins.video.init.call(this);
},

/**
Expand Down

0 comments on commit 26ad91c

Please sign in to comment.