Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

remove samples

  • Loading branch information...
commit 503fbaf3e9ed8bcd0600491ae9fd0c3761432ab5 1 parent 84454f5
Trent Steel authored

Showing 35 changed files with 0 additions and 4,173 deletions. Show diff stats Hide diff stats

  1. +0 82 Resources/public/samples/ajax.html
  2. +0 207 Resources/public/samples/api.html
  3. +0 57 Resources/public/samples/appendto.html
  4. BIN  Resources/public/samples/assets/inlineall/logo.png
  5. +0 204 Resources/public/samples/assets/outputxhtml/outputxhtml.css
  6. +0 59 Resources/public/samples/assets/posteddata.php
  7. +0 3  Resources/public/samples/assets/sample.css
  8. BIN  Resources/public/samples/assets/sample.jpg
  9. +0 7 Resources/public/samples/assets/uilanguages/languages.js
  10. +0 401 Resources/public/samples/datafiltering.html
  11. +0 141 Resources/public/samples/divreplace.html
  12. +0 122 Resources/public/samples/index.html
  13. +0 311 Resources/public/samples/inlineall.html
  14. +0 122 Resources/public/samples/inlinebycode.html
  15. +0 48 Resources/public/samples/plugins/dialog/assets/my_dialog.js
  16. +0 187 Resources/public/samples/plugins/dialog/dialog.html
  17. +0 103 Resources/public/samples/plugins/enterkey/enterkey.html
  18. BIN  Resources/public/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla
  19. BIN  Resources/public/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf
  20. +0 18 Resources/public/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js
  21. +0 280 Resources/public/samples/plugins/htmlwriter/outputforflash.html
  22. +0 237 Resources/public/samples/plugins/htmlwriter/outputhtml.html
  23. +0 207 Resources/public/samples/plugins/magicline/magicline.html
  24. +0 232 Resources/public/samples/plugins/toolbar/toolbar.html
  25. +0 77 Resources/public/samples/plugins/wysiwygarea/fullpage.html
  26. +0 73 Resources/public/samples/readonly.html
  27. +0 57 Resources/public/samples/replacebyclass.html
  28. +0 56 Resources/public/samples/replacebycode.html
  29. +0 339 Resources/public/samples/sample.css
  30. +0 33 Resources/public/samples/sample.js
  31. +0 16 Resources/public/samples/sample_posteddata.php
  32. +0 75 Resources/public/samples/tabindex.html
  33. +0 69 Resources/public/samples/uicolor.html
  34. +0 119 Resources/public/samples/uilanguages.html
  35. +0 231 Resources/public/samples/xhtmlstyle.html
82 Resources/public/samples/ajax.html
... ... @@ -1,82 +0,0 @@
1   -<!DOCTYPE html>
2   -<!--
3   -Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4   -For licensing, see LICENSE.html or http://ckeditor.com/license
5   --->
6   -<html>
7   -<head>
8   - <title>Ajax &mdash; CKEditor Sample</title>
9   - <meta charset="utf-8">
10   - <script src="../ckeditor.js"></script>
11   - <link rel="stylesheet" href="sample.css">
12   - <script>
13   -
14   - var editor, html = '';
15   -
16   - function createEditor() {
17   - if ( editor )
18   - return;
19   -
20   - // Create a new editor inside the <div id="editor">, setting its value to html
21   - var config = {};
22   - editor = CKEDITOR.appendTo( 'editor', config, html );
23   - }
24   -
25   - function removeEditor() {
26   - if ( !editor )
27   - return;
28   -
29   - // Retrieve the editor contents. In an Ajax application, this data would be
30   - // sent to the server or used in any other way.
31   - document.getElementById( 'editorcontents' ).innerHTML = html = editor.getData();
32   - document.getElementById( 'contents' ).style.display = '';
33   -
34   - // Destroy the editor.
35   - editor.destroy();
36   - editor = null;
37   - }
38   -
39   - </script>
40   -</head>
41   -<body>
42   - <h1 class="samples">
43   - <a href="index.html">CKEditor Samples</a> &raquo; Create and Destroy Editor Instances for Ajax Applications
44   - </h1>
45   - <div class="description">
46   - <p>
47   - This sample shows how to create and destroy CKEditor instances on the fly. After the removal of CKEditor the content created inside the editing
48   - area will be displayed in a <code>&lt;div&gt;</code> element.
49   - </p>
50   - <p>
51   - For details of how to create this setup check the source code of this sample page
52   - for JavaScript code responsible for the creation and destruction of a CKEditor instance.
53   - </p>
54   - </div>
55   - <p>Click the buttons to create and remove a CKEditor instance.</p>
56   - <p>
57   - <input onclick="createEditor();" type="button" value="Create Editor">
58   - <input onclick="removeEditor();" type="button" value="Remove Editor">
59   - </p>
60   - <!-- This div will hold the editor. -->
61   - <div id="editor">
62   - </div>
63   - <div id="contents" style="display: none">
64   - <p>
65   - Edited Contents:
66   - </p>
67   - <!-- This div will be used to display the editor contents. -->
68   - <div id="editorcontents">
69   - </div>
70   - </div>
71   - <div id="footer">
72   - <hr>
73   - <p>
74   - CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
75   - </p>
76   - <p id="copy">
77   - Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
78   - Knabben. All rights reserved.
79   - </p>
80   - </div>
81   -</body>
82   -</html>
207 Resources/public/samples/api.html
... ... @@ -1,207 +0,0 @@
1   -<!DOCTYPE html>
2   -<!--
3   -Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4   -For licensing, see LICENSE.html or http://ckeditor.com/license
5   --->
6   -<html>
7   -<head>
8   - <meta charset="utf-8">
9   - <title>API Usage &mdash; CKEditor Sample</title>
10   - <script src="../ckeditor.js"></script>
11   - <link href="sample.css" rel="stylesheet">
12   - <script>
13   -
14   -// The instanceReady event is fired, when an instance of CKEditor has finished
15   -// its initialization.
16   -CKEDITOR.on( 'instanceReady', function( ev ) {
17   - // Show the editor name and description in the browser status bar.
18   - document.getElementById( 'eMessage' ).innerHTML = 'Instance <code>' + ev.editor.name + '<\/code> loaded.';
19   -
20   - // Show this sample buttons.
21   - document.getElementById( 'eButtons' ).style.display = 'block';
22   -});
23   -
24   -function InsertHTML() {
25   - // Get the editor instance that we want to interact with.
26   - var editor = CKEDITOR.instances.editor1;
27   - var value = document.getElementById( 'htmlArea' ).value;
28   -
29   - // Check the active editing mode.
30   - if ( editor.mode == 'wysiwyg' )
31   - {
32   - // Insert HTML code.
33   - // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertHtml
34   - editor.insertHtml( value );
35   - }
36   - else
37   - alert( 'You must be in WYSIWYG mode!' );
38   -}
39   -
40   -function InsertText() {
41   - // Get the editor instance that we want to interact with.
42   - var editor = CKEDITOR.instances.editor1;
43   - var value = document.getElementById( 'txtArea' ).value;
44   -
45   - // Check the active editing mode.
46   - if ( editor.mode == 'wysiwyg' )
47   - {
48   - // Insert as plain text.
49   - // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertText
50   - editor.insertText( value );
51   - }
52   - else
53   - alert( 'You must be in WYSIWYG mode!' );
54   -}
55   -
56   -function SetContents() {
57   - // Get the editor instance that we want to interact with.
58   - var editor = CKEDITOR.instances.editor1;
59   - var value = document.getElementById( 'htmlArea' ).value;
60   -
61   - // Set editor contents (replace current contents).
62   - // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setData
63   - editor.setData( value );
64   -}
65   -
66   -function GetContents() {
67   - // Get the editor instance that you want to interact with.
68   - var editor = CKEDITOR.instances.editor1;
69   -
70   - // Get editor contents
71   - // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-getData
72   - alert( editor.getData() );
73   -}
74   -
75   -function ExecuteCommand( commandName ) {
76   - // Get the editor instance that we want to interact with.
77   - var editor = CKEDITOR.instances.editor1;
78   -
79   - // Check the active editing mode.
80   - if ( editor.mode == 'wysiwyg' )
81   - {
82   - // Execute the command.
83   - // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-execCommand
84   - editor.execCommand( commandName );
85   - }
86   - else
87   - alert( 'You must be in WYSIWYG mode!' );
88   -}
89   -
90   -function CheckDirty() {
91   - // Get the editor instance that we want to interact with.
92   - var editor = CKEDITOR.instances.editor1;
93   - // Checks whether the current editor contents present changes when compared
94   - // to the contents loaded into the editor at startup
95   - // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-checkDirty
96   - alert( editor.checkDirty() );
97   -}
98   -
99   -function ResetDirty() {
100   - // Get the editor instance that we want to interact with.
101   - var editor = CKEDITOR.instances.editor1;
102   - // Resets the "dirty state" of the editor (see CheckDirty())
103   - // http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-resetDirty
104   - editor.resetDirty();
105   - alert( 'The "IsDirty" status has been reset' );
106   -}
107   -
108   -function Focus() {
109   - CKEDITOR.instances.editor1.focus();
110   -}
111   -
112   -function onFocus() {
113   - document.getElementById( 'eMessage' ).innerHTML = '<b>' + this.name + ' is focused </b>';
114   -}
115   -
116   -function onBlur() {
117   - document.getElementById( 'eMessage' ).innerHTML = this.name + ' lost focus';
118   -}
119   -
120   - </script>
121   -
122   -</head>
123   -<body>
124   - <h1 class="samples">
125   - <a href="index.html">CKEditor Samples</a> &raquo; Using CKEditor JavaScript API
126   - </h1>
127   - <div class="description">
128   - <p>
129   - This sample shows how to use the
130   - <a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.editor">CKEditor JavaScript API</a>
131   - to interact with the editor at runtime.
132   - </p>
133   - <p>
134   - For details on how to create this setup check the source code of this sample page.
135   - </p>
136   - </div>
137   -
138   - <!-- This <div> holds alert messages to be display in the sample page. -->
139   - <div id="alerts">
140   - <noscript>
141   - <p>
142   - <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
143   - support, like yours, you should still see the contents (HTML data) and you should
144   - be able to edit it normally, without a rich editor interface.
145   - </p>
146   - </noscript>
147   - </div>
148   - <form action="../../../samples/sample_posteddata.php" method="post">
149   - <textarea cols="100" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
150   -
151   - <script>
152   - // Replace the <textarea id="editor1"> with an CKEditor instance.
153   - CKEDITOR.replace( 'editor1', {
154   - on: {
155   - focus: onFocus,
156   - blur: onBlur,
157   -
158   - // Check for availability of corresponding plugins.
159   - pluginsLoaded: function( evt ) {
160   - var doc = CKEDITOR.document, ed = evt.editor;
161   - if ( !ed.getCommand( 'bold' ) )
162   - doc.getById( 'exec-bold' ).hide();
163   - if ( !ed.getCommand( 'link' ) )
164   - doc.getById( 'exec-link' ).hide();
165   - }
166   - }
167   - });
168   - </script>
169   -
170   - <p id="eMessage">
171   - </p>
172   -
173   - <div id="eButtons" style="display: none">
174   - <input id="exec-bold" onclick="ExecuteCommand('bold');" type="button" value="Execute &quot;bold&quot; Command">
175   - <input id="exec-link" onclick="ExecuteCommand('link');" type="button" value="Execute &quot;link&quot; Command">
176   - <input onclick="Focus();" type="button" value="Focus">
177   - <br><br>
178   - <input onclick="InsertHTML();" type="button" value="Insert HTML">
179   - <input onclick="SetContents();" type="button" value="Set Editor Contents">
180   - <input onclick="GetContents();" type="button" value="Get Editor Contents (XHTML)">
181   - <br>
182   - <textarea cols="100" id="htmlArea" rows="3">&lt;h2&gt;Test&lt;/h2&gt;&lt;p&gt;This is some &lt;a href="/Test1.html"&gt;sample&lt;/a&gt; HTML code.&lt;/p&gt;</textarea>
183   - <br>
184   - <br>
185   - <input onclick="InsertText();" type="button" value="Insert Text">
186   - <br>
187   - <textarea cols="100" id="txtArea" rows="3"> First line with some leading whitespaces.
188   -
189   -Second line of text preceded by two line breaks.</textarea>
190   - <br>
191   - <br>
192   - <input onclick="CheckDirty();" type="button" value="checkDirty()">
193   - <input onclick="ResetDirty();" type="button" value="resetDirty()">
194   - </div>
195   - </form>
196   - <div id="footer">
197   - <hr>
198   - <p>
199   - CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
200   - </p>
201   - <p id="copy">
202   - Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
203   - Knabben. All rights reserved.
204   - </p>
205   - </div>
206   -</body>
207   -</html>
57 Resources/public/samples/appendto.html
... ... @@ -1,57 +0,0 @@
1   -<!DOCTYPE html>
2   -<!--
3   -Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4   -For licensing, see LICENSE.html or http://ckeditor.com/license
5   --->
6   -<html>
7   -<head>
8   - <title>CKEDITOR.appendTo &mdash; CKEditor Sample</title>
9   - <meta charset="utf-8">
10   - <script src="../ckeditor.js"></script>
11   - <link rel="stylesheet" href="sample.css">
12   -</head>
13   -<body>
14   - <h1 class="samples">
15   - <a href="index.html">CKEditor Samples</a> &raquo; Append To Page Element Using JavaScript Code
16   - </h1>
17   - <div id="section1">
18   - <div class="description">
19   - <p>
20   - <code>CKEDITOR.appendTo</code> is basically to place editors
21   - inside existing DOM elements. Unlike <code>CKEDITOR.replace</code>,
22   - a target container to be replaced is no longer necessary. A new editor
23   - instance is inserted directly wherever it is desired.
24   - </p>
25   -<pre class="samples">CKEDITOR.appendTo( '<em>container_id</em>',
26   - { /* Configuration options to be used. */ }
27   - 'Editor content to be used.'
28   -);</pre>
29   - </div>
30   - <script>
31   -
32   - // This call can be placed at any point after the
33   - // <textarea>, or inside a <head><script> in a
34   - // window.onload event handler.
35   -
36   - // Replace the <textarea id="editor"> with an CKEditor
37   - // instance, using default configurations.
38   - CKEDITOR.appendTo( 'section1',
39   - null,
40   - '<p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>'
41   - );
42   -
43   - </script>
44   - </div>
45   - <br>
46   - <div id="footer">
47   - <hr>
48   - <p>
49   - CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
50   - </p>
51   - <p id="copy">
52   - Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
53   - Knabben. All rights reserved.
54   - </p>
55   - </div>
56   -</body>
57   -</html>
BIN  Resources/public/samples/assets/inlineall/logo.png
204 Resources/public/samples/assets/outputxhtml/outputxhtml.css
... ... @@ -1,204 +0,0 @@
1   -/*
2   - * Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
3   - * For licensing, see LICENSE.html or http://ckeditor.com/license
4   - *
5   - * Styles used by the XHTML 1.1 sample page (xhtml.html).
6   - */
7   -
8   -/**
9   - * Basic definitions for the editing area.
10   - */
11   -body
12   -{
13   - font-family: Arial, Verdana, sans-serif;
14   - font-size: 80%;
15   - color: #000000;
16   - background-color: #ffffff;
17   - padding: 5px;
18   - margin: 0px;
19   -}
20   -
21   -/**
22   - * Core styles.
23   - */
24   -
25   -.Bold
26   -{
27   - font-weight: bold;
28   -}
29   -
30   -.Italic
31   -{
32   - font-style: italic;
33   -}
34   -
35   -.Underline
36   -{
37   - text-decoration: underline;
38   -}
39   -
40   -.StrikeThrough
41   -{
42   - text-decoration: line-through;
43   -}
44   -
45   -.Subscript
46   -{
47   - vertical-align: sub;
48   - font-size: smaller;
49   -}
50   -
51   -.Superscript
52   -{
53   - vertical-align: super;
54   - font-size: smaller;
55   -}
56   -
57   -/**
58   - * Font faces.
59   - */
60   -
61   -.FontComic
62   -{
63   - font-family: 'Comic Sans MS';
64   -}
65   -
66   -.FontCourier
67   -{
68   - font-family: 'Courier New';
69   -}
70   -
71   -.FontTimes
72   -{
73   - font-family: 'Times New Roman';
74   -}
75   -
76   -/**
77   - * Font sizes.
78   - */
79   -
80   -.FontSmaller
81   -{
82   - font-size: smaller;
83   -}
84   -
85   -.FontLarger
86   -{
87   - font-size: larger;
88   -}
89   -
90   -.FontSmall
91   -{
92   - font-size: 8pt;
93   -}
94   -
95   -.FontBig
96   -{
97   - font-size: 14pt;
98   -}
99   -
100   -.FontDouble
101   -{
102   - font-size: 200%;
103   -}
104   -
105   -/**
106   - * Font colors.
107   - */
108   -.FontColor1
109   -{
110   - color: #ff9900;
111   -}
112   -
113   -.FontColor2
114   -{
115   - color: #0066cc;
116   -}
117   -
118   -.FontColor3
119   -{
120   - color: #ff0000;
121   -}
122   -
123   -.FontColor1BG
124   -{
125   - background-color: #ff9900;
126   -}
127   -
128   -.FontColor2BG
129   -{
130   - background-color: #0066cc;
131   -}
132   -
133   -.FontColor3BG
134   -{
135   - background-color: #ff0000;
136   -}
137   -
138   -/**
139   - * Indentation.
140   - */
141   -
142   -.Indent1
143   -{
144   - margin-left: 40px;
145   -}
146   -
147   -.Indent2
148   -{
149   - margin-left: 80px;
150   -}
151   -
152   -.Indent3
153   -{
154   - margin-left: 120px;
155   -}
156   -
157   -/**
158   - * Alignment.
159   - */
160   -
161   -.JustifyLeft
162   -{
163   - text-align: left;
164   -}
165   -
166   -.JustifyRight
167   -{
168   - text-align: right;
169   -}
170   -
171   -.JustifyCenter
172   -{
173   - text-align: center;
174   -}
175   -
176   -.JustifyFull
177   -{
178   - text-align: justify;
179   -}
180   -
181   -/**
182   - * Other.
183   - */
184   -
185   -code
186   -{
187   - font-family: courier, monospace;
188   - background-color: #eeeeee;
189   - padding-left: 1px;
190   - padding-right: 1px;
191   - border: #c0c0c0 1px solid;
192   -}
193   -
194   -kbd
195   -{
196   - padding: 0px 1px 0px 1px;
197   - border-width: 1px 2px 2px 1px;
198   - border-style: solid;
199   -}
200   -
201   -blockquote
202   -{
203   - color: #808080;
204   -}
59 Resources/public/samples/assets/posteddata.php
... ... @@ -1,59 +0,0 @@
1   -<!DOCTYPE html>
2   -<?php
3   -/*
4   -Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
5   -For licensing, see LICENSE.html or http://ckeditor.com/license
6   -*/
7   -?>
8   -<html>
9   -<head>
10   - <meta charset="utf-8">
11   - <title>Sample &mdash; CKEditor</title>
12   - <link rel="stylesheet" href="sample.css">
13   -</head>
14   -<body>
15   - <h1 class="samples">
16   - CKEditor &mdash; Posted Data
17   - </h1>
18   - <table border="1" cellspacing="0" id="outputSample">
19   - <colgroup><col width="120"></colgroup>
20   - <thead>
21   - <tr>
22   - <th>Field&nbsp;Name</th>
23   - <th>Value</th>
24   - </tr>
25   - </thead>
26   -<?php
27   -
28   -if (!empty($_POST))
29   -{
30   - foreach ( $_POST as $key => $value )
31   - {
32   - if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) )
33   - continue;
34   -
35   - if ( get_magic_quotes_gpc() )
36   - $value = htmlspecialchars( stripslashes((string)$value) );
37   - else
38   - $value = htmlspecialchars( (string)$value );
39   -?>
40   - <tr>
41   - <th style="vertical-align: top"><?php echo htmlspecialchars( (string)$key ); ?></th>
42   - <td><pre class="samples"><?php echo $value; ?></pre></td>
43   - </tr>
44   - <?php
45   - }
46   -}
47   -?>
48   - </table>
49   - <div id="footer">
50   - <hr>
51   - <p>
52   - CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
53   - </p>
54   - <p id="copy">
55   - Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
56   - </p>
57   - </div>
58   -</body>
59   -</html>
3  Resources/public/samples/assets/sample.css
... ... @@ -1,3 +0,0 @@
1   -/**
2   - * Required by tests (dom/document.html).
3   - */
BIN  Resources/public/samples/assets/sample.jpg
7 Resources/public/samples/assets/uilanguages/languages.js
... ... @@ -1,7 +0,0 @@
1   -/*
2   - Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
3   - For licensing, see LICENSE.html or http://ckeditor.com/license
4   -*/
5   -var CKEDITOR_LANGS=function(){var c={af:"Afrikaans",ar:"Arabic",bg:"Bulgarian",bn:"Bengali/Bangla",bs:"Bosnian",ca:"Catalan",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English","en-au":"English (Australia)","en-ca":"English (Canadian)","en-gb":"English (United Kingdom)",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",fa:"Persian",fi:"Finnish",fo:"Faroese",fr:"French","fr-ca":"French (Canada)",gl:"Galician",gu:"Gujarati",he:"Hebrew",hi:"Hindi",hr:"Croatian",hu:"Hungarian",is:"Icelandic",
6   -it:"Italian",ja:"Japanese",ka:"Georgian",km:"Khmer",ko:"Korean",ku:"Kurdish",lt:"Lithuanian",lv:"Latvian",mn:"Mongolian",ms:"Malay",nb:"Norwegian Bokmal",nl:"Dutch",no:"Norwegian",pl:"Polish",pt:"Portuguese (Portugal)","pt-br":"Portuguese (Brazil)",ro:"Romanian",ru:"Russian",sk:"Slovak",sl:"Slovenian",sr:"Serbian (Cyrillic)","sr-latn":"Serbian (Latin)",sv:"Swedish",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",zh:"Chinese Traditional","zh-cn":"Chinese Simplified"},b=[],a;for(a in CKEDITOR.lang.languages)b.push({code:a,
7   -name:c[a]||a});b.sort(function(a,b){return a.name<b.name?-1:1});return b}();
401 Resources/public/samples/datafiltering.html
... ... @@ -1,401 +0,0 @@
1   -<!DOCTYPE html>
2   -<!--
3   -Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4   -For licensing, see LICENSE.html or http://ckeditor.com/license
5   --->
6   -<html>
7   -<head>
8   - <title>Data Filtering &mdash; CKEditor Sample</title>
9   - <meta charset="utf-8">
10   - <script src="../ckeditor.js"></script>
11   - <link rel="stylesheet" href="sample.css">
12   - <script>
13   - // Remove advanced tabs for all editors.
14   - CKEDITOR.config.removeDialogTabs = 'image:advanced;link:advanced;flash:advanced;creatediv:advanced;editdiv:advanced';
15   - </script>
16   -</head>
17   -<body>
18   - <h1 class="samples">
19   - <a href="index.html">CKEditor Samples</a> &raquo; Data Filtering and Features Activation
20   - </h1>
21   - <div class="description">
22   - <p>
23   - This sample page demonstrates the idea of Advanced Content Filter
24   - (<abbr title="Advanced Content Filter">ACF</abbr>), a sophisticated
25   - tool that takes control over what kind of data is accepted by the editor and what
26   - kind of output is produced.
27   - </p>
28   - <h2>When and what is being filtered?</h2>
29   - <p>
30   - <abbr title="Advanced Content Filter">ACF</abbr> controls
31   - <strong>every single source of data</strong> that comes to the editor.
32   - It process both HTML that is inserted manually (i.e. pasted by the user)
33   - and programmatically like:
34   - </p>
35   -<pre class="samples">
36   -editor.setData( '&lt;p&gt;Hello world!&lt;/p&gt;' );
37   -</pre>
38   - <p>
39   - <abbr title="Advanced Content Filter">ACF</abbr> discards invalid,
40   - useless HTML tags and attributes so the editor remains "clean" during
41   - runtime. <abbr title="Advanced Content Filter">ACF</abbr> behaviour
42   - can be configured and adjusted for a particular case to prevent the
43   - output HTML (i.e. in CMS systems) from being polluted.
44   -
45   - This kind of filtering is a first, client-side line of defense
46   - against "<a href="http://en.wikipedia.org/wiki/Tag_soup">tag soups</a>",
47   - the tool that precisely restricts which tags, attributes and styles
48   - are allowed (desired). When properly configured, <abbr title="Advanced Content Filter">ACF</abbr>
49   - is an easy and fast way to produce a high-quality, intentionally filtered HTML.
50   - </p>
51   -
52   - <h3>How to configure or disable ACF?</h3>
53   - <p>
54   - Advanced Content Filter is enabled by default, working in "automatic mode", yet
55   - it provides a set of easy rules that allow adjusting filtering rules
56   - and disabling the entire feature when necessary. The config property
57   - responsible for this feature is <code><a class="samples"
58   - href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent">config.allowedContent</a></code>.
59   - </p>
60   - <p>
61   - By "automatic mode" is meant that loaded plugins decide which kind
62   - of content is enabled and which is not. For example, if the link
63   - plugin is loaded it implies that <code>&lt;a&gt;</code> tag is
64   - automatically allowed. Each plugin is given a set
65   - of predefined <abbr title="Advanced Content Filter">ACF</abbr> rules
66   - that control the editor until <code><a class="samples"
67   - href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent">
68   - config.allowedContent</a></code>
69   - is defined manually.
70   - </p>
71   - <p>
72   - Let's assume our intention is to restrict the editor to accept (produce) <strong>paragraphs
73   - only: no attributes, no styles, no other tags</strong>.
74   - With <abbr title="Advanced Content Filter">ACF</abbr>
75   - this is very simple. Basically set <code><a class="samples"
76   - href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent">
77   - config.allowedContent</a></code> to <code>'p'</code>:
78   - </p>
79   -<pre class="samples">
80   -var editor = CKEDITOR.replace( <em>textarea_id</em>, {
81   - <strong>allowedContent: 'p'</strong>
82   -} );
83   -</pre>
84   - <p>
85   - Now try to play with allowed content:
86   - </p>
87   -<pre class="samples">
88   -// Trying to insert disallowed tag and attribute.
89   -editor.setData( '&lt;p <strong>style="color: red"</strong>&gt;Hello <strong>&lt;em&gt;world&lt;/em&gt;</strong>!&lt;/p&gt;' );
90   -alert( editor.getData() );
91   -
92   -// Filtered data is returned.
93   -"&lt;p&gt;Hello world!&lt;/p&gt;"
94   -</pre>
95   - <p>
96   - What happened? Since <code>config.allowedContent: 'p'</code> is set the editor assumes
97   - that only plain <code>&lt;p&gt;</code> are accepted. Nothing more. This is why
98   - <code>style</code> attribute and <code>&lt;em&gt;</code> tag are gone. The same
99   - filtering would happen if we pasted disallowed HTML into this editor.
100   - </p>
101   - <p>
102   - This is just a small sample of what <abbr title="Advanced Content Filter">ACF</abbr>
103   - can do. To know more, please refer to the sample section below and
104   - <a href="http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter">the official Advanced Content Filter guide</a>.
105   - </p>
106   - <p>
107   - You may, of course, want CKEditor to avoid filtering of any kind.
108   - To get rid of <abbr title="Advanced Content Filter">ACF</abbr>,
109   - basically set <code><a class="samples"
110   - href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent">
111   - config.allowedContent</a></code> to <code>true</code> like this:
112   - </p>
113   -<pre class="samples">
114   -CKEDITOR.replace( <em>textarea_id</em>, {
115   - <strong>allowedContent: true</strong>
116   -} );
117   -</pre>
118   -
119   - <h2>Beyond data flow: Features activation</h2>
120   - <p>
121   - <abbr title="Advanced Content Filter">ACF</abbr> is far more than
122   - <abbr title="Input/Output">I/O</abbr> control: the entire
123   - <abbr title="User Interface">UI</abbr> of the editor is adjusted to what
124   - filters restrict. For example: if <code>&lt;a&gt;</code> tag is
125   - <strong>disallowed</strong>
126   - by <abbr title="Advanced Content Filter">ACF</abbr>,
127   - then accordingly <code>link</code> command, toolbar button and link dialog
128   - are also disabled. Editor is smart: it knows which features must be
129   - removed from the interface to match filtering rules.
130   - </p>
131   - <p>
132   - CKEditor can be far more specific. If <code>&lt;a&gt;</code> tag is
133   - <strong>allowed</strong> by filtering rules to be used but it is restricted
134   - to have only one attribute (<code>href</code>)
135   - <code>config.allowedContent = 'a[!href]'</code>, then
136   - "Target" tab of the link dialog is automatically disabled as <code>target</code>
137   - attribute isn't included in <abbr title="Advanced Content Filter">ACF</abbr> rules
138   - for <code>&lt;a&gt;</code>. This behaviour applies to dialog fields, context
139   - menus and toolbar buttons.
140   - </p>
141   -
142   - <h2>Sample configurations</h2>
143   - <p>
144   - There are several editor instances below that present different
145   - <abbr title="Advanced Content Filter">ACF</abbr> setups. <strong>All of them,
146   - except the last inline instance, share the same HTML content</strong> to visualize
147   - how different filtering rules affect the same input data.
148   - </p>
149   - </div>
150   -
151   - <div>
152   - <label for="editor1">
153   - Editor 1:
154   - </label>
155   - <div class="description">
156   - <p>
157   - This editor is using default configuration ("automatic mode"). It means that
158   - <code><a class="samples"
159   - href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent">
160   - config.allowedContent</a></code> is defined by loaded plugins.
161   - Each plugin extends filtering rules to make it's own associated content
162   - available for the user.
163   - </p>
164   - </div>
165   - <textarea cols="80" id="editor1" name="editor1" rows="10">
166   - &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;
167   - </textarea>
168   -
169   - <script>
170   -
171   - CKEDITOR.replace( 'editor1' );
172   -
173   - </script>
174   - </div>
175   -
176   - <br>
177   -
178   - <div>
179   - <label for="editor2">
180   - Editor 2:
181   - </label>
182   - <div class="description">
183   - <p>
184   - This editor is using a custom configuration for
185   - <abbr title="Advanced Content Filter">ACF</abbr>:
186   - </p>
187   -<pre class="samples">
188   -CKEDITOR.replace( 'editor2', {
189   - allowedContent:
190   - 'h1 h2 h3 p blockquote strong em;' +
191   - 'a[!href];' +
192   - 'img(left,right)[!src,alt,width,height];' +
193   - 'table tr th td caption;' +
194   - 'span{!font-family};' +'
195   - 'span{!color};' +
196   - 'span(!marker);' +
197   - 'del ins'
198   -} );
199   -</pre>
200   - <p>
201   - The following rules may require additional explanation:
202   - </p>
203   - <ul>
204   - <li>
205   - <code>h1 h2 h3 p blockquote strong em</code> - These tags
206   - are accepted by the editor. Any tag attributes will be discarded.
207   - </li>
208   - <li>
209   - <code>a[!href]</code> - <code>href</code> attribute is obligatory
210   - for <code>&lt;a&gt;</code> tag. Tags without this attribute
211   - are disarded. No other attribute will be accepted.
212   - </li>
213   - <li>
214   - <code>img(left,right)[!src,alt,width,height]</code> - <code>src</code>
215   - attribute is obligatory for <code>&lt;img&gt;</code> tag.
216   - <code>alt</code>, <code>width</code>, <code>height</code>
217   - and <code>class</code> attributes are accepted but
218   - <code>class</code> must be either <code>class="left"</code>
219   - or <code>class="right"</code>
220   - </li>
221   - <li>
222   - <code>table tr th td caption</code> - These tags
223   - are accepted by the editor. Any tag attributes will be discarded.
224   - </li>
225   - <li>
226   - <code>span{!font-family}</code>, <code>span{!color}</code>,
227   - <code>span(!marker)</code> - <code>&lt;span&gt;</code> tags
228   - will be accepted if either <code>font-family</code> or
229   - <code>color</code> style is set or <code>class="marker"</code>
230   - is present.
231   - </li>
232   - <li>
233   - <code>del ins</code> - These tags
234   - are accepted by the editor. Any tag attributes will be discarded.
235   - </li>
236   - </ul>
237   - <p>
238   - Please note that <strong><abbr title="User Interface">UI</abbr> of the
239   - editor is different</strong>. It's a response to what happened to the filters.
240   - Since <code>text-align</code> isn't allowed, the align toolbar is gone.
241   - The same thing happened to subscript/superscript, strike, underline
242   - (<code>&lt;u&gt;</code>, <code>&lt;sub&gt;</code>, <code>&lt;sup&gt;</code>
243   - are disallowed by <code><a class="samples"
244   - href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent">
245   - config.allowedContent</a></code>) and many other buttons.
246   - </p>
247   - </div>
248   - <textarea cols="80" id="editor2" name="editor2" rows="10">
249   - &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;
250   - </textarea>
251   - <script>
252   -
253   - CKEDITOR.replace( 'editor2', {
254   - allowedContent:
255   - 'h1 h2 h3 p blockquote strong em;' +
256   - 'a[!href];' +
257   - 'img(left,right)[!src,alt,width,height];' +
258   - 'table tr th td caption;' +
259   - 'span{!font-family};' +
260   - 'span{!color};' +
261   - 'span(!marker);' +
262   - 'del ins'
263   - } );
264   -
265   - </script>
266   - </div>
267   -
268   - <br>
269   -
270   - <div>
271   - <label for="editor3">
272   - Editor 3:
273   - </label>
274   - <div class="description">
275   - <p>
276   - This editor is using a custom configuration for
277   - <abbr title="Advanced Content Filter">ACF</abbr>.
278   - Note that filters can be configured as an object literal
279   - as an alternative to a string-based definition.
280   - </p>
281   -<pre class="samples">
282   -CKEDITOR.replace( 'editor3', {
283   - allowedContent: {
284   - 'b i ul ol big small': true,
285   - 'h1 h2 h3 p blockquote li': {
286   - styles: 'text-align'
287   - },
288   - a: { attributes: '!href,target' },
289   - img: {
290   - attributes: '!src,alt',
291   - styles: 'width,height',
292   - classes: 'left,right'
293   - }
294   - }
295   -} );
296   -</pre>
297   - </div>
298   - <textarea cols="80" id="editor3" name="editor3" rows="10">
299   - &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;
300   - </textarea>
301   - <script>
302   -
303   - CKEDITOR.replace( 'editor3', {
304   - allowedContent: {
305   - 'b i ul ol big small': true,
306   - 'h1 h2 h3 p blockquote li': {
307   - styles: 'text-align'
308   - },
309   - a: { attributes: '!href,target' },
310   - img: {
311   - attributes: '!src,alt',
312   - styles: 'width,height',
313   - classes: 'left,right'
314   - }
315   - }
316   - } );
317   -
318   - </script>
319   - </div>
320   -
321   - <br>
322   -
323   - <div>
324   - <label for="editor4">
325   - Editor 4:
326   - </label>
327   - <div class="description">
328   - <p>
329   - This editor is using a custom set of plugins and buttons.
330   - </p>
331   -<pre class="samples">
332   -CKEDITOR.replace( 'editor4', {
333   - removePlugins: 'bidi,font,forms,flash,horizontalrule,iframe,justify,table,tabletools,smiley',
334   - removeButtons: 'Anchor,Underline,Strike,Subscript,Superscript,Image',
335   - format_tags: 'p;h1;h2;h3;pre;address'
336   -} );
337   -</pre>
338   - <p>
339   - As you can see, removing plugins and buttons implies filtering.
340   - Several tags are not allowed in the editor because there's no
341   - plugin/button that is responsible for creating and editing this
342   - kind of content (for example: the image is missing because
343   - of <code>removeButtons: 'Image'</code>). The conclusion is that
344   - <abbr title="Advanced Content Filter">ACF</abbr> works "backwards"
345   - as well: <strong>modifying <abbr title="User Interface">UI</abbr>
346   - elements is changing allowed content rules</strong>.
347   - </p>
348   - </div>
349   - <textarea cols="80" id="editor4" name="editor4" rows="10">
350   - &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;
351   - </textarea>
352   - <script>
353   -
354   - CKEDITOR.replace( 'editor4', {
355   - removePlugins: 'bidi,div,font,forms,flash,horizontalrule,iframe,justify,table,tabletools,smiley',
356   - removeButtons: 'Anchor,Underline,Strike,Subscript,Superscript,Image',
357   - format_tags: 'p;h1;h2;h3;pre;address'
358   - } );
359   -
360   - </script>
361   - </div>
362   -
363   - <br>
364   -
365   - <div>
366   - <label for="editor5">
367   - Editor 5:
368   - </label>
369   - <div class="description">
370   - <p>
371   - This editor is built on editable <code>&lt;h1&gt;</code> element.
372   - <abbr title="Advanced Content Filter">ACF</abbr> takes care of
373   - what can be included in <code>&lt;h1&gt;</code>. Note that there
374   - are no block styles in Styles combo. Also why lists, indentation,
375   - blockquote, div, form and other buttons are missing.
376   - </p>
377   - <p>
378   - <abbr title="Advanced Content Filter">ACF</abbr> makes sure that
379   - no disallowed tags will come to <code>&lt;h1&gt;</code> so the final
380   - markup is valid. If the user tried to paste some invalid HTML
381   - into this editor (let's say a list), it would be automatically
382   - converted into plain text.
383   - </p>
384   - </div>
385   - <h1 id="editor5" contenteditable="true">
386   - <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.
387   - </h1>
388   - </div>
389   -
390   - <div id="footer">
391   - <hr>
392   - <p>
393   - CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
394   - </p>
395   - <p id="copy">
396   - Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
397   - Knabben. All rights reserved.
398   - </p>
399   - </div>
400   -</body>
401   -</html>
141 Resources/public/samples/divreplace.html
... ... @@ -1,141 +0,0 @@
1   -<!DOCTYPE html>
2   -<!--
3   -Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4   -For licensing, see LICENSE.html or http://ckeditor.com/license
5   --->
6   -<html>
7   -<head>
8   - <title>Replace DIV &mdash; CKEditor Sample</title>
9   - <meta charset="utf-8">
10   - <script src="../ckeditor.js"></script>
11   - <link href="sample.css" rel="stylesheet">
12   - <style>
13   -
14   - div.editable
15   - {
16   - border: solid 2px Transparent;
17   - padding-left: 15px;
18   - padding-right: 15px;
19   - }