diff --git a/src/editor.js b/src/editor.js index d8a68c1..56da268 100644 --- a/src/editor.js +++ b/src/editor.js @@ -402,6 +402,8 @@ function createHTML(options = {}) { result: function(url, style) { if (url){ exec('insertHTML', ""); + // This is needed, or the image will not be inserted if the html is empty + exec('insertHTML', "
"); Actions.UPDATE_HEIGHT(); } }