X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Flistblock%2Fplugin.js;h=c505f0eefa158d3d7ba9949d542bfb03e3ecb505;hp=e22956b895d678cd7477357265c112403e6ba88a;hb=2f22c0c38f17e75be5541089076885442aaa2377;hpb=e73319a12b56100b29ef456fd74114fe5519e01c diff --git a/_source/plugins/listblock/plugin.js b/_source/plugins/listblock/plugin.js index e22956b..c505f0e 100644 --- a/_source/plugins/listblock/plugin.js +++ b/_source/plugins/listblock/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -100,8 +100,7 @@ CKEDITOR.plugins.add( 'listblock', ' href="javascript:void(\'', value, '\')" ' + ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188 '="CKEDITOR.tools.callFunction(', this._.getClick(), ',\'', value, '\'); return false;"', - ' role="option"' + - ' aria-posinset="' + ++this._.size + '">', + ' role="option">', html || value, '' + '' ); @@ -122,11 +121,6 @@ CKEDITOR.plugins.add( 'listblock', { this._.close(); this.element.appendHtml( this._.pendingHtml.join( '' ) ); - - var items = this._.items, - doc = this.element.getDocument(); - for ( var value in items ) - doc.getById( items[ value ] + '_option' ).setAttribute( 'aria-setsize', this._.size ); delete this._.size; this._.pendingHtml = [];