Ticket #4478: 4478.patch
File 4478.patch, 901 bytes (added by , 14 years ago) |
---|
-
_source/plugins/selection/plugin.js
72 72 73 73 var selectAllCmd = 74 74 { 75 modes : { wysiwyg : 1, source : 1 }, 75 76 exec : function( editor ) 76 77 { 77 78 switch ( editor.mode ) … … 80 81 editor.document.$.execCommand( 'SelectAll', false, null ); 81 82 break; 82 83 case 'source' : 83 // TODO 84 // Select the contents of the textarea 85 var textarea = editor.textarea.$ ; 86 if ( CKEDITOR.env.ie ) 87 { 88 textarea.createTextRange().execCommand( 'SelectAll' ) ; 89 } 90 else 91 { 92 textarea.selectionStart = 0 ; 93 textarea.selectionEnd = textarea.value.length ; 94 } 95 textarea.focus() ; 84 96 } 85 97 }, 86 98 canUndo : false