diff --git a/imagedialog.js b/imagedialog.js index 3ebfff5..ed7d73f 100644 --- a/imagedialog.js +++ b/imagedialog.js @@ -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_]); diff --git a/imageplugindialog.js b/imageplugindialog.js index 01f99ac..fa39441 100644 --- a/imageplugindialog.js +++ b/imageplugindialog.js @@ -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();