From 1e20f631d5abd16bba4c8ffac20567b38e0676a9 Mon Sep 17 00:00:00 2001 From: Antonio K Date: Tue, 20 Nov 2012 15:39:36 +0400 Subject: [PATCH 1/2] typo --- imagedialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_]); From 476c4d0e73050d00b52e2ce93f29eef975fa819c Mon Sep 17 00:00:00 2001 From: AntonioK Date: Mon, 24 Dec 2012 12:11:40 +0400 Subject: [PATCH 2/2] Set empty "alt" attribute. --- imageplugindialog.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();