+\r
+ var names = [],\r
+ i, item;\r
+\r
+ for ( var i = 0; i < items.length; ++i ) {\r
+ item = items[ i ];\r
+ if ( typeof item == 'string' )\r
+ names.push( item );\r
+ else {\r
+ if ( item.type == CKEDITOR.UI_SEPARATOR )\r
+ names.push( '-' );\r
+ else\r
+ names.push( buttonsNames[ item.name ] );\r
+ }\r
+ }\r
+\r
+ return '[ \'' + names.join( '\', \'' ) + '\' ]';\r
+ }\r
+\r
+ // Creates { 'lowercased': 'LowerCased' } buttons names hash.\r
+ function createButtonsNamesHash( items ) {\r
+ var hash = {},\r
+ name;\r
+\r
+ for ( name in items ) {\r
+ hash[ items[ name ].name ] = name;\r
+ }\r
+\r
+ return hash;\r