| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 3 | <head> |
|---|
| 4 | <title>#5892 - Test Page</title> |
|---|
| 5 | <meta content="text/html; charset=utf-8" http-equiv="content-type" /> |
|---|
| 6 | <script type="text/javascript" src="/ckeditor/ckeditor_source.js"></script> |
|---|
| 7 | </head> |
|---|
| 8 | <body> |
|---|
| 9 | <p> |
|---|
| 10 | <textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea> |
|---|
| 11 | <script type="text/javascript"> |
|---|
| 12 | |
|---|
| 13 | CKEDITOR.replace( 'editor1', |
|---|
| 14 | { |
|---|
| 15 | on : |
|---|
| 16 | { |
|---|
| 17 | key : function( ev ) |
|---|
| 18 | { |
|---|
| 19 | var editor = ev.editor, |
|---|
| 20 | keyCode = ev.data.keyCode; |
|---|
| 21 | |
|---|
| 22 | if ( keyCode == 9 ) |
|---|
| 23 | { |
|---|
| 24 | ev.cancel(); |
|---|
| 25 | editor.execCommand("indent"); |
|---|
| 26 | } |
|---|
| 27 | else if ( keyCode == ( CKEDITOR.SHIFT + 9 ) ) |
|---|
| 28 | { |
|---|
| 29 | ev.cancel(); |
|---|
| 30 | editor.execCommand("outdent"); |
|---|
| 31 | } |
|---|
| 32 | } |
|---|
| 33 | } |
|---|
| 34 | }); |
|---|
| 35 | |
|---|
| 36 | </script> |
|---|
| 37 | </p> |
|---|
| 38 | </body> |
|---|
| 39 | </html> |
|---|