Skip to content

Commit

Permalink
Merge pull request #256 from cristianoccazinsp/fix-img-insert
Browse files Browse the repository at this point in the history
fix image insert
  • Loading branch information
stulip authored Nov 20, 2024
2 parents 19d3414 + 29805bc commit 78adbe2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ function createHTML(options = {}) {
result: function(url, style) {
if (url){
exec('insertHTML', "<img style='"+ (style || '')+"' src='"+ url +"'/>");
// This is needed, or the image will not be inserted if the html is empty
exec('insertHTML', "<br/>");
Actions.UPDATE_HEIGHT();
}
}
Expand Down

0 comments on commit 78adbe2

Please sign in to comment.