Skip to content

Commit 29805bc

Browse files
committed
fix image insert
1 parent 33a072c commit 29805bc

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
@@ -316,6 +316,8 @@ function createHTML(options = {}) {
316316
result: function(url, style) {
317317
if (url){
318318
exec('insertHTML', "<img style='"+ (style || '')+"' src='"+ url +"'/>");
319+
// This is needed, or the image will not be inserted if the html is empty
320+
exec('insertHTML', "<br/>");
319321
Actions.UPDATE_HEIGHT();
320322
}
321323
}

0 commit comments

Comments
 (0)