Skip to content

Commit

Permalink
add img alt attr in html text area wejs/we#112
Browse files Browse the repository at this point in the history
  • Loading branch information
albertosouza committed Nov 20, 2015
1 parent 7547b57 commit e17e8c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/public/js/we.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ var we = {
isAdmin: false,
initialize: function initialize(cb) {
if (!cb) cb = function(){};
var self = this;

if (window.WE_BOOTSTRAP_CONFIG) {
this.config = window.WE_BOOTSTRAP_CONFIG;
Expand Down Expand Up @@ -634,6 +633,7 @@ we.components = {
success: function(r) {
var img = $('<img>');
img.attr('src', r.image.urls.large);
img.attr('alt', r.image.description);
element.summernote('insertNode', img[0]);
}
});
Expand Down

0 comments on commit e17e8c2

Please sign in to comment.