var itemKeystroke = function( item, keystroke )\r
{\r
var next, nextToolGroup, groupItemsCount;\r
+ var rtl = editor.lang.dir == 'rtl';\r
\r
switch ( keystroke )\r
{\r
- case 39 : // RIGHT-ARROW\r
+ case rtl ? 37 : 39 : // RIGHT-ARROW\r
case 9 : // TAB\r
do\r
{\r
- // Look for the previous item in the toolbar.\r
+ // Look for the next item in the toolbar.\r
next = item.next;\r
\r
if ( !next )\r
\r
return false;\r
\r
- case 37 : // LEFT-ARROW\r
+ case rtl ? 39 : 37 : // LEFT-ARROW\r
case CKEDITOR.SHIFT + 9 : // SHIFT + TAB\r
do\r
{\r
editor.execCommand( 'toolbarCollapse' );\r
} );\r
\r
+ editor.on( 'destroy', function () {\r
+ CKEDITOR.tools.removeFunction( collapserFn );\r
+ } );\r
+\r
var collapserId = 'cke_' + CKEDITOR.tools.getNextNumber();\r
\r
editor.addCommand( 'toolbarCollapse',\r
* ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],\r
* '/',\r
* ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],\r
- * ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],\r
+ * ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],\r
* ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],\r
* ['Link','Unlink','Anchor'],\r
* ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],\r