diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-12-04 17:54:04 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-12-04 17:54:04 +0100 |
commit | 317f8f8f0651488f226b5280a8f036c7c135c639 (patch) | |
tree | 97bd4889ab2822a00d4b0f0d5cde38b59f9f41de /sources/plugins/listblock/plugin.js | |
parent | 1096cdefb1c9a3f3c4ca6807e272da6c92e5ed9c (diff) | |
download | piedsjaloux-ckeditor-component-317f8f8f0651488f226b5280a8f036c7c135c639.tar.gz piedsjaloux-ckeditor-component-317f8f8f0651488f226b5280a8f036c7c135c639.tar.zst piedsjaloux-ckeditor-component-317f8f8f0651488f226b5280a8f036c7c135c639.zip |
Add oembed4.7.3
Diffstat (limited to 'sources/plugins/listblock/plugin.js')
-rw-r--r-- | sources/plugins/listblock/plugin.js | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/sources/plugins/listblock/plugin.js b/sources/plugins/listblock/plugin.js index e998167..100159a 100644 --- a/sources/plugins/listblock/plugin.js +++ b/sources/plugins/listblock/plugin.js | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | 2 | * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. |
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | 3 | * For licensing, see LICENSE.md or http://ckeditor.com/license |
4 | */ | 4 | */ |
5 | 5 | ||
@@ -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 ], |