Skip to content

Commit

Permalink
Removed duplicate src attribute on videos
Browse files Browse the repository at this point in the history
  • Loading branch information
iainbeeston committed May 18, 2015
1 parent fc3ab34 commit 635b234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textAngularSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ angular.module('textAngularSetup', [])
// create the HTML
// for all options see: http://stackoverflow.com/questions/2068344/how-do-i-get-a-youtube-video-thumbnail-from-the-youtube-api
// maxresdefault.jpg seems to be undefined on some.
var embed = '<img class="ta-insert-video" src="https://img.youtube.com/vi/' + ids[0].substring(3) + '/hqdefault.jpg" ta-insert-video="' + urlLink + '" contenteditable="false" src="" allowfullscreen="true" frameborder="0" />';
var embed = '<img class="ta-insert-video" src="https://img.youtube.com/vi/' + ids[0].substring(3) + '/hqdefault.jpg" ta-insert-video="' + urlLink + '" contenteditable="false" allowfullscreen="true" frameborder="0" />';
// insert
return this.$editor().wrapSelection('insertHTML', embed, true);
}
Expand Down

0 comments on commit 635b234

Please sign in to comment.