X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ftoolbar%2Fplugin.js;h=fd9fab04ffda4d3369c26f9dfe637dd2f1e50404;hb=refs%2Ftags%2Fv3.2.1;hp=4b59f6d33bde4add33503d8fe6a6eebad295d9f6;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/plugins/toolbar/plugin.js b/_source/plugins/toolbar/plugin.js index 4b59f6d..fd9fab0 100644 --- a/_source/plugins/toolbar/plugin.js +++ b/_source/plugins/toolbar/plugin.js @@ -60,14 +60,15 @@ For licensing, see LICENSE.html or http://ckeditor.com/license var itemKeystroke = function( item, keystroke ) { var next, nextToolGroup, groupItemsCount; + var rtl = editor.lang.dir == 'rtl'; switch ( keystroke ) { - case 39 : // RIGHT-ARROW + case rtl ? 37 : 39 : // RIGHT-ARROW case 9 : // TAB do { - // Look for the previous item in the toolbar. + // Look for the next item in the toolbar. next = item.next; if ( !next ) @@ -99,7 +100,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license return false; - case 37 : // LEFT-ARROW + case rtl ? 39 : 37 : // LEFT-ARROW case CKEDITOR.SHIFT + 9 : // SHIFT + TAB do { @@ -284,6 +285,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license editor.execCommand( 'toolbarCollapse' ); } ); + editor.on( 'destroy', function () { + CKEDITOR.tools.removeFunction( collapserFn ); + } ); + var collapserId = 'cke_' + CKEDITOR.tools.getNextNumber(); editor.addCommand( 'toolbarCollapse', @@ -408,7 +413,7 @@ CKEDITOR.config.toolbar_Basic = * ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'], * '/', * ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], - * ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'], + * ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'], * ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], * ['Link','Unlink','Anchor'], * ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],