Changeset 5210
- Timestamp:
- 2010-03-01 22:16:50 (2 years ago)
- Location:
- CKEditor/trunk
- Files:
-
- 2 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/selection/plugin.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r5201 r5210 40 40 New features:</p> 41 41 <ul> 42 <li>< /li>42 <li><a href="http://dev.fckeditor.net/ticket/4478">#4478</a> : Enable the SelectAll command in source mode.</li> 43 43 </ul> 44 44 <p> -
CKEditor/trunk/_source/plugins/selection/plugin.js
r5206 r5210 73 73 var selectAllCmd = 74 74 { 75 modes : { wysiwyg : 1, source : 1 }, 75 76 exec : function( editor ) 76 77 { … … 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 },
Note: See TracChangeset
for help on using the changeset viewer.
