JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.1
[ckeditor.git] / _source / plugins / listblock / plugin.js
index 848cc2a..63f85c7 100644 (file)
@@ -9,9 +9,9 @@ CKEDITOR.plugins.add( 'listblock',
 \r
        onLoad : function()\r
        {\r
-               CKEDITOR.ui.panel.prototype.addListBlock = function( name, definiton )\r
+               CKEDITOR.ui.panel.prototype.addListBlock = function( name, definition )\r
                {\r
-                       return this.addBlock( name, new CKEDITOR.ui.listBlock( this.getHolderElement(), definiton ) );\r
+                       return this.addBlock( name, new CKEDITOR.ui.listBlock( this.getHolderElement(), definition ) );\r
                };\r
 \r
                CKEDITOR.ui.listBlock = CKEDITOR.tools.createClass(\r
@@ -195,11 +195,14 @@ CKEDITOR.plugins.add( 'listblock',
 \r
                                                this.element.getDocument().getById( itemId + '_option' ).setAttribute( 'aria-selected', true );\r
                                                this.element.setAttribute( 'aria-activedescendant', itemId + '_option' );\r
+\r
+                                               this.onMark && this.onMark( item );\r
                                        },\r
 \r
                                        unmark : function( value )\r
                                        {\r
                                                this.element.getDocument().getById( this._.items[ value ] ).removeClass( 'cke_selected' );\r
+                                               this.onUnmark && this.onUnmark( this._.items[ value ] );\r
                                        },\r
 \r
                                        unmarkAll : function()\r
@@ -211,6 +214,8 @@ CKEDITOR.plugins.add( 'listblock',
                                                {\r
                                                        doc.getById( items[ value ] ).removeClass( 'cke_selected' );\r
                                                }\r
+\r
+                                               this.onUnmark && this.onUnmark();\r
                                        },\r
 \r
                                        isMarked : function( value )\r