Ticket #21371: 21371.patch
File 21371.patch, 839 bytes (added by , 12 years ago) |
---|
-
.js
old new 502 502 var n, ic, tb, t = this, ed = t.editor, s = t.settings, sc, p, nl; 503 503 504 504 if (ed.settings) { 505 ed.settings.aria_label = s.aria_label + ed.getLang('advanced.help_shortcut'); 505 // get lang so we only load it once 506 var help_s = ed.getLang('advanced.help_shortcut'); 507 508 // if using wp_editor for the comment textarea, we will be moving TinyMCE around the DOM 509 // so... only add the help text if we don't already have it 510 if ( !ed.settings.aria_label.match( help_s ) ) 511 ed.settings.aria_label = s.aria_label + help_s; 506 512 } 507 513 508 514 // TODO: ACC Should have an aria-describedby attribute which is user-configurable to describe what this field is actually for.