Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Added an image-inserted event to the editor #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions bootstrap-wysiwyg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down