ckeditor 4.0.7 → 4.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. data/README.md +16 -2
  2. data/app/assets/javascripts/ckeditor/application.js +1 -0
  3. data/app/assets/javascripts/ckeditor/filebrowser/javascripts/application.js.erb +10 -0
  4. data/app/assets/javascripts/ckeditor/filebrowser/javascripts/jquery.endless-scroll.js +300 -0
  5. data/app/assets/javascripts/ckeditor/filebrowser/stylesheets/uploader.css.erb +4 -0
  6. data/app/controllers/ckeditor/attachment_files_controller.rb +3 -1
  7. data/app/controllers/ckeditor/pictures_controller.rb +3 -1
  8. data/app/views/ckeditor/attachment_files/index.html.erb +11 -5
  9. data/app/views/ckeditor/pictures/index.html.erb +12 -6
  10. data/app/views/ckeditor/shared/_asset.html.erb +1 -1
  11. data/app/views/ckeditor/shared/_asset_tmpl.html.erb +1 -1
  12. data/config/locales/cs.ckeditor.yml +1 -0
  13. data/config/locales/de.ckeditor.yml +1 -0
  14. data/config/locales/el-GR.cdkeditor.yml +2 -1
  15. data/config/locales/en.ckeditor.yml +1 -0
  16. data/config/locales/es.ckeditor.yml +1 -0
  17. data/config/locales/fr.ckeditor.yml +1 -0
  18. data/config/locales/hu.ckeditor.yml +1 -0
  19. data/config/locales/it.ckeditor.yml +1 -0
  20. data/config/locales/nl.ckeditor.yml +2 -1
  21. data/config/locales/pl.ckeditor.yml +1 -0
  22. data/config/locales/pt-BR.ckeditor.yml +2 -1
  23. data/config/locales/pt-PT.ckeditor.yml +1 -0
  24. data/config/locales/ru.ckeditor.yml +1 -0
  25. data/config/locales/sv-SE.ckeditor.yml +1 -0
  26. data/config/locales/uk.ckeditor.yml +1 -0
  27. data/config/locales/zh-CN.ckeditor.yml +1 -0
  28. data/lib/ckeditor.rb +11 -0
  29. data/lib/ckeditor/helpers/controllers.rb +1 -1
  30. data/lib/ckeditor/paginatable.rb +56 -0
  31. data/lib/ckeditor/utils.rb +41 -18
  32. data/lib/ckeditor/version.rb +2 -2
  33. data/lib/generators/ckeditor/templates/ckeditor.rb +3 -0
  34. data/test/dummy/public/uploads/tmp/20140108-1222-52217-3986/rails.tar.gz +0 -0
  35. data/test/dummy/public/uploads/tmp/20140108-1222-52217-6261/rails.tar.gz +0 -0
  36. data/test/dummy/public/uploads/tmp/20140108-1222-52217-6421/rails.tar.gz +0 -0
  37. data/test/dummy/public/uploads/tmp/20140108-1223-52217-3058/content_rails.png +0 -0
  38. data/test/dummy/public/uploads/tmp/20140108-1223-52217-3058/rails.png +0 -0
  39. data/test/dummy/public/uploads/tmp/20140108-1223-52217-3058/thumb_rails.png +0 -0
  40. data/test/dummy/public/uploads/tmp/20140108-1223-52217-3990/content_rails.png +0 -0
  41. data/test/dummy/public/uploads/tmp/20140108-1223-52217-3990/rails.png +0 -0
  42. data/test/dummy/public/uploads/tmp/20140108-1223-52217-3990/thumb_rails.png +0 -0
  43. data/test/dummy/public/uploads/tmp/20140108-1223-52217-8126/content_rails.png +0 -0
  44. data/test/dummy/public/uploads/tmp/20140108-1223-52217-8126/rails.png +0 -0
  45. data/test/dummy/public/uploads/tmp/20140108-1223-52217-8126/thumb_rails.png +0 -0
  46. data/test/dummy/public/uploads/tmp/20140108-1228-52513-0400/content_rails.png +0 -0
  47. data/test/dummy/public/uploads/tmp/20140108-1228-52513-0400/rails.png +0 -0
  48. data/test/dummy/public/uploads/tmp/20140108-1228-52513-0400/thumb_rails.png +0 -0
  49. data/test/dummy/public/uploads/tmp/20140108-1228-52513-1537/content_rails.png +0 -0
  50. data/test/dummy/public/uploads/tmp/20140108-1228-52513-1537/rails.png +0 -0
  51. data/test/dummy/public/uploads/tmp/20140108-1228-52513-1537/thumb_rails.png +0 -0
  52. data/test/dummy/public/uploads/tmp/20140108-1228-52513-4718/rails.tar.gz +0 -0
  53. data/test/dummy/public/uploads/tmp/20140108-1228-52513-4820/rails.tar.gz +0 -0
  54. data/test/dummy/public/uploads/tmp/20140108-1228-52513-8057/content_rails.png +0 -0
  55. data/test/dummy/public/uploads/tmp/20140108-1228-52513-8057/rails.png +0 -0
  56. data/test/dummy/public/uploads/tmp/20140108-1228-52513-8057/thumb_rails.png +0 -0
  57. data/test/dummy/public/uploads/tmp/20140108-1228-52513-9147/rails.tar.gz +0 -0
  58. data/test/dummy/public/uploads/tmp/20140108-1228-52590-3606/rails.tar.gz +0 -0
  59. data/test/dummy/public/uploads/tmp/20140108-1228-52590-4369/content_rails.png +0 -0
  60. data/test/dummy/public/uploads/tmp/20140108-1228-52590-4369/rails.png +0 -0
  61. data/test/dummy/public/uploads/tmp/20140108-1228-52590-4369/thumb_rails.png +0 -0
  62. data/test/dummy/public/uploads/tmp/20140108-1228-52590-4698/rails.tar.gz +0 -0
  63. data/test/dummy/public/uploads/tmp/20140108-1228-52590-7541/rails.tar.gz +0 -0
  64. data/test/dummy/public/uploads/tmp/20140108-1228-52590-9146/content_rails.png +0 -0
  65. data/test/dummy/public/uploads/tmp/20140108-1228-52590-9146/rails.png +0 -0
  66. data/test/dummy/public/uploads/tmp/20140108-1228-52590-9146/thumb_rails.png +0 -0
  67. data/test/dummy/public/uploads/tmp/20140108-1228-52590-9782/content_rails.png +0 -0
  68. data/test/dummy/public/uploads/tmp/20140108-1228-52590-9782/rails.png +0 -0
  69. data/test/dummy/public/uploads/tmp/20140108-1228-52590-9782/thumb_rails.png +0 -0
  70. data/test/dummy/public/uploads/tmp/20140108-1230-52768-3256/content_rails.png +0 -0
  71. data/test/dummy/public/uploads/tmp/20140108-1230-52768-3256/rails.png +0 -0
  72. data/test/dummy/public/uploads/tmp/20140108-1230-52768-3256/thumb_rails.png +0 -0
  73. data/test/dummy/public/uploads/tmp/20140108-1230-52768-3565/content_rails.png +0 -0
  74. data/test/dummy/public/uploads/tmp/20140108-1230-52768-3565/rails.png +0 -0
  75. data/test/dummy/public/uploads/tmp/20140108-1230-52768-3565/thumb_rails.png +0 -0
  76. data/test/dummy/public/uploads/tmp/20140108-1230-52768-4292/rails.tar.gz +0 -0
  77. data/test/dummy/public/uploads/tmp/20140108-1230-52768-4514/rails.tar.gz +0 -0
  78. data/test/dummy/public/uploads/tmp/20140108-1230-52768-7430/rails.tar.gz +0 -0
  79. data/test/dummy/public/uploads/tmp/20140108-1230-52768-9145/content_rails.png +0 -0
  80. data/test/dummy/public/uploads/tmp/20140108-1230-52768-9145/rails.png +0 -0
  81. data/test/dummy/public/uploads/tmp/20140108-1230-52768-9145/thumb_rails.png +0 -0
  82. data/vendor/assets/javascripts/ckeditor/CHANGES.md +36 -0
  83. data/vendor/assets/javascripts/ckeditor/ckeditor.js +465 -463
  84. data/vendor/assets/javascripts/ckeditor/config.js +1 -1
  85. data/vendor/assets/javascripts/ckeditor/contents.css +17 -0
  86. data/vendor/assets/javascripts/ckeditor/lang/ca.js +1 -1
  87. data/vendor/assets/javascripts/ckeditor/lang/cs.js +1 -1
  88. data/vendor/assets/javascripts/ckeditor/lang/cy.js +1 -1
  89. data/vendor/assets/javascripts/ckeditor/lang/de.js +1 -1
  90. data/vendor/assets/javascripts/ckeditor/lang/el.js +1 -1
  91. data/vendor/assets/javascripts/ckeditor/lang/en-au.js +1 -1
  92. data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +1 -1
  93. data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +1 -1
  94. data/vendor/assets/javascripts/ckeditor/lang/es.js +1 -1
  95. data/vendor/assets/javascripts/ckeditor/lang/fi.js +1 -1
  96. data/vendor/assets/javascripts/ckeditor/lang/it.js +1 -1
  97. data/vendor/assets/javascripts/ckeditor/lang/ja.js +1 -1
  98. data/vendor/assets/javascripts/ckeditor/lang/km.js +1 -1
  99. data/vendor/assets/javascripts/ckeditor/lang/nb.js +1 -1
  100. data/vendor/assets/javascripts/ckeditor/lang/nl.js +1 -1
  101. data/vendor/assets/javascripts/ckeditor/lang/no.js +1 -1
  102. data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +1 -1
  103. data/vendor/assets/javascripts/ckeditor/lang/ru.js +1 -1
  104. data/vendor/assets/javascripts/ckeditor/lang/sv.js +1 -1
  105. data/vendor/assets/javascripts/ckeditor/lang/tr.js +1 -1
  106. data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +1 -1
  107. data/vendor/assets/javascripts/ckeditor/lang/zh.js +1 -1
  108. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +3 -3
  109. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +2 -2
  110. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +1 -1
  111. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +7 -0
  112. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +16 -16
  113. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +12 -0
  114. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +1 -1
  115. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +31 -31
  116. data/vendor/assets/javascripts/ckeditor/samples/ajax.html +82 -0
  117. data/vendor/assets/javascripts/ckeditor/samples/api.html +207 -0
  118. data/vendor/assets/javascripts/ckeditor/samples/appendto.html +57 -0
  119. data/vendor/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
  120. data/vendor/assets/javascripts/ckeditor/samples/assets/outputxhtml/outputxhtml.css +204 -0
  121. data/vendor/assets/javascripts/ckeditor/samples/assets/posteddata.php +59 -0
  122. data/vendor/assets/javascripts/ckeditor/samples/assets/sample.css +3 -0
  123. data/vendor/assets/javascripts/ckeditor/samples/assets/sample.jpg +0 -0
  124. data/vendor/assets/javascripts/ckeditor/samples/assets/uilanguages/languages.js +7 -0
  125. data/vendor/assets/javascripts/ckeditor/samples/datafiltering.html +401 -0
  126. data/vendor/assets/javascripts/ckeditor/samples/divreplace.html +141 -0
  127. data/vendor/assets/javascripts/ckeditor/samples/index.html +128 -0
  128. data/vendor/assets/javascripts/ckeditor/samples/inlineall.html +311 -0
  129. data/vendor/assets/javascripts/ckeditor/samples/inlinebycode.html +121 -0
  130. data/vendor/assets/javascripts/ckeditor/samples/inlinetextarea.html +110 -0
  131. data/vendor/assets/javascripts/ckeditor/samples/jquery.html +97 -0
  132. data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/assets/my_dialog.js +48 -0
  133. data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/dialog.html +187 -0
  134. data/vendor/assets/javascripts/ckeditor/samples/plugins/enterkey/enterkey.html +103 -0
  135. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
  136. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
  137. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +18 -0
  138. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputforflash.html +280 -0
  139. data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputhtml.html +221 -0
  140. data/vendor/assets/javascripts/ckeditor/samples/plugins/magicline/magicline.html +206 -0
  141. data/vendor/assets/javascripts/ckeditor/samples/plugins/toolbar/toolbar.html +232 -0
  142. data/vendor/assets/javascripts/ckeditor/samples/plugins/wysiwygarea/fullpage.html +77 -0
  143. data/vendor/assets/javascripts/ckeditor/samples/readonly.html +73 -0
  144. data/vendor/assets/javascripts/ckeditor/samples/replacebyclass.html +57 -0
  145. data/vendor/assets/javascripts/ckeditor/samples/replacebycode.html +56 -0
  146. data/vendor/assets/javascripts/ckeditor/samples/sample.css +356 -0
  147. data/vendor/assets/javascripts/ckeditor/samples/sample.js +50 -0
  148. data/vendor/assets/javascripts/ckeditor/samples/sample_posteddata.php +16 -0
  149. data/vendor/assets/javascripts/ckeditor/samples/tabindex.html +75 -0
  150. data/vendor/assets/javascripts/ckeditor/samples/uicolor.html +69 -0
  151. data/vendor/assets/javascripts/ckeditor/samples/uilanguages.html +119 -0
  152. data/vendor/assets/javascripts/ckeditor/samples/xhtmlstyle.html +231 -0
  153. metadata +139 -16
  154. data/test/dummy/db/test.sqlite3 +0 -0
  155. data/test/dummy/log/test.log +0 -1425
  156. data/test/tmp/app/models/ckeditor/asset.rb +0 -5
  157. data/test/tmp/app/models/ckeditor/attachment_file.rb +0 -12
  158. data/test/tmp/app/models/ckeditor/picture.rb +0 -13
  159. data/test/tmp/config/initializers/ckeditor.rb +0 -19
  160. data/test/tmp/config/routes.rb +0 -6
@@ -0,0 +1,141 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4
+ For licensing, see LICENSE.md 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
+ }
20
+
21
+ div.editable:hover
22
+ {
23
+ border-color: black;
24
+ }
25
+
26
+ </style>
27
+ <script>
28
+
29
+ // Uncomment the following code to test the "Timeout Loading Method".
30
+ // CKEDITOR.loadFullCoreTimeout = 5;
31
+
32
+ window.onload = function() {
33
+ // Listen to the double click event.
34
+ if ( window.addEventListener )
35
+ document.body.addEventListener( 'dblclick', onDoubleClick, false );
36
+ else if ( window.attachEvent )
37
+ document.body.attachEvent( 'ondblclick', onDoubleClick );
38
+
39
+ };
40
+
41
+ function onDoubleClick( ev ) {
42
+ // Get the element which fired the event. This is not necessarily the
43
+ // element to which the event has been attached.
44
+ var element = ev.target || ev.srcElement;
45
+
46
+ // Find out the div that holds this element.
47
+ var name;
48
+
49
+ do {
50
+ element = element.parentNode;
51
+ }
52
+ while ( element && ( name = element.nodeName.toLowerCase() ) &&
53
+ ( name != 'div' || element.className.indexOf( 'editable' ) == -1 ) && name != 'body' );
54
+
55
+ if ( name == 'div' && element.className.indexOf( 'editable' ) != -1 )
56
+ replaceDiv( element );
57
+ }
58
+
59
+ var editor;
60
+
61
+ function replaceDiv( div ) {
62
+ if ( editor )
63
+ editor.destroy();
64
+
65
+ editor = CKEDITOR.replace( div );
66
+ }
67
+
68
+ </script>
69
+ </head>
70
+ <body>
71
+ <h1 class="samples">
72
+ <a href="index.html">CKEditor Samples</a> &raquo; Replace DIV with CKEditor on the Fly
73
+ </h1>
74
+ <div class="description">
75
+ <p>
76
+ This sample shows how to automatically replace <code>&lt;div&gt;</code> elements
77
+ with a CKEditor instance on the fly, following user's doubleclick. The content
78
+ that was previously placed inside the <code>&lt;div&gt;</code> element will now
79
+ be moved into CKEditor editing area.
80
+ </p>
81
+ <p>
82
+ For details on how to create this setup check the source code of this sample page.
83
+ </p>
84
+ </div>
85
+ <p>
86
+ Double-click any of the following <code>&lt;div&gt;</code> elements to transform them into
87
+ editor instances.
88
+ </p>
89
+ <div class="editable">
90
+ <h3>
91
+ Part 1
92
+ </h3>
93
+ <p>
94
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
95
+ semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
96
+ rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
97
+ nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
98
+ eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
99
+ </p>
100
+ </div>
101
+ <div class="editable">
102
+ <h3>
103
+ Part 2
104
+ </h3>
105
+ <p>
106
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
107
+ semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
108
+ rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
109
+ nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
110
+ eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
111
+ </p>
112
+ <p>
113
+ Donec velit. Mauris massa. Vestibulum non nulla. Nam suscipit arcu nec elit. Phasellus
114
+ sollicitudin iaculis ante. Ut non mauris et sapien tincidunt adipiscing. Vestibulum
115
+ vitae leo. Suspendisse nec mi tristique nulla laoreet vulputate.
116
+ </p>
117
+ </div>
118
+ <div class="editable">
119
+ <h3>
120
+ Part 3
121
+ </h3>
122
+ <p>
123
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
124
+ semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
125
+ rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
126
+ nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
127
+ eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
128
+ </p>
129
+ </div>
130
+ <div id="footer">
131
+ <hr>
132
+ <p>
133
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
134
+ </p>
135
+ <p id="copy">
136
+ Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
137
+ Knabben. All rights reserved.
138
+ </p>
139
+ </div>
140
+ </body>
141
+ </html>
@@ -0,0 +1,128 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4
+ For licensing, see LICENSE.md or http://ckeditor.com/license
5
+ -->
6
+ <html>
7
+ <head>
8
+ <title>CKEditor Samples</title>
9
+ <meta charset="utf-8">
10
+ <link rel="stylesheet" href="sample.css">
11
+ </head>
12
+ <body>
13
+ <h1 class="samples">
14
+ CKEditor Samples
15
+ </h1>
16
+ <div class="twoColumns">
17
+ <div class="twoColumnsLeft">
18
+ <h2 class="samples">
19
+ Basic Samples
20
+ </h2>
21
+ <dl class="samples">
22
+ <dt><a class="samples" href="replacebyclass.html">Replace textarea elements by class name</a></dt>
23
+ <dd>Automatic replacement of all textarea elements of a given class with a CKEditor instance.</dd>
24
+
25
+ <dt><a class="samples" href="replacebycode.html">Replace textarea elements by code</a></dt>
26
+ <dd>Replacement of textarea elements with CKEditor instances by using a JavaScript call.</dd>
27
+
28
+ <dt><a class="samples" href="jquery.html">Create editors with jQuery</a></dt>
29
+ <dd>Creating standard and inline CKEditor instances with jQuery adapter.</dd>
30
+ </dl>
31
+
32
+ <h2 class="samples">
33
+ Basic Customization
34
+ </h2>
35
+ <dl class="samples">
36
+ <dt><a class="samples" href="uicolor.html">User Interface color</a></dt>
37
+ <dd>Changing CKEditor User Interface color and adding a toolbar button that lets the user set the UI color.</dd>
38
+
39
+ <dt><a class="samples" href="uilanguages.html">User Interface languages</a></dt>
40
+ <dd>Changing CKEditor User Interface language and adding a drop-down list that lets the user choose the UI language.</dd>
41
+ </dl>
42
+
43
+
44
+ <h2 class="samples">Plugins</h2>
45
+ <dl class="samples">
46
+ <dt><a class="samples" href="plugins/magicline/magicline.html">Magicline plugin</a></dt>
47
+ <dd>Using the Magicline plugin to access difficult focus spaces.</dd>
48
+
49
+ <dt><a class="samples" href="plugins/wysiwygarea/fullpage.html">Full page support</a></dt>
50
+ <dd>CKEditor inserted with a JavaScript call and used to edit the whole page from &lt;html&gt; to &lt;/html&gt;.</dd>
51
+ </dl>
52
+ </div>
53
+ <div class="twoColumnsRight">
54
+ <h2 class="samples">
55
+ Inline Editing
56
+ </h2>
57
+ <dl class="samples">
58
+ <dt><a class="samples" href="inlineall.html">Massive inline editor creation</a></dt>
59
+ <dd>Turn all elements with <code>contentEditable = true</code> attribute into inline editors.</dd>
60
+
61
+ <dt><a class="samples" href="inlinebycode.html">Convert element into an inline editor by code</a></dt>
62
+ <dd>Conversion of DOM elements into inline CKEditor instances by using a JavaScript call.</dd>
63
+
64
+ <dt><a class="samples" href="inlinetextarea.html">Replace textarea with inline editor</a> <span class="new">New!</span></dt>
65
+ <dd>A form with a textarea that is replaced by an inline editor at runtime.</dd>
66
+
67
+
68
+ </dl>
69
+
70
+ <h2 class="samples">
71
+ Advanced Samples
72
+ </h2>
73
+ <dl class="samples">
74
+ <dt><a class="samples" href="datafiltering.html">Data filtering and features activation</a> <span class="new">New!</span></dt>
75
+ <dd>Data filtering and automatic features activation basing on configuration.</dd>
76
+
77
+ <dt><a class="samples" href="divreplace.html">Replace DIV elements on the fly</a></dt>
78
+ <dd>Transforming a <code>div</code> element into an instance of CKEditor with a mouse click.</dd>
79
+
80
+ <dt><a class="samples" href="appendto.html">Append editor instances</a></dt>
81
+ <dd>Appending editor instances to existing DOM elements.</dd>
82
+
83
+ <dt><a class="samples" href="ajax.html">Create and destroy editor instances for Ajax applications</a></dt>
84
+ <dd>Creating and destroying CKEditor instances on the fly and saving the contents entered into the editor window.</dd>
85
+
86
+ <dt><a class="samples" href="api.html">Basic usage of the API</a></dt>
87
+ <dd>Using the CKEditor JavaScript API to interact with the editor at runtime.</dd>
88
+
89
+ <dt><a class="samples" href="xhtmlstyle.html">XHTML-compliant style</a></dt>
90
+ <dd>Configuring CKEditor to produce XHTML 1.1 compliant attributes and styles.</dd>
91
+
92
+ <dt><a class="samples" href="readonly.html">Read-only mode</a></dt>
93
+ <dd>Using the readOnly API to block introducing changes to the editor contents.</dd>
94
+
95
+ <dt><a class="samples" href="tabindex.html">"Tab" key-based navigation</a></dt>
96
+ <dd>Navigating among editor instances with tab key.</dd>
97
+
98
+
99
+
100
+ <dt><a class="samples" href="plugins/dialog/dialog.html">Using the JavaScript API to customize dialog windows</a></dt>
101
+ <dd>Using the dialog windows API to customize dialog windows without changing the original editor code.</dd>
102
+
103
+ <dt><a class="samples" href="plugins/enterkey/enterkey.html">Using the &quot;Enter&quot; key in CKEditor</a></dt>
104
+ <dd>Configuring the behavior of <em>Enter</em> and <em>Shift+Enter</em> keys.</dd>
105
+
106
+ <dt><a class="samples" href="plugins/htmlwriter/outputforflash.html">Output for Flash</a></dt>
107
+ <dd>Configuring CKEditor to produce HTML code that can be used with Adobe Flash.</dd>
108
+
109
+ <dt><a class="samples" href="plugins/htmlwriter/outputhtml.html">Output HTML</a></dt>
110
+ <dd>Configuring CKEditor to produce legacy HTML 4 code.</dd>
111
+
112
+ <dt><a class="samples" href="plugins/toolbar/toolbar.html">Toolbar Configurations</a></dt>
113
+ <dd>Configuring CKEditor to display full or custom toolbar layout.</dd>
114
+
115
+ </dl>
116
+ </div>
117
+ </div>
118
+ <div id="footer">
119
+ <hr>
120
+ <p>
121
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
122
+ </p>
123
+ <p id="copy">
124
+ Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
125
+ </p>
126
+ </div>
127
+ </body>
128
+ </html>
@@ -0,0 +1,311 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
4
+ For licensing, see LICENSE.md or http://ckeditor.com/license
5
+ -->
6
+ <html>
7
+ <head>
8
+ <title>Massive inline editing &mdash; CKEditor Sample</title>
9
+ <meta charset="utf-8">
10
+ <script src="../ckeditor.js"></script>
11
+ <script>
12
+
13
+ // This code is generally not necessary, but it is here to demonstrate
14
+ // how to customize specific editor instances on the fly. This fits well
15
+ // this demo because we have editable elements (like headers) that
16
+ // require less features.
17
+
18
+ // The "instanceCreated" event is fired for every editor instance created.
19
+ CKEDITOR.on( 'instanceCreated', function( event ) {
20
+ var editor = event.editor,
21
+ element = editor.element;
22
+
23
+ // Customize editors for headers and tag list.
24
+ // These editors don't need features like smileys, templates, iframes etc.
25
+ if ( element.is( 'h1', 'h2', 'h3' ) || element.getAttribute( 'id' ) == 'taglist' ) {
26
+ // Customize the editor configurations on "configLoaded" event,
27
+ // which is fired after the configuration file loading and
28
+ // execution. This makes it possible to change the
29
+ // configurations before the editor initialization takes place.
30
+ editor.on( 'configLoaded', function() {
31
+
32
+ // Remove unnecessary plugins to make the editor simpler.
33
+ editor.config.removePlugins = 'colorbutton,find,flash,font,' +
34
+ 'forms,iframe,image,newpage,removeformat,' +
35
+ 'smiley,specialchar,stylescombo,templates';
36
+
37
+ // Rearrange the layout of the toolbar.
38
+ editor.config.toolbarGroups = [
39
+ { name: 'editing', groups: [ 'basicstyles', 'links' ] },
40
+ { name: 'undo' },
41
+ { name: 'clipboard', groups: [ 'selection', 'clipboard' ] },
42
+ { name: 'about' }
43
+ ];
44
+ });
45
+ }
46
+ });
47
+
48
+ </script>
49
+ <link href="sample.css" rel="stylesheet">
50
+ <style>
51
+
52
+ /* The following styles are just to make the page look nice. */
53
+
54
+ /* Workaround to show Arial Black in Firefox. */
55
+ @font-face
56
+ {
57
+ font-family: 'arial-black';
58
+ src: local('Arial Black');
59
+ }
60
+
61
+ *[contenteditable="true"]
62
+ {
63
+ padding: 10px;
64
+ }
65
+
66
+ #container
67
+ {
68
+ width: 960px;
69
+ margin: 30px auto 0;
70
+ }
71
+
72
+ #header
73
+ {
74
+ overflow: hidden;
75
+ padding: 0 0 30px;
76
+ border-bottom: 5px solid #05B2D2;
77
+ position: relative;
78
+ }
79
+
80
+ #headerLeft,
81
+ #headerRight
82
+ {
83
+ width: 49%;
84
+ overflow: hidden;
85
+ }
86
+
87
+ #headerLeft
88
+ {
89
+ float: left;
90
+ padding: 10px 1px 1px;
91
+ }
92
+
93
+ #headerLeft h2,
94
+ #headerLeft h3
95
+ {
96
+ text-align: right;
97
+ margin: 0;
98
+ overflow: hidden;
99
+ font-weight: normal;
100
+ }
101
+
102
+ #headerLeft h2
103
+ {
104
+ font-family: "Arial Black",arial-black;
105
+ font-size: 4.6em;
106
+ line-height: 1.1em;
107
+ text-transform: uppercase;
108
+ }
109
+
110
+ #headerLeft h3
111
+ {
112
+ font-size: 2.3em;
113
+ line-height: 1.1em;
114
+ margin: .2em 0 0;
115
+ color: #666;
116
+ }
117
+
118
+ #headerRight
119
+ {
120
+ float: right;
121
+ padding: 1px;
122
+ }
123
+
124
+ #headerRight p
125
+ {
126
+ line-height: 1.8em;
127
+ text-align: justify;
128
+ margin: 0;
129
+ }
130
+
131
+ #headerRight p + p
132
+ {
133
+ margin-top: 20px;
134
+ }
135
+
136
+ #headerRight > div
137
+ {
138
+ padding: 20px;
139
+ margin: 0 0 0 30px;
140
+ font-size: 1.4em;
141
+ color: #666;
142
+ }
143
+
144
+ #columns
145
+ {
146
+ color: #333;
147
+ overflow: hidden;
148
+ padding: 20px 0;
149
+ }
150
+
151
+ #columns > div
152
+ {
153
+ float: left;
154
+ width: 33.3%;
155
+ }
156
+
157
+ #columns #column1 > div
158
+ {
159
+ margin-left: 1px;
160
+ }
161
+
162
+ #columns #column3 > div
163
+ {
164
+ margin-right: 1px;
165
+ }
166
+
167
+ #columns > div > div
168
+ {
169
+ margin: 0px 10px;
170
+ padding: 10px 20px;
171
+ }
172
+
173
+ #columns blockquote
174
+ {
175
+ margin-left: 15px;
176
+ }
177
+
178
+ #tagLine
179
+ {
180
+ border-top: 5px solid #05B2D2;
181
+ padding-top: 20px;
182
+ }
183
+
184
+ #taglist {
185
+ display: inline-block;
186
+ margin-left: 20px;
187
+ font-weight: bold;
188
+ margin: 0 0 0 20px;
189
+ }
190
+
191
+ </style>
192
+ </head>
193
+ <body>
194
+ <div>
195
+ <h1 class="samples"><a href="index.html">CKEditor Samples</a> &raquo; Massive inline editing</h1>
196
+ <div class="description">
197
+ <p>This sample page demonstrates the inline editing feature - CKEditor instances will be created automatically from page elements with <strong>contentEditable</strong> attribute set to value <strong>true</strong>:</p>
198
+ <pre class="samples">&lt;div <strong>contenteditable="true</strong>" &gt; ... &lt;/div&gt;</pre>
199
+ <p>Click inside of any element below to start editing.</p>
200
+ </div>
201
+ </div>
202
+ <div id="container">
203
+ <div id="header">
204
+ <div id="headerLeft">
205
+ <h2 id="sampleTitle" contenteditable="true">
206
+ CKEditor<br> Goes Inline!
207
+ </h2>
208
+ <h3 contenteditable="true">
209
+ Lorem ipsum dolor sit amet dolor duis blandit vestibulum faucibus a, tortor.
210
+ </h3>
211
+ </div>
212
+ <div id="headerRight">
213
+ <div contenteditable="true">
214
+ <p>
215
+ Lorem ipsum dolor sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis. Maecenas malesuada elit lectus felis, malesuada ultricies.
216
+ </p>
217
+ <p>
218
+ Curabitur et ligula. Ut molestie a, ultricies porta urna. Vestibulum commodo volutpat a, convallis ac, laoreet enim. Phasellus fermentum in, dolor. Pellentesque facilisis. Nulla imperdiet sit amet magna. Vestibulum dapibus, mauris nec malesuada fames ac.
219
+ </p>
220
+ </div>
221
+ </div>
222
+ </div>
223
+ <div id="columns">
224
+ <div id="column1">
225
+ <div contenteditable="true">
226
+ <h3>
227
+ Fusce vitae porttitor
228
+ </h3>
229
+ <p>
230
+ <strong>
231
+ Lorem ipsum dolor sit amet dolor. Duis blandit vestibulum faucibus a, tortor.
232
+ </strong>
233
+ </p>
234
+ <p>
235
+ Proin nunc justo felis mollis tincidunt, risus risus pede, posuere cubilia Curae, Nullam euismod, enim. Etiam nibh ultricies dolor ac dignissim erat volutpat. Vivamus fermentum <a href="http://ckeditor.com/">nisl nulla sem in</a> metus. Maecenas wisi. Donec nec erat volutpat.
236
+ </p>
237
+ <blockquote>
238
+ <p>
239
+ Fusce vitae porttitor a, euismod convallis nisl, blandit risus tortor, pretium.
240
+ Vehicula vitae, imperdiet vel, ornare enim vel sodales rutrum
241
+ </p>
242
+ </blockquote>
243
+ <blockquote>
244
+ <p>
245
+ Libero nunc, rhoncus ante ipsum non ipsum. Nunc eleifend pede turpis id sollicitudin fringilla. Phasellus ultrices, velit ac arcu.
246
+ </p>
247
+ </blockquote>
248
+ <p>Pellentesque nunc. Donec suscipit erat. Pellentesque habitant morbi tristique ullamcorper.</p>
249
+ <p><s>Mauris mattis feugiat lectus nec mauris. Nullam vitae ante.</s></p>
250
+ </div>
251
+ </div>
252
+ <div id="column2">
253
+ <div contenteditable="true">
254
+ <h3>
255
+ Integer condimentum sit amet
256
+ </h3>
257
+ <p>
258
+ <strong>Aenean nonummy a, mattis varius. Cras aliquet.</strong>
259
+ Praesent <a href="http://ckeditor.com/">magna non mattis ac, rhoncus nunc</a>, rhoncus eget, cursus pulvinar mollis.</p>
260
+ <p>Proin id nibh. Sed eu libero posuere sed, lectus. Phasellus dui gravida gravida feugiat mattis ac, felis.</p>
261
+ <p>Integer condimentum sit amet, tempor elit odio, a dolor non ante at sapien. Sed ac lectus. Nulla ligula quis eleifend mi, id leo velit pede cursus arcu id nulla ac lectus. Phasellus vestibulum. Nunc viverra enim quis diam.</p>
262
+ </div>
263
+ <div contenteditable="true">
264
+ <h3>
265
+ Praesent wisi accumsan sit amet nibh
266
+ </h3>
267
+ <p>Donec ullamcorper, risus tortor, pretium porttitor. Morbi quam quis lectus non leo.</p>
268
+ <p style="margin-left: 40px; ">Integer faucibus scelerisque. Proin faucibus at, aliquet vulputate, odio at eros. Fusce <a href="http://ckeditor.com/">gravida, erat vitae augue</a>. Fusce urna fringilla gravida.</p>
269
+ <p>In hac habitasse platea dictumst. Praesent wisi accumsan sit amet nibh. Maecenas orci luctus a, lacinia quam sem, posuere commodo, odio condimentum tempor, pede semper risus. Suspendisse pede. In hac habitasse platea dictumst. Nam sed laoreet sit amet erat. Integer.</p>
270
+ </div>
271
+ </div>
272
+ <div id="column3">
273
+ <div contenteditable="true">
274
+ <p>
275
+ <img src="assets/inlineall/logo.png" alt="CKEditor logo" style="float:left">
276
+ </p>
277
+ <p>Quisque justo neque, mattis sed, fermentum ultrices <strong>posuere cubilia Curae</strong>, Vestibulum elit metus, quis placerat ut, lectus. Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis. Fusce porttitor, nulla quis turpis. Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi. Donec odio nec velit ac nunc sit amet, accumsan cursus aliquet. Vestibulum ante sit amet sagittis mi.</p>
278
+ <h3>
279
+ Nullam laoreet vel consectetuer tellus suscipit
280
+ </h3>
281
+ <ul>
282
+ <li>Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis.</li>
283
+ <li>Fusce porttitor, nulla quis turpis. Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi.</li>
284
+ <li>Mauris eget tellus. Donec non felis. Nam eget dolor. Vestibulum enim. Donec.</li>
285
+ </ul>
286
+ <p>Quisque justo neque, mattis sed, <a href="http://ckeditor.com/">fermentum ultrices posuere cubilia</a> Curae, Vestibulum elit metus, quis placerat ut, lectus.</p>
287
+ <p>Nullam laoreet vel, consectetuer tellus suscipit ultricies, hendrerit wisi. Ut sagittis, nunc libero, egestas consequat lobortis velit rutrum ut, faucibus turpis. Fusce porttitor, nulla quis turpis.</p>
288
+ <p>Donec odio nec velit ac nunc sit amet, accumsan cursus aliquet. Vestibulum ante sit amet sagittis mi. Sed in nonummy faucibus turpis. Mauris eget tellus. Donec non felis. Nam eget dolor. Vestibulum enim. Donec.</p>
289
+ </div>
290
+ </div>
291
+ </div>
292
+ <div id="tagLine">
293
+ Tags of this article:
294
+ <p id="taglist" contenteditable="true">
295
+ inline, editing, floating, CKEditor
296
+ </p>
297
+ </div>
298
+ </div>
299
+ <div id="footer">
300
+ <hr>
301
+ <p>
302
+ CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">
303
+ http://ckeditor.com</a>
304
+ </p>
305
+ <p id="copy">
306
+ Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a>
307
+ - Frederico Knabben. All rights reserved.
308
+ </p>
309
+ </div>
310
+ </body>
311
+ </html>