Make WordPress Core

Ticket #3050: 3050.diff

File 3050.diff, 625 bytes (added by Nazgul, 19 years ago)
  • wp-includes/js/quicktags.js

     
    380380function edInsertImage(myField) {
    381381        var myValue = prompt('Enter the URL of the image', 'http://');
    382382        if (myValue) {
     383                var myAlt = prompt('Enter a description of the image', '');
    383384                myValue = '<img src="'
    384385                                + myValue
    385                                 + '" alt="' + prompt('Enter a description of the image', '')
     386                                + '" alt="' + myAlt
     387                                + '" title="' + myAlt
    386388                                + '" />';
    387389                edInsertContent(myField, myValue);
    388390        }