]> git.immae.eu Git - perso/Immae/Projets/packagist/piedsjaloux-ckeditor-component.git/blobdiff - sources/plugins/listblock/plugin.js
Add oembed
[perso/Immae/Projets/packagist/piedsjaloux-ckeditor-component.git] / sources / plugins / listblock / plugin.js
index e998167eb44095e5d6a344cea2f531344212b84e..100159a6180dbcf0c0d5edb549348d406f20aba8 100644 (file)
@@ -1,5 +1,5 @@
 /**\r
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.\r
+ * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.\r
  * For licensing, see LICENSE.md or http://ckeditor.com/license\r
  */\r
 \r
@@ -12,7 +12,7 @@ CKEDITOR.plugins.add( 'listblock', {
                                '<a id="{id}_option" _cke_focus=1 hidefocus=true' +\r
                                        ' title="{title}"' +\r
                                        ' href="javascript:void(\'{val}\')" ' +\r
-                                       ' {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;"' + // #188\r
+                                       ' {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;"' + // http://dev.ckeditor.com/ticket/188\r
                                                ' role="option">' +\r
                                        '{text}' +\r
                                '</a>' +\r
@@ -50,7 +50,7 @@ CKEDITOR.plugins.add( 'listblock', {
                                keys[ 38 ] = 'prev'; // ARROW-UP\r
                                keys[ CKEDITOR.SHIFT + 9 ] = 'prev'; // SHIFT + TAB\r
                                keys[ 32 ] = CKEDITOR.env.ie ? 'mouseup' : 'click'; // SPACE\r
-                               CKEDITOR.env.ie && ( keys[ 13 ] = 'mouseup' ); // Manage ENTER, since onclick is blocked in IE (#8041).\r
+                               CKEDITOR.env.ie && ( keys[ 13 ] = 'mouseup' ); // Manage ENTER, since onclick is blocked in IE (http://dev.ckeditor.com/ticket/8041).\r
 \r
                                this._.pendingHtml = [];\r
                                this._.pendingList = [];\r
@@ -180,6 +180,14 @@ CKEDITOR.plugins.add( 'listblock', {
                                        this.onMark && this.onMark( item );\r
                                },\r
 \r
+                               markFirstDisplayed: function() {\r
+                                       var context = this;\r
+                                       this._.markFirstDisplayed( function() {\r
+                                               if ( !context.multiSelect )\r
+                                                       context.unmarkAll();\r
+                                       } );\r
+                               },\r
+\r
                                unmark: function( value ) {\r
                                        var doc = this.element.getDocument(),\r
                                                itemId = this._.items[ value ],\r