Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
776 lars 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
 
8
    <head>
9
        <meta charset="utf-8">
10
        <title>Inline Editing by Code &mdash; CKEditor Sample</title>
11
        <script src="../ckeditor.js"></script>
12
        <link href="sample.css" rel="stylesheet">
13
        <style>
14
            #editable {
15
                padding: 10px;
16
                float: left;
17
            }
18
        </style>
19
    </head>
20
 
21
    <body>
22
        <h1 class="samples">
23
            <a href="index.html">CKEditor Samples</a> &raquo; Inline Editing by Code </h1>
24
        <div class="description">
25
            <p> This sample shows how to create an inline editor instance of CKEditor. It is created with a JavaScript call using the following code: </p> <pre class="samples">
26
// This property tells CKEditor to not activate every element with contenteditable=true element.
27
CKEDITOR.disableAutoInline = true;
28
 
29
var editor = CKEDITOR.inline( document.getElementById( 'editable' ) );
30
</pre>
31
            <p> Note that <code>editable</code> in the code above is the <code>id</code> attribute of the <code>&lt;div&gt;</code> element to be converted into an inline instance. </p>
32
        </div>
33
        <div id="editable" contenteditable="true">
34
            <h1>
35
                <img alt="Saturn V carrying Apollo 11" class="right" src="assets/sample.jpg" /> Apollo 11</h1>
36
            <p>
37
                <b>Apollo 11</b> was the spaceflight that landed the first humans, Americans
38
                <a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a> and
39
                <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>
40
            <p>Armstrong spent about
41
                <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission,
42
                <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)"
43
                    title="Michael Collins (astronaut)">Michael Collins</a>, piloted the
44
                <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>
45
            <h2>Broadcasting and
46
                <em>quotes</em>
47
                <a id="quotes" name="quotes"></a>
48
            </h2>
49
            <p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>
50
            <blockquote>
51
                <p>One small step for [a] man, one giant leap for mankind.</p>
52
            </blockquote>
53
            <p>Apollo 11 effectively ended the
54
                <a href="http://en.wikipedia.org/wiki/Space_Race" title="Space Race">Space Race</a> and fulfilled a national goal proposed in 1961 by the late U.S. President
55
                <a href="http://en.wikipedia.org/wiki/John_F._Kennedy" title="John F. Kennedy">John F. Kennedy</a> in a speech before the United States Congress:</p>
56
            <blockquote>
57
                <p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>
58
            </blockquote>
59
            <h2>Technical details
60
                <a id="tech-details" name="tech-details"></a>
61
            </h2>
62
            <table align="right" border="1" bordercolor="#ccc" cellpadding="5" cellspacing="0" style="border-collapse:collapse;margin:10px 0 10px 15px;">
63
                <caption>
64
                    <strong>Mission crew</strong>
65
                </caption>
66
                <thead>
67
                    <tr>
68
                        <th scope="col">Position</th>
69
                        <th scope="col">Astronaut</th>
70
                    </tr>
71
                </thead>
72
                <tbody>
73
                    <tr>
74
                        <td>Commander</td>
75
                        <td>Neil A. Armstrong</td>
76
                    </tr>
77
                    <tr>
78
                        <td>Command Module Pilot</td>
79
                        <td>Michael Collins</td>
80
                    </tr>
81
                    <tr>
82
                        <td>Lunar Module Pilot</td>
83
                        <td>Edwin &quot;Buzz&quot; E. Aldrin, Jr.</td>
84
                    </tr>
85
                </tbody>
86
            </table>
87
            <p>Launched by a
88
                <strong>Saturn V</strong> rocket from
89
                <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
90
                <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>&#39;s Apollo program. The Apollo spacecraft had three parts:</p>
91
            <ol>
92
                <li>
93
                    <strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
94
                <li>
95
                    <strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
96
                <li>
97
                    <strong>Lunar Module</strong> for landing on the Moon.</li>
98
            </ol>
99
            <p>After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed
100
                in the
101
                <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the
102
                <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
103
            <hr />
104
            <p style="text-align: right;">
105
                <small>Source:
106
                    <a href="http://en.wikipedia.org/wiki/Apollo_11">Wikipedia.org</a>
107
                </small>
108
            </p>
109
        </div>
110
        <script>
111
            // We need to turn off the automatic editor creation first.
112
            CKEDITOR.disableAutoInline = true;
113
            var editor = CKEDITOR.inline('editable');
114
        </script>
115
        <div id="footer">
116
            <hr>
117
            <p contenteditable="true"> CKEditor - The text editor for the Internet -
118
                <a class="samples" href="http://ckeditor.com/"> http://ckeditor.com</a>
119
            </p>
120
            <p id="copy"> Copyright &copy; 2003-2014,
121
                <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p>
122
        </div>
123
    </body>
124
 
125
</html>