| 1 | <!DOCTYPE html> |
|---|
| 2 | <html> |
|---|
| 3 | <head> |
|---|
| 4 | <title>Inline Editing by Code — CKEditor Sample</title> |
|---|
| 5 | <meta charset="utf-8"> |
|---|
| 6 | <script src="../ckeditor.js"></script> |
|---|
| 7 | <link href="sample.css" rel="stylesheet"> |
|---|
| 8 | <style> |
|---|
| 9 | |
|---|
| 10 | #editable |
|---|
| 11 | { |
|---|
| 12 | padding: 10px; |
|---|
| 13 | float: left; |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | </style> |
|---|
| 17 | </head> |
|---|
| 18 | <body> |
|---|
| 19 | <table> |
|---|
| 20 | <tr> |
|---|
| 21 | <td style="width:100px;"></td><td style="width:800px;"> |
|---|
| 22 | <div id="editable" contenteditable="true"> |
|---|
| 23 | <p>Armstrong spent about <strike>three and a half</strike> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5 kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)" title="Michael Collins (astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module" title="Apollo Command/Service Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p> |
|---|
| 24 | |
|---|
| 25 | <p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>'s Apollo program. The Apollo spacecraft had three parts:</p> |
|---|
| 26 | </div> |
|---|
| 27 | </td><td style="width:100px;"></td> |
|---|
| 28 | </tr> |
|---|
| 29 | </table> |
|---|
| 30 | <script> |
|---|
| 31 | // We need to turn off the automatic editor creation first. |
|---|
| 32 | CKEDITOR.disableAutoInline = true; |
|---|
| 33 | |
|---|
| 34 | var editor = CKEDITOR.inline( 'editable', {extraPlugins: 'tableresize'} ); |
|---|
| 35 | |
|---|
| 36 | </script> |
|---|
| 37 | </body> |
|---|
| 38 | </html> |
|---|