]> git.immae.eu Git - perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git/blame - release/samples/old/inlinetextarea.html
Upgrade to 4.5.7 and add some plugin
[perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git] / release / samples / old / inlinetextarea.html
CommitLineData
7adcb81e
IB
1<!DOCTYPE html>\r
2<!--\r
3b35bd27 3Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.\r
7adcb81e
IB
4For licensing, see LICENSE.md or http://ckeditor.com/license\r
5-->\r
6<html>\r
7<head>\r
8 <meta charset="utf-8">\r
9 <title>Replace Textarea with Inline Editor &mdash; CKEditor Sample</title>\r
10 <script src="../../ckeditor.js"></script>\r
11 <link href="sample.css" rel="stylesheet">\r
12 <style>\r
13\r
14 /* Style the CKEditor element to look like a textfield */\r
15 .cke_textarea_inline\r
16 {\r
17 padding: 10px;\r
18 height: 200px;\r
19 overflow: auto;\r
20\r
21 border: 1px solid gray;\r
22 -webkit-appearance: textfield;\r
23 }\r
24\r
25 </style>\r
26</head>\r
27<body>\r
28 <h1 class="samples">\r
29 <a href="index.html">CKEditor Samples</a> &raquo; Replace Textarea with Inline Editor\r
30 </h1>\r
31 <div class="warning deprecated">\r
32 This sample is not maintained anymore. Check out its <a href="http://sdk.ckeditor.com/samples/inline.html">brand new version in CKEditor SDK</a>.\r
33 </div>\r
34 <div class="description">\r
35 <p>\r
36 You can also create an inline editor from a <code>textarea</code>\r
37 element. In this case the <code>textarea</code> will be replaced\r
38 by a <code>div</code> element with inline editing enabled.\r
39 </p>\r
40<pre class="samples">\r
41// "article-body" is the name of a textarea element.\r
42var editor = CKEDITOR.inline( 'article-body' );\r
43</pre>\r
44 </div>\r
45 <form action="sample_posteddata.php" method="post">\r
46 <h2>This is a sample form with some fields</h2>\r
47 <p>\r
48 Title:<br>\r
49 <input type="text" name="title" value="Sample Form"></p>\r
50 <p>\r
51 Article Body (Textarea converted to CKEditor):<br>\r
52 <textarea name="article-body" style="height: 200px">\r
53 &lt;h2&gt;Technical details &lt;a id="tech-details" name="tech-details"&gt;&lt;/a&gt;&lt;/h2&gt;\r
54\r
55 &lt;table align="right" border="1" bordercolor="#ccc" cellpadding="5" cellspacing="0" style="border-collapse:collapse;margin:10px 0 10px 15px;"&gt;\r
56 &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt;\r
57 &lt;thead&gt;\r
58 &lt;tr&gt;\r
59 &lt;th scope="col"&gt;Position&lt;/th&gt;\r
60 &lt;th scope="col"&gt;Astronaut&lt;/th&gt;\r
61 &lt;/tr&gt;\r
62 &lt;/thead&gt;\r
63 &lt;tbody&gt;\r
64 &lt;tr&gt;\r
65 &lt;td&gt;Commander&lt;/td&gt;\r
66 &lt;td&gt;Neil A. Armstrong&lt;/td&gt;\r
67 &lt;/tr&gt;\r
68 &lt;tr&gt;\r
69 &lt;td&gt;Command Module Pilot&lt;/td&gt;\r
70 &lt;td&gt;Michael Collins&lt;/td&gt;\r
71 &lt;/tr&gt;\r
72 &lt;tr&gt;\r
73 &lt;td&gt;Lunar Module Pilot&lt;/td&gt;\r
74 &lt;td&gt;Edwin &quot;Buzz&quot; E. Aldrin, Jr.&lt;/td&gt;\r
75 &lt;/tr&gt;\r
76 &lt;/tbody&gt;\r
77 &lt;/table&gt;\r
78\r
79 &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center"&gt;Kennedy Space Center&lt;/a&gt; in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of &lt;a href="http://en.wikipedia.org/wiki/NASA" title="NASA"&gt;NASA&lt;/a&gt;&#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt;\r
80\r
81 &lt;ol&gt;\r
82 &lt;li&gt;&lt;strong&gt;Command Module&lt;/strong&gt; with a cabin for the three astronauts which was the only part which landed back on Earth&lt;/li&gt;\r
83 &lt;li&gt;&lt;strong&gt;Service Module&lt;/strong&gt; which supported the Command Module with propulsion, electrical power, oxygen and water&lt;/li&gt;\r
84 &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt;\r
85 &lt;/ol&gt;\r
86\r
87 &lt;p&gt;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 in the &lt;a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis"&gt;Sea of Tranquility&lt;/a&gt;. 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 &lt;a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean"&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt;\r
88\r
89 &lt;hr /&gt;\r
90 &lt;p style="text-align: right;"&gt;&lt;small&gt;Source: &lt;a href="http://en.wikipedia.org/wiki/Apollo_11"&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;\r
91 </textarea>\r
92 </p>\r
93 <p>\r
94 <input type="submit" value="Submit">\r
95 </p>\r
96 </form>\r
97\r
98 <script>\r
99 CKEDITOR.inline( 'article-body' );\r
100 </script>\r
101 <div id="footer">\r
102 <hr>\r
103 <p>\r
104 CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">\r
105 http://ckeditor.com</a>\r
106 </p>\r
107 <p id="copy">\r
3b35bd27 108 Copyright &copy; 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a>\r
7adcb81e
IB
109 - Frederico Knabben. All rights reserved.\r
110 </p>\r
111 </div>\r
112</body>\r
113</html>\r