Ticket #4355: 4355.patch
File 4355.patch, 2.6 KB (added by , 15 years ago) |
---|
-
_source/plugins/maximize/plugin.js
111 111 editor.addCommand( 'maximize', 112 112 { 113 113 modes : { wysiwyg : 1, source : 1 }, 114 114 editorFocus : false, 115 115 exec : function() 116 116 { 117 117 var container = editor.container.getChild( [ 0, 0 ] ); -
_source/plugins/scayt/plugin.js
250 250 var commandDefinition = 251 251 { 252 252 preserveState : true, 253 editorFocus : false, 253 254 254 255 exec: function( editor ) 255 256 { -
_source/plugins/showblocks/plugin.js
89 89 var commandDefinition = 90 90 { 91 91 preserveState : true, 92 editorFocus : false, 92 93 93 94 exec : function ( editor ) 94 95 { -
_source/core/commanddefinition.js
70 70 * async : true // The command need some time to complete after exec function returns. 71 71 * }); 72 72 */ 73 74 /** 75 * Whether the command should give focus to the editor before execution. 76 * @name CKEDITOR.commandDefinition.editorFocus 77 * @type {Boolean} 78 * @example 79 * editorInstance.addCommand( 'maximize', 80 * { 81 * exec : function( editor ) 82 * { 83 * }, 84 * editorFocus : false // The command doesn't require focusing the editing document. 85 * }); 86 */ -
_source/core/command.js
12 12 if ( this.state == CKEDITOR.TRISTATE_DISABLED ) 13 13 return false; 14 14 15 // The editor will always have the focus when executing a command.16 editor.focus();15 if( commandDefinition.editorFocus ) // Give editor focus if necessary. 16 editor.focus(); 17 17 18 18 return ( commandDefinition.exec.call( this, editor, data ) !== false ); 19 19 }; … … 22 22 // Defaults 23 23 { 24 24 modes : { wysiwyg : 1 }, 25 editorFocus : true, 25 26 state : CKEDITOR.TRISTATE_OFF 26 27 }); 27 28