]> git.immae.eu Git - perso/Immae/Projets/packagist/piedsjaloux-ckeditor-component.git/blame - sources/plugins/widget/dev/widgetstyles.html
Add oembed
[perso/Immae/Projets/packagist/piedsjaloux-ckeditor-component.git] / sources / plugins / widget / dev / widgetstyles.html
CommitLineData
317f8f8f
IB
1<!DOCTYPE html>\r
2<!--\r
3Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
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>Applying styles to widgets &mdash; CKEditor Sample</title>\r
10 <script src="../../../ckeditor.js"></script>\r
11 <link rel="stylesheet" href="../../../samples/old/sample.css">\r
12 <link rel="stylesheet" href="../../../contents.css">\r
13 <link rel="stylesheet" href="assets/contents.css">\r
14</head>\r
15<body>\r
16 <h1 class="samples">Applying styles to widgets</h1>\r
17\r
18 <h2>Classic (iframe-based) Sample</h2>\r
19 <textarea cols="80" id="editor1" name="editor1" rows="10">\r
20 <h1>Apollo 11</h1>\r
21\r
22 <figure class="image" style="float: right">\r
23 <img alt="Saturn V" src="../../../samples/assets/sample.jpg" width="150" />\r
24 <figcaption>Roll out of Saturn V on launch pad</figcaption>\r
25 </figure>\r
26\r
27 <p><strong>Apollo 11</strong> 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>\r
28\r
29 <p>Armstrong spent about <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, <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>\r
30\r
31 <h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>\r
32\r
33 <p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>\r
34\r
35 <blockquote>\r
36 <p>One small step for [a] man, one giant leap for mankind.</p>\r
37 </blockquote>\r
38\r
39 <p><span class="math-tex">\( \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \)</span></p>\r
40\r
41 <p>Apollo 11 effectively ended the <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 <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>\r
42\r
43 <blockquote>\r
44 <p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>\r
45 </blockquote>\r
46\r
47 <figure class="image" style="float: right">\r
48 <img alt="The Eagle" src="../../../samples/assets/sample.jpg" width="150" />\r
49 <figcaption>The Eagle in lunar orbit</figcaption>\r
50 </figure>\r
51\r
52 <h2>Technical details <a id="tech-details" name="tech-details"></a></h2>\r
53\r
54 <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>&#39;s Apollo program. The Apollo spacecraft had three parts:</p>\r
55\r
56 <ol>\r
57 <li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>\r
58 <li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>\r
59 <li><strong>Lunar Module</strong> for landing on the Moon.</li>\r
60 </ol>\r
61\r
62 <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 in the <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 <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>\r
63 </textarea>\r
64\r
65 <h2>Inline Sample</h2>\r
66 <div id="editor2" contenteditable="true">\r
67 <h1>Apollo 11</h1>\r
68\r
69 <figure class="image" style="float: right">\r
70 <img alt="Saturn V" src="../../../samples/assets/sample.jpg" width="150" />\r
71 <figcaption>Roll out of Saturn V on launch pad</figcaption>\r
72 </figure>\r
73\r
74 <p><strong>Apollo 11</strong> 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>\r
75\r
76 <p>Armstrong spent about <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, <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>\r
77\r
78 <h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>\r
79\r
80 <p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>\r
81\r
82 <blockquote>\r
83 <p>One small step for [a] man, one giant leap for mankind.</p>\r
84 </blockquote>\r
85\r
86 <p><span class="math-tex">\( \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \)</span></p>\r
87\r
88 <p>Apollo 11 effectively ended the <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 <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>\r
89\r
90 <blockquote>\r
91 <p>[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.</p>\r
92 </blockquote>\r
93\r
94 <figure class="image" style="float: right">\r
95 <img alt="The Eagle" src="../../../samples/assets/sample.jpg" width="150" />\r
96 <figcaption>The Eagle in lunar orbit</figcaption>\r
97 </figure>\r
98\r
99 <h2>Technical details <a id="tech-details" name="tech-details"></a></h2>\r
100\r
101 <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>&#39;s Apollo program. The Apollo spacecraft had three parts:</p>\r
102\r
103 <ol>\r
104 <li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>\r
105 <li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>\r
106 <li><strong>Lunar Module</strong> for landing on the Moon.</li>\r
107 </ol>\r
108\r
109 <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 in the <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 <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>\r
110 </div>\r
111\r
112 <script>\r
113 if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 )\r
114 CKEDITOR.tools.enableHtml5Elements( document );\r
115\r
116 CKEDITOR.disableAutoInline = true;\r
117\r
118 var stylesSet = [\r
119 { name: 'Medium border', type: 'widget', widget: 'image', attributes: { 'class': 'mediumBorder' } },\r
120 { name: 'Thick border', type: 'widget', widget: 'image', attributes: { 'class': 'thickBorder' } },\r
121 { name: 'So important', type: 'widget', widget: 'image', attributes: { 'class': 'important soMuch' } },\r
122\r
123 { name: 'Red marker', type: 'widget', widget: 'placeholder', attributes: { 'class': 'redMarker' } },\r
124 { name: 'Invisible Placeholder', type: 'widget', widget: 'placeholder', attributes: { 'class': 'invisible' } },\r
125\r
126 { name: 'Invisible Mathjax', type: 'widget', widget: 'mathjax', attributes: { 'class': 'invisible' } }\r
127 ];\r
128\r
129 CKEDITOR.replace( 'editor1', {\r
130 extraPlugins: 'placeholder,image2,mathjax',\r
131 contentsCss: [ '../../../contents.css', 'assets/contents.css' ],\r
132 stylesSet: stylesSet,\r
133 height: 300\r
134 } );\r
135\r
136 CKEDITOR.inline( 'editor2', {\r
137 extraPlugins: 'placeholder,image2,mathjax',\r
138 stylesSet: stylesSet,\r
139 height: 300\r
140 } );\r
141\r
142 </script>\r
143</body>\r
144</html>\r