From efcb30ed69b1c4c41965fa2b0eecf46f876b7aee Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Mon, 8 Jul 2013 14:13:29 +0200 Subject: [PATCH] Add alt text to non-wysiwyg img button. --- templates/2k11/admin/serendipity_editor.js.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/2k11/admin/serendipity_editor.js.tpl b/templates/2k11/admin/serendipity_editor.js.tpl index c844e4ae..586b2905 100644 --- a/templates/2k11/admin/serendipity_editor.js.tpl +++ b/templates/2k11/admin/serendipity_editor.js.tpl @@ -151,10 +151,11 @@ window.log = function f(){ log.history = log.history || []; log.history.push(arg // in element (only); doesn't really "wrap", merely inserts // an element before selected text serendipity.wrapInsImage = function(txtarea) { - var loc = prompt('Enter the Image Location: '); + var loc = prompt('Enter the image location: '); if (loc) { - serendipity.insertText(txtarea,''); + var alttxt = prompt('Enter alternative text for this image: '); + serendipity.insertText(txtarea,'' + alttxt + ''); } } /* end Better-Editor functions */