X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Flistblock%2Fplugin.js;h=e4898a5b33730208c1889af8ba1e0ce961aaa46c;hb=refs%2Ftags%2Fv3.6.1;hp=63f85c72bafa1696683324a088fb606c3d433f21;hpb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;p=ckeditor.git diff --git a/_source/plugins/listblock/plugin.js b/_source/plugins/listblock/plugin.js index 63f85c7..e4898a5 100644 --- a/_source/plugins/listblock/plugin.js +++ b/_source/plugins/listblock/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -36,7 +36,8 @@ CKEDITOR.plugins.add( 'listblock', keys[ 9 ] = 'next'; // TAB keys[ 38 ] = 'prev'; // ARROW-UP keys[ CKEDITOR.SHIFT + 9 ] = 'prev'; // SHIFT + TAB - keys[ 32 ] = 'click'; // SPACE + keys[ 32 ] = CKEDITOR.env.ie ? 'mouseup' : 'click'; // SPACE + CKEDITOR.env.ie && ( keys[ 13 ] = 'mouseup' ); // Manage ENTER, since onclick is blocked in IE (#8041). this._.pendingHtml = []; this._.items = {}; @@ -81,7 +82,7 @@ CKEDITOR.plugins.add( 'listblock', add : function( value, html, title ) { var pendingHtml = this._.pendingHtml, - id = 'cke_' + CKEDITOR.tools.getNextNumber(); + id = CKEDITOR.tools.getNextId(); if ( !this._.started ) { @@ -93,11 +94,12 @@ CKEDITOR.plugins.add( 'listblock', this._.items[ value ] = id; pendingHtml.push( - '
  • ' + + '