Ticket #5135: 5135.patch
File 5135.patch, 1.4 KB (added by , 13 years ago) |
---|
-
_source/plugins/tab/plugin.js
1 /*1 /* 2 2 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. 3 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 4 */ 5 5 6 6 (function() 7 7 { 8 var meta = 9 { 10 editorFocus : false, 11 modes : { wysiwyg:1, source:1 } 12 }; 13 8 14 var blurCommand = 9 15 { 10 16 exec : function( editor ) … … 39 45 tabText += '\xa0'; 40 46 41 47 // Register the "tab" and "shiftTab" commands. 42 editor.addCommand( 'tab', 48 editor.addCommand( 'tab', CKEDITOR.tools.extend( 43 49 { 44 50 exec : function( editor ) 45 51 { … … 61 67 62 68 return true; 63 69 } 64 } );70 }, meta ) ); 65 71 66 editor.addCommand( 'shiftTab', 72 editor.addCommand( 'shiftTab', CKEDITOR.tools.extend( 67 73 { 68 74 exec : function( editor ) 69 75 { … … 74 80 75 81 return true; 76 82 } 77 } );83 }, meta ) ); 78 84 79 editor.addCommand( 'blur', blurCommand);80 editor.addCommand( 'blurBack', blurBackCommand);85 editor.addCommand( 'blur', CKEDITOR.tools.extend( blurCommand, meta ) ); 86 editor.addCommand( 'blurBack', CKEDITOR.tools.extend( blurBackCommand, meta ) ); 81 87 } 82 88 }); 83 89 })();