Skip to content

Commit 78adbe2

Browse files
authored
Merge pull request #256 from cristianoccazinsp/fix-img-insert
fix image insert
2 parents 19d3414 + 29805bc commit 78adbe2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/editor.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ function createHTML(options = {}) {
402402
result: function(url, style) {
403403
if (url){
404404
exec('insertHTML', "<img style='"+ (style || '')+"' src='"+ url +"'/>");
405+
// This is needed, or the image will not be inserted if the html is empty
406+
exec('insertHTML', "<br/>");
405407
Actions.UPDATE_HEIGHT();
406408
}
407409
}

0 commit comments

Comments
 (0)