Skip to content

Commit

Permalink
Fix: image create issue #1479
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Jan 8, 2025
1 parent 910566a commit 0ba60f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/dialog/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ export default {
imagePlugin.setAlign.call(this, align, oImg, cover, container);

oImg.onload = imagePlugin._image_create_onload.bind(this, oImg, contextImage.svgDefaultSize, container);
if (this.insertComponent(container, true, true, true)) this.plugins.fileManager.setInfo.call(this, 'image', oImg, this.functions.onImageUpload, file, true);
if (this.insertComponent(container, true, true, !this.options.mediaAutoSelect)) this.plugins.fileManager.setInfo.call(this, 'image', oImg, this.functions.onImageUpload, file, true);
this.context.resizing._resize_plugin = '';
},

Expand All @@ -697,6 +697,7 @@ export default {
const line = this.appendFormatTag(container, null);
if (line) this.setRange(line, 0, line, 0);
}
this.history.push(false);
},

update_image: function (init, openController, notHistoryPush) {
Expand Down

0 comments on commit 0ba60f3

Please sign in to comment.