From 11eba505fb67dc5b7caf25c756ccb0f971041bf3 Mon Sep 17 00:00:00 2001 From: Jordan Harrison Date: Wed, 17 Apr 2013 14:32:45 -0700 Subject: [PATCH] Added an image-inserted event to the editor. --- bootstrap-wysiwyg.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrap-wysiwyg.js b/bootstrap-wysiwyg.js index e334b69..5dc9ff4 100644 --- a/bootstrap-wysiwyg.js +++ b/bootstrap-wysiwyg.js @@ -85,6 +85,7 @@ if (/^image\//.test(fileInfo.type)) { $.when(readFileIntoDataUrl(fileInfo)).done(function (dataUrl) { execCommand('insertimage', dataUrl); + editor.trigger('image-inserted'); }).fail(function (e) { options.fileUploadError("file-reader", e); });