1 | <!DOCTYPE html> |
---|
2 | <!-- |
---|
3 | Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. |
---|
4 | For licensing, see LICENSE.md or http://ckeditor.com/license |
---|
5 | --> |
---|
6 | <html> |
---|
7 | <head> |
---|
8 | <meta charset="utf-8"> |
---|
9 | <title>#11500</title> |
---|
10 | <script src="../ckeditor.js"></script> |
---|
11 | <link href="sample.css" rel="stylesheet"> |
---|
12 | <style> |
---|
13 | .cke_textarea_inline { |
---|
14 | width: 50%; |
---|
15 | float: left; |
---|
16 | } |
---|
17 | </style> |
---|
18 | </head> |
---|
19 | <body> |
---|
20 | <h1 class="samples"> |
---|
21 | #11500 |
---|
22 | </h1> |
---|
23 | <form action="sample_posteddata.php" method="post"> |
---|
24 | <textarea cols="80" id="editor1" name="editor1" rows="10"> |
---|
25 | <h1>Apollo 11</h1> <p><b>Apollo 11</b> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p> |
---|
26 | </textarea> |
---|
27 | <textarea cols="80" id="editor2" name="editor2" rows="10"> |
---|
28 | <h1>Apollo 11</h1> <p><b>Apollo 11</b> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin" title="Buzz Aldrin">Buzz Aldrin</a>, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.</p> |
---|
29 | </textarea> |
---|
30 | <script> |
---|
31 | |
---|
32 | CKEDITOR.inline( 'editor1' ); |
---|
33 | CKEDITOR.inline( 'editor2' ); |
---|
34 | |
---|
35 | CKEDITOR.instances.editor1.on( 'key', function() { |
---|
36 | CKEDITOR.instances.editor2.setData( CKEDITOR.instances.editor1.getData() ); |
---|
37 | } ); |
---|
38 | CKEDITOR.instances.editor2.on( 'key', function() { |
---|
39 | CKEDITOR.instances.editor1.setData( CKEDITOR.instances.editor2.getData() ); |
---|
40 | } ); |
---|
41 | |
---|
42 | |
---|
43 | </script> |
---|
44 | </form> |
---|
45 | </body> |
---|
46 | </html> |
---|