Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git] / httemplate / elements / ckeditor / samples / old / datafiltering.html
1 <!DOCTYPE html>\r
2 <!--\r
3 Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.\r
4 For 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>Data Filtering &mdash; CKEditor Sample</title>\r
10         <script src="../../ckeditor.js"></script>\r
11         <link rel="stylesheet" href="sample.css">\r
12         <script>\r
13                 // Remove advanced tabs for all editors.\r
14                 CKEDITOR.config.removeDialogTabs = 'image:advanced;link:advanced;flash:advanced;creatediv:advanced;editdiv:advanced';\r
15         </script>\r
16 </head>\r
17 <body>\r
18         <h1 class="samples">\r
19                 <a href="index.html">CKEditor Samples</a> &raquo; Data Filtering and Features Activation\r
20         </h1>\r
21         <div class="warning deprecated">\r
22                 This sample is not maintained anymore. Check out its <a href="http://sdk.ckeditor.com/samples/acf.html">brand new version in CKEditor SDK</a>.\r
23         </div>\r
24         <div class="description">\r
25                 <p>\r
26                         This sample page demonstrates the idea of Advanced Content Filter\r
27                         (<abbr title="Advanced Content Filter">ACF</abbr>), a sophisticated\r
28                         tool that takes control over what kind of data is accepted by the editor and what\r
29                         kind of output is produced.\r
30                 </p>\r
31                 <h2>When and what is being filtered?</h2>\r
32                 <p>\r
33                         <abbr title="Advanced Content Filter">ACF</abbr> controls\r
34                         <strong>every single source of data</strong> that comes to the editor.\r
35                         It process both HTML that is inserted manually (i.e. pasted by the user)\r
36                         and programmatically like:\r
37                 </p>\r
38 <pre class="samples">\r
39 editor.setData( '&lt;p&gt;Hello world!&lt;/p&gt;' );\r
40 </pre>\r
41                 <p>\r
42                         <abbr title="Advanced Content Filter">ACF</abbr> discards invalid,\r
43                         useless HTML tags and attributes so the editor remains "clean" during\r
44                         runtime. <abbr title="Advanced Content Filter">ACF</abbr> behaviour\r
45                         can be configured and adjusted for a particular case to prevent the\r
46                         output HTML (i.e. in CMS systems) from being polluted.\r
47 \r
48                         This kind of filtering is a first, client-side line of defense\r
49                         against "<a href="http://en.wikipedia.org/wiki/Tag_soup">tag soups</a>",\r
50                         the tool that precisely restricts which tags, attributes and styles\r
51                         are allowed (desired). When properly configured, <abbr title="Advanced Content Filter">ACF</abbr>\r
52                         is an easy and fast way to produce a high-quality, intentionally filtered HTML.\r
53                 </p>\r
54 \r
55                 <h3>How to configure or disable ACF?</h3>\r
56                 <p>\r
57                         Advanced Content Filter is enabled by default, working in "automatic mode", yet\r
58                         it provides a set of easy rules that allow adjusting filtering rules\r
59                         and disabling the entire feature when necessary. The config property\r
60                         responsible for this feature is <code><a class="samples"\r
61                         href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent">config.allowedContent</a></code>.\r
62                 </p>\r
63                 <p>\r
64                         By "automatic mode" is meant that loaded plugins decide which kind\r
65                         of content is enabled and which is not. For example, if the link\r
66                         plugin is loaded it implies that <code>&lt;a&gt;</code> tag is\r
67                         automatically allowed. Each plugin is given a set\r
68                         of predefined <abbr title="Advanced Content Filter">ACF</abbr> rules\r
69                         that control the editor until <code><a class="samples"\r
70                         href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent">\r
71                         config.allowedContent</a></code>\r
72                         is defined manually.\r
73                 </p>\r
74                 <p>\r
75                         Let's assume our intention is to restrict the editor to accept (produce) <strong>paragraphs\r
76                         only: no attributes, no styles, no other tags</strong>.\r
77                         With <abbr title="Advanced Content Filter">ACF</abbr>\r
78                         this is very simple. Basically set <code><a class="samples"\r
79                         href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent">\r
80                         config.allowedContent</a></code> to <code>'p'</code>:\r
81                 </p>\r
82 <pre class="samples">\r
83 var editor = CKEDITOR.replace( <em>textarea_id</em>, {\r
84         <strong>allowedContent: 'p'</strong>\r
85 } );\r
86 </pre>\r
87                 <p>\r
88                         Now try to play with allowed content:\r
89                 </p>\r
90 <pre class="samples">\r
91 // Trying to insert disallowed tag and attribute.\r
92 editor.setData( '&lt;p <strong>style="color: red"</strong>&gt;Hello <strong>&lt;em&gt;world&lt;/em&gt;</strong>!&lt;/p&gt;' );\r
93 alert( editor.getData() );\r
94 \r
95 // Filtered data is returned.\r
96 "&lt;p&gt;Hello world!&lt;/p&gt;"\r
97 </pre>\r
98                 <p>\r
99                         What happened? Since <code>config.allowedContent: 'p'</code> is set the editor assumes\r
100                         that only plain <code>&lt;p&gt;</code> are accepted. Nothing more. This is why\r
101                         <code>style</code> attribute and <code>&lt;em&gt;</code> tag are gone. The same\r
102                         filtering would happen if we pasted disallowed HTML into this editor.\r
103                 </p>\r
104                 <p>\r
105                         This is just a small sample of what <abbr title="Advanced Content Filter">ACF</abbr>\r
106                         can do. To know more, please refer to the sample section below and\r
107                         <a href="http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter">the official Advanced Content Filter guide</a>.\r
108                 </p>\r
109                 <p>\r
110                         You may, of course, want CKEditor to avoid filtering of any kind.\r
111                         To get rid of <abbr title="Advanced Content Filter">ACF</abbr>,\r
112                         basically set <code><a class="samples"\r
113                         href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent">\r
114                         config.allowedContent</a></code> to <code>true</code> like this:\r
115                 </p>\r
116 <pre class="samples">\r
117 CKEDITOR.replace( <em>textarea_id</em>, {\r
118         <strong>allowedContent: true</strong>\r
119 } );\r
120 </pre>\r
121 \r
122                 <h2>Beyond data flow: Features activation</h2>\r
123                 <p>\r
124                         <abbr title="Advanced Content Filter">ACF</abbr> is far more than\r
125                         <abbr title="Input/Output">I/O</abbr> control: the entire\r
126                         <abbr title="User Interface">UI</abbr> of the editor is adjusted to what\r
127                         filters restrict. For example: if <code>&lt;a&gt;</code> tag is\r
128                         <strong>disallowed</strong>\r
129                         by <abbr title="Advanced Content Filter">ACF</abbr>,\r
130                         then accordingly <code>link</code> command, toolbar button and link dialog\r
131                         are also disabled. Editor is smart: it knows which features must be\r
132                         removed from the interface to match filtering rules.\r
133                 </p>\r
134                 <p>\r
135                         CKEditor can be far more specific. If <code>&lt;a&gt;</code> tag is\r
136                         <strong>allowed</strong> by filtering rules to be used but it is restricted\r
137                         to have only one attribute (<code>href</code>)\r
138                         <code>config.allowedContent = 'a[!href]'</code>, then\r
139                         "Target" tab of the link dialog is automatically disabled as <code>target</code>\r
140                         attribute isn't included in <abbr title="Advanced Content Filter">ACF</abbr> rules\r
141                         for <code>&lt;a&gt;</code>. This behaviour applies to dialog fields, context\r
142                         menus and toolbar buttons.\r
143                 </p>\r
144 \r
145                 <h2>Sample configurations</h2>\r
146                 <p>\r
147                         There are several editor instances below that present different\r
148                         <abbr title="Advanced Content Filter">ACF</abbr> setups. <strong>All of them,\r
149                         except the inline instance, share the same HTML content</strong> to visualize\r
150                         how different filtering rules affect the same input data.\r
151                 </p>\r
152         </div>\r
153 \r
154         <div>\r
155                 <label for="editor1">\r
156                         Editor 1:\r
157                 </label>\r
158                 <div class="description">\r
159                         <p>\r
160                                 This editor is using default configuration ("automatic mode"). It means that\r
161                                 <code><a class="samples"\r
162                                 href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent">\r
163                                 config.allowedContent</a></code> is defined by loaded plugins.\r
164                                 Each plugin extends filtering rules to make it's own associated content\r
165                                 available for the user.\r
166                         </p>\r
167                 </div>\r
168                 <textarea cols="80" id="editor1" name="editor1" rows="10">\r
169                         &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, 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.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&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=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &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; &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; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#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=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&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=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;\r
170                 </textarea>\r
171 \r
172                 <script>\r
173 \r
174                         CKEDITOR.replace( 'editor1' );\r
175 \r
176                 </script>\r
177         </div>\r
178 \r
179         <br>\r
180 \r
181         <div>\r
182                 <label for="editor2">\r
183                         Editor 2:\r
184                 </label>\r
185                 <div class="description">\r
186                         <p>\r
187                                 This editor is using a custom configuration for\r
188                                 <abbr title="Advanced Content Filter">ACF</abbr>:\r
189                         </p>\r
190 <pre class="samples">\r
191 CKEDITOR.replace( 'editor2', {\r
192         allowedContent:\r
193                 'h1 h2 h3 p blockquote strong em;' +\r
194                 'a[!href];' +\r
195                 'img(left,right)[!src,alt,width,height];' +\r
196                 'table tr th td caption;' +\r
197                 'span{!font-family};' +'\r
198                 'span{!color};' +\r
199                 'span(!marker);' +\r
200                 'del ins'\r
201 } );\r
202 </pre>\r
203                         <p>\r
204                                 The following rules may require additional explanation:\r
205                         </p>\r
206                         <ul>\r
207                                 <li>\r
208                                         <code>h1 h2 h3 p blockquote strong em</code> - These tags\r
209                                         are accepted by the editor. Any tag attributes will be discarded.\r
210                                 </li>\r
211                                 <li>\r
212                                         <code>a[!href]</code> - <code>href</code> attribute is obligatory\r
213                                         for <code>&lt;a&gt;</code> tag. Tags without this attribute\r
214                                         are disarded. No other attribute will be accepted.\r
215                                 </li>\r
216                                 <li>\r
217                                         <code>img(left,right)[!src,alt,width,height]</code> - <code>src</code>\r
218                                         attribute is obligatory for <code>&lt;img&gt;</code> tag.\r
219                                         <code>alt</code>, <code>width</code>, <code>height</code>\r
220                                         and <code>class</code> attributes are accepted but\r
221                                         <code>class</code> must be either <code>class="left"</code>\r
222                                         or <code>class="right"</code>\r
223                                 </li>\r
224                                 <li>\r
225                                         <code>table tr th td caption</code> - These tags\r
226                                         are accepted by the editor. Any tag attributes will be discarded.\r
227                                 </li>\r
228                                 <li>\r
229                                         <code>span{!font-family}</code>, <code>span{!color}</code>,\r
230                                         <code>span(!marker)</code> - <code>&lt;span&gt;</code> tags\r
231                                         will be accepted if either <code>font-family</code> or\r
232                                         <code>color</code> style is set or <code>class="marker"</code>\r
233                                         is present.\r
234                                 </li>\r
235                                 <li>\r
236                                         <code>del ins</code> - These tags\r
237                                         are accepted by the editor. Any tag attributes will be discarded.\r
238                                 </li>\r
239                         </ul>\r
240                         <p>\r
241                                 Please note that <strong><abbr title="User Interface">UI</abbr> of the\r
242                                 editor is different</strong>. It's a response to what happened to the filters.\r
243                                 Since <code>text-align</code> isn't allowed, the align toolbar is gone.\r
244                                 The same thing happened to subscript/superscript, strike, underline\r
245                                 (<code>&lt;u&gt;</code>, <code>&lt;sub&gt;</code>, <code>&lt;sup&gt;</code>\r
246                                 are disallowed by <code><a class="samples"\r
247                                 href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent">\r
248                                 config.allowedContent</a></code>) and many other buttons.\r
249                         </p>\r
250                 </div>\r
251                 <textarea cols="80" id="editor2" name="editor2" rows="10">\r
252                         &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, 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.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&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=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &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; &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; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#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=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&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=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;\r
253                 </textarea>\r
254                 <script>\r
255 \r
256                         CKEDITOR.replace( 'editor2', {\r
257                                 allowedContent:\r
258                                         'h1 h2 h3 p blockquote strong em;' +\r
259                                         'a[!href];' +\r
260                                         'img(left,right)[!src,alt,width,height];' +\r
261                                         'table tr th td caption;' +\r
262                                         'span{!font-family};' +\r
263                                         'span{!color};' +\r
264                                         'span(!marker);' +\r
265                                         'del ins'\r
266                         } );\r
267 \r
268                 </script>\r
269         </div>\r
270 \r
271         <br>\r
272 \r
273         <div>\r
274                 <label for="editor3">\r
275                         Editor 3:\r
276                 </label>\r
277                 <div class="description">\r
278                         <p>\r
279                                 This editor is using a custom configuration for\r
280                                 <abbr title="Advanced Content Filter">ACF</abbr>.\r
281                                 Note that filters can be configured as an object literal\r
282                                 as an alternative to a string-based definition.\r
283                         </p>\r
284 <pre class="samples">\r
285 CKEDITOR.replace( 'editor3', {\r
286         allowedContent: {\r
287                 'b i ul ol big small': true,\r
288                 'h1 h2 h3 p blockquote li': {\r
289                         styles: 'text-align'\r
290                 },\r
291                 a: { attributes: '!href,target' },\r
292                 img: {\r
293                         attributes: '!src,alt',\r
294                         styles: 'width,height',\r
295                         classes: 'left,right'\r
296                 }\r
297         }\r
298 } );\r
299 </pre>\r
300                 </div>\r
301                 <textarea cols="80" id="editor3" name="editor3" rows="10">\r
302                         &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, 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.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&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=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &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; &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; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#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=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&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=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;\r
303                 </textarea>\r
304                 <script>\r
305 \r
306                         CKEDITOR.replace( 'editor3', {\r
307                                 allowedContent: {\r
308                                         'b i ul ol big small': true,\r
309                                         'h1 h2 h3 p blockquote li': {\r
310                                                 styles: 'text-align'\r
311                                         },\r
312                                         a: { attributes: '!href,target' },\r
313                                         img: {\r
314                                                 attributes: '!src,alt',\r
315                                                 styles: 'width,height',\r
316                                                 classes: 'left,right'\r
317                                         }\r
318                                 }\r
319                         } );\r
320 \r
321                 </script>\r
322         </div>\r
323 \r
324         <br>\r
325 \r
326         <div>\r
327                 <label for="editor4">\r
328                         Editor 4:\r
329                 </label>\r
330                 <div class="description">\r
331                         <p>\r
332                                 This editor is using a custom set of plugins and buttons.\r
333                         </p>\r
334 <pre class="samples">\r
335 CKEDITOR.replace( 'editor4', {\r
336         removePlugins: 'bidi,font,forms,flash,horizontalrule,iframe,justify,table,tabletools,smiley',\r
337         removeButtons: 'Anchor,Underline,Strike,Subscript,Superscript,Image',\r
338         format_tags: 'p;h1;h2;h3;pre;address'\r
339 } );\r
340 </pre>\r
341                         <p>\r
342                                 As you can see, removing plugins and buttons implies filtering.\r
343                                 Several tags are not allowed in the editor because there's no\r
344                                 plugin/button that is responsible for creating and editing this\r
345                                 kind of content (for example: the image is missing because\r
346                                 of <code>removeButtons: 'Image'</code>). The conclusion is that\r
347                                 <abbr title="Advanced Content Filter">ACF</abbr> works "backwards"\r
348                                 as well: <strong>modifying <abbr title="User Interface">UI</abbr>\r
349                                 elements is changing allowed content rules</strong>.\r
350                         </p>\r
351                 </div>\r
352                 <textarea cols="80" id="editor4" name="editor4" rows="10">\r
353                         &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, 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.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&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=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &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; &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; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#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=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&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=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;\r
354                 </textarea>\r
355                 <script>\r
356 \r
357                         CKEDITOR.replace( 'editor4', {\r
358                                 removePlugins: 'bidi,div,font,forms,flash,horizontalrule,iframe,justify,table,tabletools,smiley',\r
359                                 removeButtons: 'Anchor,Underline,Strike,Subscript,Superscript,Image',\r
360                                 format_tags: 'p;h1;h2;h3;pre;address'\r
361                         } );\r
362 \r
363                 </script>\r
364         </div>\r
365 \r
366         <br>\r
367 \r
368         <div>\r
369                 <label for="editor5">\r
370                         Editor 5:\r
371                 </label>\r
372                 <div class="description">\r
373                         <p>\r
374                                 This editor is built on editable <code>&lt;h1&gt;</code> element.\r
375                                 <abbr title="Advanced Content Filter">ACF</abbr> takes care of\r
376                                 what can be included in <code>&lt;h1&gt;</code>. Note that there\r
377                                 are no block styles in Styles combo. Also why lists, indentation,\r
378                                 blockquote, div, form and other buttons are missing.\r
379                         </p>\r
380                         <p>\r
381                                 <abbr title="Advanced Content Filter">ACF</abbr> makes sure that\r
382                                 no disallowed tags will come to <code>&lt;h1&gt;</code> so the final\r
383                                 markup is valid. If the user tried to paste some invalid HTML\r
384                                 into this editor (let's say a list), it would be automatically\r
385                                 converted into plain text.\r
386                         </p>\r
387                 </div>\r
388                 <h1 id="editor5" contenteditable="true">\r
389                         <em>Apollo 11</em> 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.\r
390                 </h1>\r
391         </div>\r
392 \r
393         <br>\r
394 \r
395         <div>\r
396                 <label for="editor3">\r
397                         Editor 6:\r
398                 </label>\r
399                 <div class="description">\r
400                         <p>\r
401                                 This editor is using a custom configuration for <abbr title="Advanced Content Filter">ACF</abbr>.\r
402                                 It's using the <a href="http://docs.ckeditor.com/#!/guide/dev_disallowed_content" target="_blank">\r
403                                 Disallowed Content</a> property of the filter to eliminate all <code>title</code> attributes.\r
404                         </p>\r
405 \r
406 <pre class="samples">\r
407 CKEDITOR.replace( 'editor6', {\r
408         allowedContent: {\r
409                 'b i ul ol big small': true,\r
410                 'h1 h2 h3 p blockquote li': {\r
411                         styles: 'text-align'\r
412                 },\r
413                 a: {attributes: '!href,target'},\r
414                 img: {\r
415                         attributes: '!src,alt',\r
416                         styles: 'width,height',\r
417                         classes: 'left,right'\r
418                 }\r
419         },\r
420         disallowedContent: '*{title*}'\r
421 } );\r
422 </pre>\r
423                 </div>\r
424                 <textarea cols="80" id="editor6" name="editor6" rows="10">\r
425                         &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, 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.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&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=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &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; &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; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#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=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&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=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;\r
426                 </textarea>\r
427                 <script>\r
428 \r
429                         CKEDITOR.replace( 'editor6', {\r
430                                 allowedContent: {\r
431                                         'b i ul ol big small': true,\r
432                                         'h1 h2 h3 p blockquote li': {\r
433                                                 styles: 'text-align'\r
434                                         },\r
435                                         a: {attributes: '!href,target'},\r
436                                         img: {\r
437                                                 attributes: '!src,alt',\r
438                                                 styles: 'width,height',\r
439                                                 classes: 'left,right'\r
440                                         }\r
441                                 },\r
442                                 disallowedContent: '*{title*}'\r
443                         } );\r
444 \r
445                 </script>\r
446         </div>\r
447 \r
448         <br>\r
449 \r
450         <div>\r
451                 <label for="editor7">\r
452                         Editor 7:\r
453                 </label>\r
454                 <div class="description">\r
455                         <p>\r
456                                 This editor is using a custom configuration for <abbr title="Advanced Content Filter">ACF</abbr>.\r
457                                 It's using the <a href="http://docs.ckeditor.com/#!/guide/dev_disallowed_content" target="_blank">\r
458                                 Disallowed Content</a> property of the filter to eliminate all <code>a</code> and <code>img</code> tags,\r
459                                 while allowing all other tags.\r
460                         </p>\r
461 <pre class="samples">\r
462 CKEDITOR.replace( 'editor7', {\r
463         allowedContent: {\r
464                 // Allow all content.\r
465                 $1: {\r
466                         elements: CKEDITOR.dtd,\r
467                         attributes: true,\r
468                         styles: true,\r
469                         classes: true\r
470                 }\r
471         },\r
472         disallowedContent: 'img a'\r
473 } );\r
474 </pre>\r
475                 </div>\r
476                 <textarea cols="80" id="editor7" name="editor7" rows="10">\r
477                         &lt;h1&gt;&lt;img alt=&quot;Saturn V carrying Apollo 11&quot; class=&quot;right&quot; src=&quot;assets/sample.jpg&quot;/&gt; Apollo 11&lt;/h1&gt; &lt;p&gt;&lt;b&gt;Apollo 11&lt;/b&gt; was the spaceflight that landed the first humans, Americans &lt;a href=&quot;http://en.wikipedia.org/wiki/Neil_Armstrong&quot; title=&quot;Neil Armstrong&quot;&gt;Neil Armstrong&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Buzz_Aldrin&quot; title=&quot;Buzz Aldrin&quot;&gt;Buzz Aldrin&lt;/a&gt;, 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.&lt;/p&gt; &lt;p&gt;Armstrong spent about &lt;s&gt;three and a half&lt;/s&gt; two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&amp;nbsp;kg) of lunar material for return to Earth. A third member of the mission, &lt;a href=&quot;http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)&quot; title=&quot;Michael Collins (astronaut)&quot;&gt;Michael Collins&lt;/a&gt;, piloted the &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_Command/Service_Module&quot; title=&quot;Apollo Command/Service Module&quot;&gt;command&lt;/a&gt; spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.&lt;/p&gt; &lt;h2&gt;Broadcasting and &lt;em&gt;quotes&lt;/em&gt; &lt;a id=&quot;quotes&quot; name=&quot;quotes&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;One small step for [a] man, one giant leap for mankind.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Apollo 11 effectively ended the &lt;a href=&quot;http://en.wikipedia.org/wiki/Space_Race&quot; title=&quot;Space Race&quot;&gt;Space Race&lt;/a&gt; and fulfilled a national goal proposed in 1961 by the late U.S. President &lt;a href=&quot;http://en.wikipedia.org/wiki/John_F._Kennedy&quot; title=&quot;John F. Kennedy&quot;&gt;John F. Kennedy&lt;/a&gt; in a speech before the United States Congress:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.&lt;/p&gt;&lt;/blockquote&gt; &lt;h2&gt;Technical details &lt;a id=&quot;tech-details&quot; name=&quot;tech-details&quot;&gt;&lt;/a&gt;&lt;/h2&gt; &lt;table align=&quot;right&quot; border=&quot;1&quot; bordercolor=&quot;#ccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse;margin:10px 0 10px 15px;&quot;&gt; &lt;caption&gt;&lt;strong&gt;Mission crew&lt;/strong&gt;&lt;/caption&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot;&gt;Position&lt;/th&gt; &lt;th scope=&quot;col&quot;&gt;Astronaut&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Commander&lt;/td&gt; &lt;td&gt;Neil A. Armstrong&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Command Module Pilot&lt;/td&gt; &lt;td&gt;Michael Collins&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lunar Module Pilot&lt;/td&gt; &lt;td&gt;Edwin &amp;quot;Buzz&amp;quot; E. Aldrin, Jr.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Launched by a &lt;strong&gt;Saturn V&lt;/strong&gt; rocket from &lt;a href=&quot;http://en.wikipedia.org/wiki/Kennedy_Space_Center&quot; title=&quot;Kennedy Space Center&quot;&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=&quot;http://en.wikipedia.org/wiki/NASA&quot; title=&quot;NASA&quot;&gt;NASA&lt;/a&gt;&amp;#39;s Apollo program. The Apollo spacecraft had three parts:&lt;/p&gt; &lt;ol&gt; &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; &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; &lt;li&gt;&lt;strong&gt;Lunar Module&lt;/strong&gt; for landing on the Moon.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;After being sent to the Moon by the Saturn V&amp;#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=&quot;http://en.wikipedia.org/wiki/Mare_Tranquillitatis&quot; title=&quot;Mare Tranquillitatis&quot;&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=&quot;http://en.wikipedia.org/wiki/Pacific_Ocean&quot; title=&quot;Pacific Ocean&quot;&gt;Pacific Ocean&lt;/a&gt; on July 24.&lt;/p&gt; &lt;hr/&gt; &lt;p style=&quot;text-align: right;&quot;&gt;&lt;small&gt;Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Apollo_11&quot;&gt;Wikipedia.org&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;\r
478                 </textarea>\r
479                 <script>\r
480 \r
481                         CKEDITOR.replace( 'editor7', {\r
482                                 allowedContent: {\r
483                                         // allow all content\r
484                                         $1: {\r
485                                                 elements: CKEDITOR.dtd,\r
486                                                 attributes: true,\r
487                                                 styles: true,\r
488                                                 classes: true\r
489                                         }\r
490                                 },\r
491                                 disallowedContent: 'img a'\r
492                         } );\r
493 \r
494                 </script>\r
495         </div>\r
496 \r
497         <div id="footer">\r
498                 <hr>\r
499                 <p>\r
500                         CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>\r
501                 </p>\r
502                 <p id="copy">\r
503                         Copyright &copy; 2003-2015, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico\r
504                         Knabben. All rights reserved.\r
505                 </p>\r
506         </div>\r
507 </body>\r
508 </html>\r