JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2
[ckeditor.git] / _source / plugins / elementspath / plugin.js
index 30c72c9..eaab6f8 100644 (file)
@@ -49,7 +49,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        editor.on( 'themeSpace', function( event )\r
                                {\r
                                        if ( event.data.space == 'bottom' )\r
-                                               event.data.html += '<div id="' + spaceId + '" class="cke_path">' + emptyHtml + '</div>';\r
+                                       {\r
+                                               event.data.html +=\r
+                                                       '<span id="' + spaceId + '_label" class="cke_voice_label">' + editor.lang.elementsPath.eleLabel + '</span>' +\r
+                                                       '<div id="' + spaceId + '" class="cke_path" role="group" aria-labelledby="' + spaceId + '_label">' + emptyHtml + '</div>';\r
+                                       }\r
                                });\r
 \r
                        editor.on( 'selectionChange', function( ev )\r
@@ -86,19 +90,22 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                if ( env.gecko )\r
                                                        extra += ' onblur="this.style.cssText = this.style.cssText;"';\r
 \r
+                                               var label = editor.lang.elementsPath.eleTitle.replace( /%1/, name );\r
                                                html.unshift(\r
                                                        '<a' +\r
                                                                ' id="', idBase, index, '"' +\r
                                                                ' href="javascript:void(\'', name, '\')"' +\r
                                                                ' tabindex="-1"' +\r
-                                                               ' title="', editor.lang.elementsPath.eleTitle.replace( /%1/, name ), '"' +\r
+                                                               ' title="', label, '"' +\r
                                                                ( ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) ?\r
                                                                ' onfocus="event.preventBubble();"' : '' ) +\r
                                                                ' hidefocus="true" ' +\r
                                                                ' onkeydown="return CKEDITOR._.elementsPath.keydown(\'', this.name, '\',', index, ', event);"' +\r
                                                                extra ,\r
-                                                               ' onclick="return CKEDITOR._.elementsPath.click(\'', this.name, '\',', index, ');">',\r
+                                                               ' onclick="return CKEDITOR._.elementsPath.click(\'', this.name, '\',', index, ');"',\r
+                                                               ' role="button" aria-labelledby="' + idBase + index + '_label">',\r
                                                                        name,\r
+                                                                       '<span id="', idBase, index, '_label" class="cke_label">' + label + '</span>',\r
                                                        '</a>' );\r
 \r
                                                if ( name == 'body' )\r