block.autoSize = true;\r
block.element.addClass( 'cke_colorblock' );\r
block.element.setHtml( renderColors( panel, type ) );\r
\r
var keys = block.keys;\r
keys[ 39 ] = 'next'; // ARROW-RIGHT\r
block.autoSize = true;\r
block.element.addClass( 'cke_colorblock' );\r
block.element.setHtml( renderColors( panel, type ) );\r
\r
var keys = block.keys;\r
keys[ 39 ] = 'next'; // ARROW-RIGHT\r
- colors = config.colorButton_colors.split( ',' );\r
+ colors = config.colorButton_colors.split( ',' ),\r
+ total = colors.length + ( config.colorButton_enableMore ? 2 : 1 );\r
'<a class="cke_colorauto" _cke_focus=1 hidefocus=true' +\r
' title="', lang.auto, '"' +\r
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',null,\'', type, '\');return false;"' +\r
'<a class="cke_colorauto" _cke_focus=1 hidefocus=true' +\r
' title="', lang.auto, '"' +\r
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',null,\'', type, '\');return false;"' +\r
- ' href="javascript:void(\'', lang.auto, '\')">' +\r
- '<table cellspacing=0 cellpadding=0 width="100%">' +\r
+ ' href="javascript:void(\'', lang.auto, '\')"' +\r
+ ' role="option" aria-posinset="1" aria-setsize="', total, '">' +\r
+ '<table role="presentation" cellspacing=0 cellpadding=0 width="100%">' +\r
'<a class="cke_colorbox" _cke_focus=1 hidefocus=true' +\r
' title="', colorLabel, '"' +\r
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'#', colorCode, '\',\'', type, '\'); return false;"' +\r
'<a class="cke_colorbox" _cke_focus=1 hidefocus=true' +\r
' title="', colorLabel, '"' +\r
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'#', colorCode, '\',\'', type, '\'); return false;"' +\r
- ' href="javascript:void(\'', colorLabel, '\')">' +\r
+ ' href="javascript:void(\'', colorLabel, '\')"' +\r
+ ' role="option" aria-posinset="', ( i + 2 ), '" aria-setsize="', total, '">' +\r
'<a class="cke_colormore" _cke_focus=1 hidefocus=true' +\r
' title="', lang.more, '"' +\r
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'?\',\'', type, '\');return false;"' +\r
'<a class="cke_colormore" _cke_focus=1 hidefocus=true' +\r
' title="', lang.more, '"' +\r
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'?\',\'', type, '\');return false;"' +\r
- ' href="javascript:void(\'', lang.more, '\')">',\r
+ ' href="javascript:void(\'', lang.more, '\')"',\r
+ ' role="option" aria-posinset="', total, '" aria-setsize="', total, '">',\r