Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion imagedialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ goog.editor.plugins.ImageDialog.prototype.createContent_ = function() {
{size: 25, value: MSG_IMAGE_PLUGIN_DIALOG_SAMPLE});
/** @desc Prompt telling the user to enter a Image URL. */
var MSG_IMAGE_PLUGIN_DIALOG_PROMPT =
goog.getMsg('Enter the url to the image');
goog.getMsg('Enter the URL to the image');
return this.dom.$dom(goog.dom.TagName.DIV,
null,
[MSG_IMAGE_PLUGIN_DIALOG_PROMPT, this.input_]);
Expand Down
5 changes: 4 additions & 1 deletion imageplugindialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ goog.editor.plugins.ImageDialogPlugin.prototype.handleOk_ = function(e) {

// Grab the url of the image off of the event.
image.src = e.message;


// Set empty "alt" attribute.
image.alt = '';

// We want to insert the image in place of the user's selection.
// So we restore it first, and then use it for insertion.
this.restoreOriginalSelection();
Expand Down