]> git.immae.eu Git - perso/Immae/Projets/packagist/ludivine-ckeditor-component.git/blobdiff - sources/plugins/listblock/plugin.js
Update to 4.7.3
[perso/Immae/Projets/packagist/ludivine-ckeditor-component.git] / sources / plugins / listblock / plugin.js
index 21e6b08ce3cae43bf934f56fcaa00eb1094e221c..100159a6180dbcf0c0d5edb549348d406f20aba8 100644 (file)
@@ -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