aboutsummaryrefslogtreecommitdiff
path: root/sources/plugins/listblock/plugin.js
diff options
context:
space:
mode:
Diffstat (limited to 'sources/plugins/listblock/plugin.js')
-rw-r--r--sources/plugins/listblock/plugin.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/sources/plugins/listblock/plugin.js b/sources/plugins/listblock/plugin.js
index 21e6b08..100159a 100644
--- a/sources/plugins/listblock/plugin.js
+++ b/sources/plugins/listblock/plugin.js
@@ -12,7 +12,7 @@ CKEDITOR.plugins.add( 'listblock', {
12 '<a id="{id}_option" _cke_focus=1 hidefocus=true' + 12 '<a id="{id}_option" _cke_focus=1 hidefocus=true' +
13 ' title="{title}"' + 13 ' title="{title}"' +
14 ' href="javascript:void(\'{val}\')" ' + 14 ' href="javascript:void(\'{val}\')" ' +
15 ' {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;"' + // #188 15 ' {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;"' + // http://dev.ckeditor.com/ticket/188
16 ' role="option">' + 16 ' role="option">' +
17 '{text}' + 17 '{text}' +
18 '</a>' + 18 '</a>' +
@@ -50,7 +50,7 @@ CKEDITOR.plugins.add( 'listblock', {
50 keys[ 38 ] = 'prev'; // ARROW-UP 50 keys[ 38 ] = 'prev'; // ARROW-UP
51 keys[ CKEDITOR.SHIFT + 9 ] = 'prev'; // SHIFT + TAB 51 keys[ CKEDITOR.SHIFT + 9 ] = 'prev'; // SHIFT + TAB
52 keys[ 32 ] = CKEDITOR.env.ie ? 'mouseup' : 'click'; // SPACE 52 keys[ 32 ] = CKEDITOR.env.ie ? 'mouseup' : 'click'; // SPACE
53 CKEDITOR.env.ie && ( keys[ 13 ] = 'mouseup' ); // Manage ENTER, since onclick is blocked in IE (#8041). 53 CKEDITOR.env.ie && ( keys[ 13 ] = 'mouseup' ); // Manage ENTER, since onclick is blocked in IE (http://dev.ckeditor.com/ticket/8041).
54 54
55 this._.pendingHtml = []; 55 this._.pendingHtml = [];
56 this._.pendingList = []; 56 this._.pendingList = [];
@@ -180,6 +180,14 @@ CKEDITOR.plugins.add( 'listblock', {
180 this.onMark && this.onMark( item ); 180 this.onMark && this.onMark( item );
181 }, 181 },
182 182
183 markFirstDisplayed: function() {
184 var context = this;
185 this._.markFirstDisplayed( function() {
186 if ( !context.multiSelect )
187 context.unmarkAll();
188 } );
189 },
190
183 unmark: function( value ) { 191 unmark: function( value ) {
184 var doc = this.element.getDocument(), 192 var doc = this.element.getDocument(),
185 itemId = this._.items[ value ], 193 itemId = this._.items[ value ],