dust-ckeditor 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (706) hide show
  1. data/CHANGELOG +15 -0
  2. data/README.rdoc +140 -0
  3. data/Rakefile +45 -0
  4. data/app/controllers/ckeditor/attachments_controller.rb +28 -0
  5. data/app/controllers/ckeditor/base_controller.rb +60 -0
  6. data/app/controllers/ckeditor/pictures_controller.rb +28 -0
  7. data/app/helpers/ckeditor/base_helper.rb +21 -0
  8. data/app/views/ckeditor/_asset.html.erb +48 -0
  9. data/app/views/ckeditor/_swfupload.html.erb +51 -0
  10. data/app/views/ckeditor/attachments/edit_files.html.erb +68 -0
  11. data/app/views/ckeditor/attachments/index.html.erb +94 -0
  12. data/app/views/ckeditor/pictures/edit_images.html.erb +68 -0
  13. data/app/views/ckeditor/pictures/index.html.erb +94 -0
  14. data/app/views/layouts/ckeditor.html.erb +29 -0
  15. data/config/routes.rb +9 -0
  16. data/examples/migrations/attachment_fu/create_assets.rb +30 -0
  17. data/examples/migrations/paperclip/create_assets.rb +25 -0
  18. data/examples/models/attachment_fu/asset.rb +45 -0
  19. data/examples/models/attachment_fu/attachment_file.rb +46 -0
  20. data/examples/models/attachment_fu/picture.rb +46 -0
  21. data/examples/models/paperclip/asset.rb +65 -0
  22. data/examples/models/paperclip/attachment_file.rb +22 -0
  23. data/examples/models/paperclip/picture.rb +39 -0
  24. data/examples/s3/attachment_file.rb +23 -0
  25. data/examples/s3/picture.rb +41 -0
  26. data/lib/ckeditor.rb +92 -0
  27. data/lib/ckeditor/engine.rb +21 -0
  28. data/lib/ckeditor/form_builder.rb +22 -0
  29. data/lib/ckeditor/formtastic.rb +12 -0
  30. data/lib/ckeditor/middleware.rb +18 -0
  31. data/lib/ckeditor/utils.rb +26 -0
  32. data/lib/ckeditor/version.rb +11 -0
  33. data/lib/ckeditor/view_helper.rb +91 -0
  34. data/lib/generators/ckeditor/base/USAGE +7 -0
  35. data/lib/generators/ckeditor/base/base_generator.rb +20 -0
  36. data/lib/generators/ckeditor/base/templates/ckeditor.rb +54 -0
  37. data/lib/generators/ckeditor/base/templates/ckeditor/CHANGES.html +1063 -0
  38. data/lib/generators/ckeditor/base/templates/ckeditor/INSTALL.html +92 -0
  39. data/lib/generators/ckeditor/base/templates/ckeditor/LICENSE.html +1334 -0
  40. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/application.xml +32 -0
  41. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/run.bat +9 -0
  42. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/run.sh +8 -0
  43. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/sample.html +45 -0
  44. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/ajax.html +87 -0
  45. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/api.html +174 -0
  46. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/api_dialog.html +188 -0
  47. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/api_dialog/my_dialog.js +28 -0
  48. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/advanced.asp +105 -0
  49. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/events.asp +136 -0
  50. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/index.html +103 -0
  51. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/replace.asp +72 -0
  52. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/replaceall.asp +77 -0
  53. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/sample_posteddata.asp +46 -0
  54. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/standalone.asp +72 -0
  55. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/assets/output_for_flash.fla +0 -0
  56. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/assets/output_for_flash.swf +0 -0
  57. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/assets/output_xhtml.css +204 -0
  58. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/assets/swfobject.js +18 -0
  59. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/autogrow.html +75 -0
  60. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/divreplace.html +137 -0
  61. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/enterkey.html +88 -0
  62. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/fullpage.html +62 -0
  63. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/index.html +58 -0
  64. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/jqueryadapter.html +73 -0
  65. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/output_for_flash.html +257 -0
  66. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/output_html.html +259 -0
  67. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/output_xhtml.html +159 -0
  68. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/advanced.php +93 -0
  69. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/events.php +130 -0
  70. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/replace.php +63 -0
  71. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/replaceall.php +68 -0
  72. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/standalone.php +64 -0
  73. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/placeholder.html +62 -0
  74. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/replacebyclass.html +49 -0
  75. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/replacebycode.html +80 -0
  76. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/sample.css +81 -0
  77. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/sample.js +65 -0
  78. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/sample_posteddata.php +59 -0
  79. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/sharedspaces.html +131 -0
  80. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/skins.html +83 -0
  81. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/ui_color.html +87 -0
  82. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/ui_languages.html +103 -0
  83. data/lib/generators/ckeditor/base/templates/ckeditor/_source/adapters/jquery.js +300 -0
  84. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/_bootstrap.js +96 -0
  85. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ajax.js +142 -0
  86. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ckeditor.js +133 -0
  87. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ckeditor_base.js +196 -0
  88. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ckeditor_basic.js +239 -0
  89. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/command.js +209 -0
  90. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/commanddefinition.js +129 -0
  91. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/config.js +431 -0
  92. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dataprocessor.js +65 -0
  93. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom.js +20 -0
  94. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/comment.js +32 -0
  95. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/document.js +251 -0
  96. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/documentfragment.js +49 -0
  97. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/domobject.js +258 -0
  98. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/element.js +1615 -0
  99. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/elementpath.js +119 -0
  100. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/event.js +142 -0
  101. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/node.js +696 -0
  102. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/nodelist.js +26 -0
  103. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/range.js +1893 -0
  104. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/rangelist.js +213 -0
  105. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/text.js +123 -0
  106. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/walker.js +444 -0
  107. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/window.js +96 -0
  108. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dtd.js +238 -0
  109. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/editor.js +943 -0
  110. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/editor_basic.js +182 -0
  111. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/env.js +272 -0
  112. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/event.js +342 -0
  113. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/eventInfo.js +120 -0
  114. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/focusmanager.js +152 -0
  115. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser.js +224 -0
  116. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/basicwriter.js +145 -0
  117. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/cdata.js +43 -0
  118. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/comment.js +60 -0
  119. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/element.js +240 -0
  120. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/filter.js +288 -0
  121. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/fragment.js +504 -0
  122. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/text.js +55 -0
  123. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/lang.js +156 -0
  124. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/loader.js +242 -0
  125. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/plugindefinition.js +66 -0
  126. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/plugins.js +85 -0
  127. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/resourcemanager.js +238 -0
  128. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/scriptloader.js +200 -0
  129. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/skins.js +184 -0
  130. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/themes.js +19 -0
  131. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/tools.js +734 -0
  132. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ui.js +118 -0
  133. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/xml.js +165 -0
  134. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/_languages.js +83 -0
  135. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/_translationstatus.txt +60 -0
  136. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/af.js +752 -0
  137. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ar.js +752 -0
  138. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/bg.js +752 -0
  139. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/bn.js +752 -0
  140. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/bs.js +752 -0
  141. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ca.js +752 -0
  142. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/cs.js +752 -0
  143. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/cy.js +752 -0
  144. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/da.js +752 -0
  145. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/de.js +752 -0
  146. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/el.js +752 -0
  147. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en-au.js +752 -0
  148. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en-ca.js +752 -0
  149. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en-gb.js +752 -0
  150. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en.js +752 -0
  151. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/eo.js +752 -0
  152. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/es.js +752 -0
  153. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/et.js +752 -0
  154. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/eu.js +752 -0
  155. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fa.js +752 -0
  156. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fi.js +752 -0
  157. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fo.js +752 -0
  158. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fr-ca.js +752 -0
  159. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fr.js +752 -0
  160. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/gl.js +752 -0
  161. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/gu.js +752 -0
  162. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/he.js +752 -0
  163. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/hi.js +752 -0
  164. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/hr.js +752 -0
  165. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/hu.js +752 -0
  166. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/is.js +752 -0
  167. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/it.js +752 -0
  168. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ja.js +752 -0
  169. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/km.js +752 -0
  170. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ko.js +752 -0
  171. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/lt.js +752 -0
  172. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/lv.js +752 -0
  173. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/mn.js +752 -0
  174. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ms.js +752 -0
  175. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/nb.js +752 -0
  176. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/nl.js +752 -0
  177. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/no.js +752 -0
  178. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/pl.js +752 -0
  179. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/pt-br.js +751 -0
  180. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/pt.js +752 -0
  181. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ro.js +752 -0
  182. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ru.js +752 -0
  183. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sk.js +752 -0
  184. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sl.js +752 -0
  185. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sr-latn.js +752 -0
  186. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sr.js +752 -0
  187. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sv.js +752 -0
  188. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/th.js +752 -0
  189. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/tr.js +751 -0
  190. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/uk.js +752 -0
  191. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/vi.js +752 -0
  192. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/zh-cn.js +752 -0
  193. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/zh.js +752 -0
  194. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +211 -0
  195. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/a11yhelp/lang/en.js +108 -0
  196. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/a11yhelp/lang/he.js +216 -0
  197. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/a11yhelp/plugin.js +46 -0
  198. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/about/dialogs/about.js +73 -0
  199. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png +0 -0
  200. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/about/plugin.js +23 -0
  201. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/adobeair/plugin.js +228 -0
  202. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/ajax_save/plugin.js +43 -0
  203. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/dialogs/attachment.js +384 -0
  204. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/images/attachment.png +0 -0
  205. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/lang/en.js +10 -0
  206. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/lang/ru.js +10 -0
  207. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/lang/uk.js +10 -0
  208. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/plugin.js +44 -0
  209. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/autogrow/plugin.js +86 -0
  210. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/basicstyles/plugin.js +101 -0
  211. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/bidi/plugin.js +265 -0
  212. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/blockquote/plugin.js +301 -0
  213. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/button/plugin.js +295 -0
  214. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/clipboard/dialogs/paste.js +212 -0
  215. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/clipboard/plugin.js +412 -0
  216. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/colorbutton/plugin.js +291 -0
  217. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +340 -0
  218. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/colordialog/plugin.js +13 -0
  219. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/contextmenu/plugin.js +177 -0
  220. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialog/dialogDefinition.js +315 -0
  221. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialog/plugin.js +3067 -0
  222. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialogadvtab/plugin.js +213 -0
  223. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialogui/plugin.js +1523 -0
  224. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/div/dialogs/div.js +535 -0
  225. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/div/plugin.js +121 -0
  226. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/domiterator/plugin.js +356 -0
  227. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/editingblock/plugin.js +229 -0
  228. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/elementspath/plugin.js +201 -0
  229. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/dialogs/embed.js +65 -0
  230. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/images/embed.png +0 -0
  231. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/lang/en.js +9 -0
  232. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/lang/ru.js +9 -0
  233. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/lang/uk.js +9 -0
  234. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/plugin.js +43 -0
  235. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/enterkey/plugin.js +381 -0
  236. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/entities/plugin.js +226 -0
  237. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/fakeobjects/plugin.js +126 -0
  238. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/filebrowser/plugin.js +501 -0
  239. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/find/dialogs/find.js +890 -0
  240. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/find/plugin.js +46 -0
  241. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/flash/dialogs/flash.js +698 -0
  242. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/flash/images/placeholder.png +0 -0
  243. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/flash/plugin.js +168 -0
  244. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/floatpanel/plugin.js +405 -0
  245. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/font/plugin.js +234 -0
  246. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/format/plugin.js +194 -0
  247. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/button.js +135 -0
  248. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/checkbox.js +153 -0
  249. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/form.js +177 -0
  250. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +98 -0
  251. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/radio.js +135 -0
  252. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/select.js +556 -0
  253. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/textarea.js +114 -0
  254. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/textfield.js +199 -0
  255. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/images/hiddenfield.gif +0 -0
  256. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/plugin.js +284 -0
  257. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/horizontalrule/plugin.js +36 -0
  258. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/htmldataprocessor/plugin.js +543 -0
  259. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/htmlwriter/plugin.js +319 -0
  260. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframe/dialogs/iframe.js +257 -0
  261. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframe/images/placeholder.png +0 -0
  262. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframe/plugin.js +106 -0
  263. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframedialog/plugin.js +136 -0
  264. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/image/dialogs/image.js +1388 -0
  265. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/image/plugin.js +81 -0
  266. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/indent/plugin.js +468 -0
  267. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/justify/plugin.js +239 -0
  268. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/keystrokes/plugin.js +225 -0
  269. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/dialogs/anchor.js +99 -0
  270. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/dialogs/link.js +1426 -0
  271. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/images/anchor.gif +0 -0
  272. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/plugin.js +241 -0
  273. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/list/plugin.js +723 -0
  274. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/listblock/plugin.js +257 -0
  275. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +204 -0
  276. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/liststyle/plugin.js +66 -0
  277. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/maximize/plugin.js +340 -0
  278. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/menu/plugin.js +505 -0
  279. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/menubutton/plugin.js +98 -0
  280. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/newpage/plugin.js +53 -0
  281. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif +0 -0
  282. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pagebreak/plugin.js +120 -0
  283. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/panel/plugin.js +395 -0
  284. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/panelbutton/plugin.js +146 -0
  285. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastefromword/filter/default.js +1175 -0
  286. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastefromword/plugin.js +122 -0
  287. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +70 -0
  288. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastetext/plugin.js +85 -0
  289. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/dialogs/placeholder.js +78 -0
  290. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/lang/en.js +16 -0
  291. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/placeholder.gif +0 -0
  292. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/plugin.js +160 -0
  293. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/popup/plugin.js +64 -0
  294. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/preview/plugin.js +108 -0
  295. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/print/plugin.js +41 -0
  296. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/removeformat/plugin.js +184 -0
  297. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/resize/plugin.js +157 -0
  298. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/richcombo/plugin.js +371 -0
  299. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/save/plugin.js +55 -0
  300. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/scayt/dialogs/options.js +534 -0
  301. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/scayt/dialogs/toolbar.css +71 -0
  302. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/scayt/plugin.js +947 -0
  303. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/selection/plugin.js +1375 -0
  304. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_address.png +0 -0
  305. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_blockquote.png +0 -0
  306. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_div.png +0 -0
  307. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h1.png +0 -0
  308. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h2.png +0 -0
  309. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h3.png +0 -0
  310. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h4.png +0 -0
  311. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h5.png +0 -0
  312. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h6.png +0 -0
  313. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_p.png +0 -0
  314. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_pre.png +0 -0
  315. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/plugin.js +156 -0
  316. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showborders/plugin.js +203 -0
  317. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/dialogs/smiley.js +223 -0
  318. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/angel_smile.gif +0 -0
  319. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/angry_smile.gif +0 -0
  320. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/broken_heart.gif +0 -0
  321. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/confused_smile.gif +0 -0
  322. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/cry_smile.gif +0 -0
  323. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/devil_smile.gif +0 -0
  324. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif +0 -0
  325. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/envelope.gif +0 -0
  326. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/heart.gif +0 -0
  327. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/kiss.gif +0 -0
  328. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/lightbulb.gif +0 -0
  329. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/omg_smile.gif +0 -0
  330. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/regular_smile.gif +0 -0
  331. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/sad_smile.gif +0 -0
  332. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/shades_smile.gif +0 -0
  333. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/teeth_smile.gif +0 -0
  334. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/thumbs_down.gif +0 -0
  335. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/thumbs_up.gif +0 -0
  336. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/tounge_smile.gif +0 -0
  337. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  338. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/wink_smile.gif +0 -0
  339. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/plugin.js +94 -0
  340. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/sourcearea/plugin.js +196 -0
  341. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +347 -0
  342. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/specialchar/lang/en.js +89 -0
  343. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/specialchar/plugin.js +70 -0
  344. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/styles/plugin.js +1564 -0
  345. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/styles/styles/default.js +88 -0
  346. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/stylescombo/plugin.js +206 -0
  347. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tab/plugin.js +367 -0
  348. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/table/dialogs/table.js +672 -0
  349. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/table/plugin.js +78 -0
  350. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tableresize/plugin.js +450 -0
  351. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +525 -0
  352. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tabletools/plugin.js +1120 -0
  353. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/dialogs/templates.js +233 -0
  354. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/plugin.js +99 -0
  355. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/templates/default.js +94 -0
  356. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/templates/images/template1.gif +0 -0
  357. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/templates/images/template2.gif +0 -0
  358. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/templates/images/template3.gif +0 -0
  359. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/toolbar/plugin.js +482 -0
  360. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +205 -0
  361. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/lang/en.js +15 -0
  362. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/lang/he.js +15 -0
  363. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/plugin.js +37 -0
  364. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/uicolor.gif +0 -0
  365. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  366. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  367. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  368. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  369. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +15 -0
  370. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/yui.js +71 -0
  371. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/undo/plugin.js +554 -0
  372. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/dialogs/ciframe.html +49 -0
  373. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html +52 -0
  374. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.css +82 -0
  375. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.js +191 -0
  376. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/plugin.js +33 -0
  377. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wysiwygarea/plugin.js +1224 -0
  378. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/dialog.css +915 -0
  379. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/editor.css +25 -0
  380. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/elementspath.css +73 -0
  381. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/icons.css +361 -0
  382. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/icons.png +0 -0
  383. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/icons_rtl.png +0 -0
  384. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/dialog_sides.gif +0 -0
  385. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/dialog_sides.png +0 -0
  386. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png +0 -0
  387. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/mini.gif +0 -0
  388. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/noimage.png +0 -0
  389. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/sprites.png +0 -0
  390. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/sprites_ie6.png +0 -0
  391. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/toolbar_start.gif +0 -0
  392. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/mainui.css +202 -0
  393. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/menu.css +244 -0
  394. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/panel.css +217 -0
  395. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/presets.css +49 -0
  396. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/reset.css +84 -0
  397. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/richcombo.css +287 -0
  398. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/skin.js +259 -0
  399. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/templates.css +88 -0
  400. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/toolbar.css +448 -0
  401. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/dialog.css +826 -0
  402. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/editor.css +25 -0
  403. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/elementspath.css +74 -0
  404. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/icons.css +358 -0
  405. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/icons.png +0 -0
  406. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/icons_rtl.png +0 -0
  407. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/dialog_sides.gif +0 -0
  408. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/dialog_sides.png +0 -0
  409. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png +0 -0
  410. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/mini.gif +0 -0
  411. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/noimage.png +0 -0
  412. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/sprites.png +0 -0
  413. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/sprites_ie6.png +0 -0
  414. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/mainui.css +152 -0
  415. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/menu.css +241 -0
  416. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/panel.css +212 -0
  417. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/presets.css +49 -0
  418. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/reset.css +84 -0
  419. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/richcombo.css +318 -0
  420. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/skin.js +71 -0
  421. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/templates.css +87 -0
  422. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/toolbar.css +510 -0
  423. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/dialog.css +842 -0
  424. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/editor.css +25 -0
  425. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/elementspath.css +74 -0
  426. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/icons.css +358 -0
  427. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/icons.png +0 -0
  428. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/icons_rtl.png +0 -0
  429. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/dialog_sides.gif +0 -0
  430. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/dialog_sides.png +0 -0
  431. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png +0 -0
  432. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/mini.gif +0 -0
  433. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/noimage.png +0 -0
  434. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/sprites.png +0 -0
  435. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/sprites_ie6.png +0 -0
  436. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/toolbar_start.gif +0 -0
  437. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/mainui.css +161 -0
  438. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/menu.css +244 -0
  439. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/panel.css +212 -0
  440. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/presets.css +50 -0
  441. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/reset.css +84 -0
  442. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/richcombo.css +317 -0
  443. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/skin.js +67 -0
  444. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/templates.css +87 -0
  445. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/toolbar.css +453 -0
  446. data/lib/generators/ckeditor/base/templates/ckeditor/_source/themes/default/theme.js +368 -0
  447. data/lib/generators/ckeditor/base/templates/ckeditor/adapters/jquery.js +6 -0
  448. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor.js +139 -0
  449. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor.pack +211 -0
  450. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_basic.js +8 -0
  451. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_basic_source.js +20 -0
  452. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_source.js +25 -0
  453. data/lib/generators/ckeditor/base/templates/ckeditor/config.js +43 -0
  454. data/lib/generators/ckeditor/base/templates/ckeditor/contents.css +39 -0
  455. data/lib/generators/ckeditor/base/templates/ckeditor/css/ckfinder.css +299 -0
  456. data/lib/generators/ckeditor/base/templates/ckeditor/css/fck_dialog.css +119 -0
  457. data/lib/generators/ckeditor/base/templates/ckeditor/css/fck_editor.css +448 -0
  458. data/lib/generators/ckeditor/base/templates/ckeditor/css/swfupload.css +94 -0
  459. data/lib/generators/ckeditor/base/templates/ckeditor/images/add.gif +0 -0
  460. data/lib/generators/ckeditor/base/templates/ckeditor/images/cancelbutton.gif +0 -0
  461. data/lib/generators/ckeditor/base/templates/ckeditor/images/ckfnothumb.gif +0 -0
  462. data/lib/generators/ckeditor/base/templates/ckeditor/images/doc.gif +0 -0
  463. data/lib/generators/ckeditor/base/templates/ckeditor/images/mp3.gif +0 -0
  464. data/lib/generators/ckeditor/base/templates/ckeditor/images/pdf.gif +0 -0
  465. data/lib/generators/ckeditor/base/templates/ckeditor/images/rar.gif +0 -0
  466. data/lib/generators/ckeditor/base/templates/ckeditor/images/refresh.gif +0 -0
  467. data/lib/generators/ckeditor/base/templates/ckeditor/images/select_files.png +0 -0
  468. data/lib/generators/ckeditor/base/templates/ckeditor/images/spacer.gif +0 -0
  469. data/lib/generators/ckeditor/base/templates/ckeditor/images/swf.gif +0 -0
  470. data/lib/generators/ckeditor/base/templates/ckeditor/images/toolbar.start.gif +0 -0
  471. data/lib/generators/ckeditor/base/templates/ckeditor/images/xls.gif +0 -0
  472. data/lib/generators/ckeditor/base/templates/ckeditor/jquery-1.4.2.min.js +154 -0
  473. data/lib/generators/ckeditor/base/templates/ckeditor/lang/_languages.js +6 -0
  474. data/lib/generators/ckeditor/base/templates/ckeditor/lang/_translationstatus.txt +60 -0
  475. data/lib/generators/ckeditor/base/templates/ckeditor/lang/af.js +6 -0
  476. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ar.js +6 -0
  477. data/lib/generators/ckeditor/base/templates/ckeditor/lang/bg.js +6 -0
  478. data/lib/generators/ckeditor/base/templates/ckeditor/lang/bn.js +6 -0
  479. data/lib/generators/ckeditor/base/templates/ckeditor/lang/bs.js +6 -0
  480. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ca.js +6 -0
  481. data/lib/generators/ckeditor/base/templates/ckeditor/lang/cs.js +6 -0
  482. data/lib/generators/ckeditor/base/templates/ckeditor/lang/cy.js +6 -0
  483. data/lib/generators/ckeditor/base/templates/ckeditor/lang/da.js +6 -0
  484. data/lib/generators/ckeditor/base/templates/ckeditor/lang/de.js +6 -0
  485. data/lib/generators/ckeditor/base/templates/ckeditor/lang/el.js +6 -0
  486. data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-au.js +6 -0
  487. data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-ca.js +6 -0
  488. data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-gb.js +6 -0
  489. data/lib/generators/ckeditor/base/templates/ckeditor/lang/en.js +6 -0
  490. data/lib/generators/ckeditor/base/templates/ckeditor/lang/eo.js +6 -0
  491. data/lib/generators/ckeditor/base/templates/ckeditor/lang/es.js +6 -0
  492. data/lib/generators/ckeditor/base/templates/ckeditor/lang/et.js +6 -0
  493. data/lib/generators/ckeditor/base/templates/ckeditor/lang/eu.js +6 -0
  494. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fa.js +6 -0
  495. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fi.js +6 -0
  496. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fo.js +6 -0
  497. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fr-ca.js +6 -0
  498. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fr.js +6 -0
  499. data/lib/generators/ckeditor/base/templates/ckeditor/lang/gl.js +6 -0
  500. data/lib/generators/ckeditor/base/templates/ckeditor/lang/gu.js +6 -0
  501. data/lib/generators/ckeditor/base/templates/ckeditor/lang/he.js +6 -0
  502. data/lib/generators/ckeditor/base/templates/ckeditor/lang/hi.js +6 -0
  503. data/lib/generators/ckeditor/base/templates/ckeditor/lang/hr.js +6 -0
  504. data/lib/generators/ckeditor/base/templates/ckeditor/lang/hu.js +6 -0
  505. data/lib/generators/ckeditor/base/templates/ckeditor/lang/is.js +6 -0
  506. data/lib/generators/ckeditor/base/templates/ckeditor/lang/it.js +6 -0
  507. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ja.js +6 -0
  508. data/lib/generators/ckeditor/base/templates/ckeditor/lang/km.js +6 -0
  509. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ko.js +6 -0
  510. data/lib/generators/ckeditor/base/templates/ckeditor/lang/lt.js +6 -0
  511. data/lib/generators/ckeditor/base/templates/ckeditor/lang/lv.js +6 -0
  512. data/lib/generators/ckeditor/base/templates/ckeditor/lang/mn.js +6 -0
  513. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ms.js +6 -0
  514. data/lib/generators/ckeditor/base/templates/ckeditor/lang/nb.js +6 -0
  515. data/lib/generators/ckeditor/base/templates/ckeditor/lang/nl.js +6 -0
  516. data/lib/generators/ckeditor/base/templates/ckeditor/lang/no.js +6 -0
  517. data/lib/generators/ckeditor/base/templates/ckeditor/lang/pl.js +6 -0
  518. data/lib/generators/ckeditor/base/templates/ckeditor/lang/pt-br.js +6 -0
  519. data/lib/generators/ckeditor/base/templates/ckeditor/lang/pt.js +6 -0
  520. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ro.js +6 -0
  521. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ru.js +6 -0
  522. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sk.js +6 -0
  523. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sl.js +6 -0
  524. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sr-latn.js +6 -0
  525. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sr.js +6 -0
  526. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sv.js +6 -0
  527. data/lib/generators/ckeditor/base/templates/ckeditor/lang/th.js +6 -0
  528. data/lib/generators/ckeditor/base/templates/ckeditor/lang/tr.js +6 -0
  529. data/lib/generators/ckeditor/base/templates/ckeditor/lang/uk.js +6 -0
  530. data/lib/generators/ckeditor/base/templates/ckeditor/lang/vi.js +6 -0
  531. data/lib/generators/ckeditor/base/templates/ckeditor/lang/zh-cn.js +6 -0
  532. data/lib/generators/ckeditor/base/templates/ckeditor/lang/zh.js +6 -0
  533. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +7 -0
  534. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/a11yhelp/lang/en.js +6 -0
  535. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/a11yhelp/lang/he.js +6 -0
  536. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/about/dialogs/about.js +6 -0
  537. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  538. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/adobeair/plugin.js +6 -0
  539. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/ajax_save/plugin.js +1 -0
  540. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/dialogs/attachment.js +1 -0
  541. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/images/attachment.png +0 -0
  542. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/en.js +10 -0
  543. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/ru.js +10 -0
  544. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/uk.js +10 -0
  545. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/plugin.js +1 -0
  546. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/autogrow/plugin.js +6 -0
  547. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/clipboard/dialogs/paste.js +7 -0
  548. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/colordialog/dialogs/colordialog.js +7 -0
  549. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
  550. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/div/dialogs/div.js +8 -0
  551. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/dialogs/embed.js +1 -0
  552. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/images/embed.png +0 -0
  553. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/en.js +9 -0
  554. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/ru.js +9 -0
  555. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/uk.js +9 -0
  556. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/plugin.js +1 -0
  557. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/find/dialogs/find.js +9 -0
  558. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/flash/dialogs/flash.js +9 -0
  559. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/flash/images/placeholder.png +0 -0
  560. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/button.js +6 -0
  561. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/checkbox.js +6 -0
  562. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/form.js +6 -0
  563. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/hiddenfield.js +6 -0
  564. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/radio.js +6 -0
  565. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/select.js +9 -0
  566. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/textarea.js +6 -0
  567. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/textfield.js +6 -0
  568. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  569. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/iframe/dialogs/iframe.js +7 -0
  570. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  571. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/iframedialog/plugin.js +6 -0
  572. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/image/dialogs/image.js +13 -0
  573. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/link/dialogs/anchor.js +6 -0
  574. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/link/dialogs/link.js +11 -0
  575. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/link/images/anchor.gif +0 -0
  576. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/liststyle/dialogs/liststyle.js +6 -0
  577. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  578. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/pastefromword/filter/default.js +10 -0
  579. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/pastetext/dialogs/pastetext.js +6 -0
  580. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/dialogs/placeholder.js +6 -0
  581. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/lang/en.js +6 -0
  582. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/placeholder.gif +0 -0
  583. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/plugin.js +6 -0
  584. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/scayt/dialogs/options.js +8 -0
  585. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/scayt/dialogs/toolbar.css +6 -0
  586. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  587. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  588. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  589. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  590. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  591. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  592. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  593. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  594. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  595. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  596. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  597. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/dialogs/smiley.js +7 -0
  598. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  599. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  600. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  601. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  602. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  603. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  604. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  605. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  606. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/heart.gif +0 -0
  607. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  608. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  609. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  610. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  611. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  612. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  613. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  614. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  615. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  616. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  617. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  618. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  619. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/specialchar/dialogs/specialchar.js +7 -0
  620. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/specialchar/lang/en.js +6 -0
  621. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/styles/styles/default.js +6 -0
  622. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/table/dialogs/table.js +9 -0
  623. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/tableresize/plugin.js +7 -0
  624. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/tabletools/dialogs/tableCell.js +8 -0
  625. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/dialogs/templates.js +7 -0
  626. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/templates/default.js +6 -0
  627. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  628. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  629. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  630. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/dialogs/uicolor.js +7 -0
  631. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/lang/en.js +6 -0
  632. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/lang/he.js +6 -0
  633. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/plugin.js +6 -0
  634. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/uicolor.gif +0 -0
  635. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  636. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  637. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  638. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  639. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/yui.css +6 -0
  640. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/yui.js +76 -0
  641. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
  642. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
  643. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/wsc/dialogs/wsc.css +6 -0
  644. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/wsc/dialogs/wsc.js +7 -0
  645. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/dialog.css +9 -0
  646. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/editor.css +13 -0
  647. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/icons.png +0 -0
  648. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/icons_rtl.png +0 -0
  649. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  650. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/dialog_sides.png +0 -0
  651. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  652. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/mini.gif +0 -0
  653. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/noimage.png +0 -0
  654. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/sprites.png +0 -0
  655. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  656. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
  657. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/skin.js +7 -0
  658. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/templates.css +6 -0
  659. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/dialog.css +9 -0
  660. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/editor.css +14 -0
  661. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/icons.png +0 -0
  662. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/icons_rtl.png +0 -0
  663. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
  664. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
  665. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
  666. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/mini.gif +0 -0
  667. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/noimage.png +0 -0
  668. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/sprites.png +0 -0
  669. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
  670. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/skin.js +6 -0
  671. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/templates.css +6 -0
  672. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/dialog.css +9 -0
  673. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/editor.css +13 -0
  674. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/icons.png +0 -0
  675. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/icons_rtl.png +0 -0
  676. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
  677. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/dialog_sides.png +0 -0
  678. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
  679. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/mini.gif +0 -0
  680. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/noimage.png +0 -0
  681. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/sprites.png +0 -0
  682. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
  683. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
  684. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/skin.js +6 -0
  685. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/templates.css +6 -0
  686. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/fileprogress.js +269 -0
  687. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/handlers.js +170 -0
  688. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/mootools-1.2.3-core-yc.js +356 -0
  689. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/querystring.js +40 -0
  690. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/swfupload.js +1 -0
  691. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/swfupload.queue.js +1 -0
  692. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/swfupload.swf +0 -0
  693. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/swfupload.swfobject.js +111 -0
  694. data/lib/generators/ckeditor/base/templates/ckeditor/themes/default/theme.js +8 -0
  695. data/lib/generators/ckeditor/migration/USAGE +12 -0
  696. data/lib/generators/ckeditor/migration/migration_generator.rb +46 -0
  697. data/lib/generators/ckeditor/migration/templates/models/attachment_fu/asset.rb +32 -0
  698. data/lib/generators/ckeditor/migration/templates/models/attachment_fu/attachment_file.rb +24 -0
  699. data/lib/generators/ckeditor/migration/templates/models/attachment_fu/migration.rb +30 -0
  700. data/lib/generators/ckeditor/migration/templates/models/attachment_fu/picture.rb +25 -0
  701. data/lib/generators/ckeditor/migration/templates/models/paperclip/asset.rb +97 -0
  702. data/lib/generators/ckeditor/migration/templates/models/paperclip/attachment_file.rb +40 -0
  703. data/lib/generators/ckeditor/migration/templates/models/paperclip/migration.rb +31 -0
  704. data/lib/generators/ckeditor/migration/templates/models/paperclip/picture.rb +23 -0
  705. data/lib/tasks/ckeditor_tasks.rake +3 -0
  706. metadata +790 -0
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <!--
3
+ Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
4
+ For licensing, see LICENSE.html or http://ckeditor.com/license
5
+ -->
6
+ <html>
7
+ <head>
8
+ <title></title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
10
+ <script type="text/javascript">
11
+
12
+ function gup( name )
13
+ {
14
+ name = name.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ) ;
15
+ var regexS = '[\\?&]' + name + '=([^&#]*)' ;
16
+ var regex = new RegExp( regexS ) ;
17
+ var results = regex.exec( window.location.href ) ;
18
+
19
+ if ( results )
20
+ return results[ 1 ] ;
21
+ else
22
+ return '' ;
23
+ }
24
+
25
+ var interval;
26
+
27
+ function sendData2Master()
28
+ {
29
+ var destination = window.parent.parent ;
30
+ try
31
+ {
32
+ if ( destination.XDTMaster )
33
+ {
34
+ var t = destination.XDTMaster.read( [ gup( 'cmd' ), gup( 'data' ) ] ) ;
35
+ window.clearInterval( interval ) ;
36
+ }
37
+ }
38
+ catch (e) {}
39
+ }
40
+
41
+ function onLoad()
42
+ {
43
+ interval = window.setInterval( sendData2Master, 100 );
44
+ }
45
+
46
+ </script>
47
+ </head>
48
+ <body onload="onLoad()"><p></p></body>
49
+ </html>
@@ -0,0 +1,52 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
2
+ <!--
3
+ Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
4
+ For licensing, see LICENSE.html or http://ckeditor.com/license
5
+ -->
6
+ <html>
7
+ <head>
8
+ <title></title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
10
+ <script type="text/javascript">
11
+
12
+ function doLoadScript( url )
13
+ {
14
+ if ( !url )
15
+ return false ;
16
+
17
+ var s = document.createElement( "script" ) ;
18
+ s.type = "text/javascript" ;
19
+ s.src = url ;
20
+ document.getElementsByTagName( "head" )[ 0 ].appendChild( s ) ;
21
+
22
+ return true ;
23
+ }
24
+
25
+ var opener;
26
+ function tryLoad()
27
+ {
28
+ opener = window.parent;
29
+
30
+ // get access to global parameters
31
+ var oParams = window.opener.oldFramesetPageParams;
32
+
33
+ // make frameset rows string prepare
34
+ var sFramesetRows = ( parseInt( oParams.firstframeh, 10 ) || '30') + ",*," + ( parseInt( oParams.thirdframeh, 10 ) || '150' ) + ',0' ;
35
+ document.getElementById( 'itFrameset' ).rows = sFramesetRows ;
36
+
37
+ // dynamic including init frames and crossdomain transport code
38
+ // from config sproxy_js_frameset url
39
+ var addScriptUrl = oParams.sproxy_js_frameset ;
40
+ doLoadScript( addScriptUrl ) ;
41
+ }
42
+
43
+ </script>
44
+ </head>
45
+
46
+ <frameset id="itFrameset" onload="tryLoad();" border="0" rows="30,*,*,0">
47
+ <frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="0" marginwidth="2" src="" name="navbar"></frame>
48
+ <frame scrolling="auto" framespacing="0" frameborder="0" noresize="noresize" marginheight="0" marginwidth="0" src="" name="mid"></frame>
49
+ <frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="1" marginwidth="1" src="" name="bot"></frame>
50
+ <frame scrolling="no" framespacing="0" frameborder="0" noresize="noresize" marginheight="1" marginwidth="1" src="" name="spellsuggestall"></frame>
51
+ </frameset>
52
+ </html>
@@ -0,0 +1,82 @@
1
+ /*
2
+ Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ html, body
7
+ {
8
+ background-color: transparent;
9
+ margin: 0px;
10
+ padding: 0px;
11
+ }
12
+
13
+ body
14
+ {
15
+ padding: 10px;
16
+ }
17
+
18
+ body, td, input, select, textarea
19
+ {
20
+ font-size: 11px;
21
+ font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana;
22
+ }
23
+
24
+ .midtext
25
+ {
26
+ padding:0px;
27
+ margin:10px;
28
+ }
29
+
30
+ .midtext p
31
+ {
32
+ padding:0px;
33
+ margin:10px;
34
+ }
35
+
36
+ .Button
37
+ {
38
+ border: #737357 1px solid;
39
+ color: #3b3b1f;
40
+ background-color: #c7c78f;
41
+ }
42
+
43
+ .PopupTabArea
44
+ {
45
+ color: #737357;
46
+ background-color: #e3e3c7;
47
+ }
48
+
49
+ .PopupTitleBorder
50
+ {
51
+ border-bottom: #d5d59d 1px solid;
52
+ }
53
+ .PopupTabEmptyArea
54
+ {
55
+ padding-left: 10px;
56
+ border-bottom: #d5d59d 1px solid;
57
+ }
58
+
59
+ .PopupTab, .PopupTabSelected
60
+ {
61
+ border-right: #d5d59d 1px solid;
62
+ border-top: #d5d59d 1px solid;
63
+ border-left: #d5d59d 1px solid;
64
+ padding: 3px 5px 3px 5px;
65
+ color: #737357;
66
+ }
67
+
68
+ .PopupTab
69
+ {
70
+ margin-top: 1px;
71
+ border-bottom: #d5d59d 1px solid;
72
+ cursor: pointer;
73
+ }
74
+
75
+ .PopupTabSelected
76
+ {
77
+ font-weight: bold;
78
+ cursor: default;
79
+ padding-top: 4px;
80
+ border-bottom: #f1f1e3 1px solid;
81
+ background-color: #f1f1e3;
82
+ }
@@ -0,0 +1,191 @@
1
+ /*
2
+ Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.dialog.add( 'checkspell', function( editor )
7
+ {
8
+ var number = CKEDITOR.tools.getNextNumber(),
9
+ iframeId = 'cke_frame_' + number,
10
+ textareaId = 'cke_data_' + number,
11
+ errorBoxId = 'cke_error_' + number,
12
+ interval,
13
+ protocol = document.location.protocol || 'http:',
14
+ errorMsg = editor.lang.spellCheck.notAvailable;
15
+
16
+ var pasteArea = '<textarea'+
17
+ ' style="display: none"' +
18
+ ' id="' + textareaId + '"' +
19
+ ' rows="10"' +
20
+ ' cols="40">' +
21
+ ' </textarea><div' +
22
+ ' id="' + errorBoxId + '"' +
23
+ ' style="display:none;color:red;font-size:16px;font-weight:bold;padding-top:160px;text-align:center;z-index:11;">' +
24
+ '</div><iframe' +
25
+ ' src=""' +
26
+ ' style="width:100%;background-color:#f1f1e3;"' +
27
+ ' frameborder="0"' +
28
+ ' name="' + iframeId + '"' +
29
+ ' id="' + iframeId + '"' +
30
+ ' allowtransparency="1">' +
31
+ '</iframe>';
32
+
33
+ var wscCoreUrl = editor.config.wsc_customLoaderScript || ( protocol +
34
+ '//loader.spellchecker.net/sproxy_fck/sproxy.php'
35
+ + '?plugin=fck2'
36
+ + '&customerid=' + editor.config.wsc_customerId
37
+ + '&cmd=script&doc=wsc&schema=22'
38
+ );
39
+
40
+ if ( editor.config.wsc_customLoaderScript )
41
+ errorMsg += '<p style="color:#000;font-size:11px;font-weight: normal;text-align:center;padding-top:10px">' +
42
+ editor.lang.spellCheck.errorLoading.replace( /%s/g, editor.config.wsc_customLoaderScript ) + '</p>';
43
+
44
+ function burnSpelling( dialog, errorMsg )
45
+ {
46
+ var i = 0;
47
+ return function ()
48
+ {
49
+ if ( typeof( window.doSpell ) == 'function' )
50
+ {
51
+ //Call from window.setInteval expected at once.
52
+ if ( typeof( interval ) != 'undefined' )
53
+ window.clearInterval( interval );
54
+
55
+ initAndSpell( dialog );
56
+ }
57
+ else if ( i++ == 180 ) // Timeout: 180 * 250ms = 45s.
58
+ window._cancelOnError( errorMsg );
59
+ };
60
+ }
61
+
62
+ window._cancelOnError = function( m )
63
+ {
64
+ if ( typeof( window.WSC_Error ) == 'undefined' )
65
+ {
66
+ CKEDITOR.document.getById( iframeId ).setStyle( 'display', 'none' );
67
+ var errorBox = CKEDITOR.document.getById( errorBoxId );
68
+ errorBox.setStyle( 'display', 'block' );
69
+ errorBox.setHtml( m || editor.lang.spellCheck.notAvailable );
70
+ }
71
+ };
72
+
73
+ function initAndSpell( dialog )
74
+ {
75
+ var LangComparer = new window._SP_FCK_LangCompare(), // Language abbr standarts comparer.
76
+ pluginPath = CKEDITOR.getUrl( editor.plugins.wsc.path + 'dialogs/' ), // Service paths corecting/preparing.
77
+ framesetPath = pluginPath + 'tmpFrameset.html';
78
+
79
+ // global var is used in FCK specific core
80
+ // change on equal var used in fckplugin.js
81
+ window.gFCKPluginName = 'wsc';
82
+
83
+ LangComparer.setDefaulLangCode( editor.config.defaultLanguage );
84
+
85
+ window.doSpell({
86
+ ctrl : textareaId,
87
+
88
+ lang : editor.config.wsc_lang || LangComparer.getSPLangCode(editor.langCode ),
89
+ intLang: editor.config.wsc_uiLang || LangComparer.getSPLangCode(editor.langCode ),
90
+ winType : iframeId, // If not defined app will run on winpopup.
91
+
92
+ // Callback binding section.
93
+ onCancel : function()
94
+ {
95
+ dialog.hide();
96
+ },
97
+ onFinish : function( dT )
98
+ {
99
+ editor.focus();
100
+ dialog.getParentEditor().setData( dT.value );
101
+ dialog.hide();
102
+ },
103
+
104
+ // Some manipulations with client static pages.
105
+ staticFrame : framesetPath,
106
+ framesetPath : framesetPath,
107
+ iframePath : pluginPath + 'ciframe.html',
108
+
109
+ // Styles defining.
110
+ schemaURI : pluginPath + 'wsc.css',
111
+
112
+ userDictionaryName: editor.config.wsc_userDictionaryName,
113
+ customDictionaryName: editor.config.wsc_customDictionaryIds && editor.config.wsc_customDictionaryIds.split(","),
114
+ domainName: editor.config.wsc_domainName
115
+
116
+ });
117
+
118
+ // Hide user message console (if application was loaded more then after timeout).
119
+ CKEDITOR.document.getById( errorBoxId ).setStyle( 'display', 'none' );
120
+ CKEDITOR.document.getById( iframeId ).setStyle( 'display', 'block' );
121
+ }
122
+
123
+ return {
124
+ title : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title,
125
+ minWidth : 485,
126
+ minHeight : 380,
127
+ buttons : [ CKEDITOR.dialog.cancelButton ],
128
+ onShow : function()
129
+ {
130
+ var contentArea = this.getContentElement( 'general', 'content' ).getElement();
131
+ contentArea.setHtml( pasteArea );
132
+ contentArea.getChild( 2 ).setStyle( 'height', this._.contentSize.height + 'px' );
133
+
134
+ if ( typeof( window.doSpell ) != 'function' )
135
+ {
136
+ // Load script.
137
+ CKEDITOR.document.getHead().append(
138
+ CKEDITOR.document.createElement( 'script',
139
+ {
140
+ attributes :
141
+ {
142
+ type : 'text/javascript',
143
+ src : wscCoreUrl
144
+ }
145
+ })
146
+ );
147
+ }
148
+
149
+ var sData = editor.getData(); // Get the data to be checked.
150
+ CKEDITOR.document.getById( textareaId ).setValue( sData );
151
+
152
+ interval = window.setInterval( burnSpelling( this, errorMsg ), 250 );
153
+ },
154
+ onHide : function()
155
+ {
156
+ window.ooo = undefined;
157
+ window.int_framsetLoaded = undefined;
158
+ window.framesetLoaded = undefined;
159
+ window.is_window_opened = false;
160
+ },
161
+ contents : [
162
+ {
163
+ id : 'general',
164
+ label : editor.config.wsc_dialogTitle || editor.lang.spellCheck.title,
165
+ padding : 0,
166
+ elements : [
167
+ {
168
+ type : 'html',
169
+ id : 'content',
170
+ html : ''
171
+ }
172
+ ]
173
+ }
174
+ ]
175
+ };
176
+ });
177
+
178
+ // Expand the spell-check frame when dialog resized. (#6829)
179
+ CKEDITOR.dialog.on( 'resize', function( evt )
180
+ {
181
+ var data = evt.data,
182
+ dialog = data.dialog;
183
+
184
+ if ( dialog._.name == 'checkspell' )
185
+ {
186
+ var content = dialog.getContentElement( 'general', 'content' ).getElement(),
187
+ iframe = content && content.getChild( 2 );
188
+
189
+ iframe && iframe.setStyle( 'height', data.height + 'px' );
190
+ }
191
+ });
@@ -0,0 +1,33 @@
1
+ /*
2
+ Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ /**
7
+ * @file Spell checker
8
+ */
9
+
10
+ // Register a plugin named "wsc".
11
+ CKEDITOR.plugins.add( 'wsc',
12
+ {
13
+ requires : [ 'dialog' ],
14
+ init : function( editor )
15
+ {
16
+ var commandName = 'checkspell';
17
+
18
+ var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) );
19
+
20
+ // SpellChecker doesn't work in Opera and with custom domain
21
+ command.modes = { wysiwyg : ( !CKEDITOR.env.opera && !CKEDITOR.env.air && document.domain == window.location.hostname ) };
22
+
23
+ editor.ui.addButton( 'SpellChecker',
24
+ {
25
+ label : editor.lang.spellCheck.toolbar,
26
+ command : commandName
27
+ });
28
+ CKEDITOR.dialog.add( commandName, this.path + 'dialogs/wsc.js' );
29
+ }
30
+ });
31
+
32
+ CKEDITOR.config.wsc_customerId = CKEDITOR.config.wsc_customerId || '1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk' ;
33
+ CKEDITOR.config.wsc_customLoaderScript = CKEDITOR.config.wsc_customLoaderScript || null;
@@ -0,0 +1,1224 @@
1
+ /*
2
+ Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ /**
7
+ * @fileOverview The "wysiwygarea" plugin. It registers the "wysiwyg" editing
8
+ * mode, which handles the main editing area space.
9
+ */
10
+
11
+ (function()
12
+ {
13
+ // List of elements in which has no way to move editing focus outside.
14
+ var nonExitableElementNames = { table:1,pre:1 };
15
+
16
+ // Matching an empty paragraph at the end of document.
17
+ var emptyParagraphRegexp = /(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi;
18
+
19
+ var notWhitespaceEval = CKEDITOR.dom.walker.whitespaces( true );
20
+
21
+ // Elements that could have empty new line around, including table, pre-formatted block, hr, page-break. (#6554)
22
+ function nonExitable( element )
23
+ {
24
+ return ( element.getName() in nonExitableElementNames )
25
+ || element.isBlockBoundary() && CKEDITOR.dtd.$empty[ element.getName() ];
26
+ }
27
+
28
+ function checkReadOnly( selection )
29
+ {
30
+ if ( selection.getType() == CKEDITOR.SELECTION_ELEMENT )
31
+ return selection.getSelectedElement().isReadOnly();
32
+ else
33
+ return selection.getCommonAncestor().isReadOnly();
34
+ }
35
+
36
+
37
+ function onInsert( insertFunc )
38
+ {
39
+ return function( evt )
40
+ {
41
+ if ( this.mode == 'wysiwyg' )
42
+ {
43
+ this.focus();
44
+
45
+ var selection = this.getSelection();
46
+ if ( checkReadOnly( selection ) )
47
+ return;
48
+
49
+ this.fire( 'saveSnapshot' );
50
+
51
+ insertFunc.call( this, evt.data );
52
+
53
+ // Save snaps after the whole execution completed.
54
+ // This's a workaround for make DOM modification's happened after
55
+ // 'insertElement' to be included either, e.g. Form-based dialogs' 'commitContents'
56
+ // call.
57
+ CKEDITOR.tools.setTimeout( function()
58
+ {
59
+ this.fire( 'saveSnapshot' );
60
+ }, 0, this );
61
+ }
62
+ };
63
+ }
64
+
65
+ function doInsertHtml( data )
66
+ {
67
+ if ( this.dataProcessor )
68
+ data = this.dataProcessor.toHtml( data );
69
+
70
+ var selection = this.getSelection();
71
+ if ( CKEDITOR.env.ie )
72
+ {
73
+ var selIsLocked = selection.isLocked;
74
+
75
+ if ( selIsLocked )
76
+ selection.unlock();
77
+
78
+ var $sel = selection.getNative();
79
+
80
+ // Delete control selections to avoid IE bugs on pasteHTML.
81
+ if ( $sel.type == 'Control' )
82
+ $sel.clear();
83
+ else if ( selection.getType() == CKEDITOR.SELECTION_TEXT )
84
+ {
85
+ // Due to IE bugs on handling contenteditable=false blocks
86
+ // (#6005), we need to make some checks and eventually
87
+ // delete the selection first.
88
+
89
+ var range = selection.getRanges()[0],
90
+ endContainer = range && range.endContainer;
91
+
92
+ if ( endContainer &&
93
+ endContainer.type == CKEDITOR.NODE_ELEMENT &&
94
+ endContainer.getAttribute( 'contenteditable' ) == 'false' &&
95
+ range.checkBoundaryOfElement( endContainer, CKEDITOR.END ) )
96
+ {
97
+ range.setEndAfter( range.endContainer );
98
+ range.deleteContents();
99
+ }
100
+ }
101
+
102
+ try
103
+ {
104
+ $sel.createRange().pasteHTML( data );
105
+ }
106
+ catch (e) {}
107
+
108
+ if ( selIsLocked )
109
+ this.getSelection().lock();
110
+ }
111
+ else
112
+ this.document.$.execCommand( 'inserthtml', false, data );
113
+
114
+ // Webkit does not scroll to the cursor position after pasting (#5558)
115
+ if ( CKEDITOR.env.webkit )
116
+ {
117
+ selection = this.getSelection();
118
+ selection.scrollIntoView();
119
+ }
120
+ }
121
+
122
+ function doInsertText( text )
123
+ {
124
+ var selection = this.getSelection(),
125
+ mode = selection.getStartElement().hasAscendant( 'pre', true ) ?
126
+ CKEDITOR.ENTER_BR : this.config.enterMode,
127
+ isEnterBrMode = mode == CKEDITOR.ENTER_BR;
128
+
129
+ var html = CKEDITOR.tools.htmlEncode( text.replace( /\r\n|\r/g, '\n' ) );
130
+
131
+ // Convert leading and trailing whitespaces into &nbsp;
132
+ html = html.replace( /^[ \t]+|[ \t]+$/g, function( match, offset, s )
133
+ {
134
+ if ( match.length == 1 ) // one space, preserve it
135
+ return '&nbsp;';
136
+ else if ( !offset ) // beginning of block
137
+ return CKEDITOR.tools.repeat( '&nbsp;', match.length - 1 ) + ' ';
138
+ else // end of block
139
+ return ' ' + CKEDITOR.tools.repeat( '&nbsp;', match.length - 1 );
140
+ } );
141
+
142
+ // Convert subsequent whitespaces into &nbsp;
143
+ html = html.replace( /[ \t]{2,}/g, function ( match )
144
+ {
145
+ return CKEDITOR.tools.repeat( '&nbsp;', match.length - 1 ) + ' ';
146
+ } );
147
+
148
+ var paragraphTag = mode == CKEDITOR.ENTER_P ? 'p' : 'div';
149
+
150
+ // Two line-breaks create one paragraph.
151
+ if ( !isEnterBrMode )
152
+ {
153
+ html = html.replace( /(\n{2})([\s\S]*?)(?:$|\1)/g,
154
+ function( match, group1, text )
155
+ {
156
+ return '<'+paragraphTag + '>' + text + '</' + paragraphTag + '>';
157
+ });
158
+ }
159
+
160
+ // One <br> per line-break.
161
+ html = html.replace( /\n/g, '<br>' );
162
+
163
+ // Compensate padding <br> for non-IE.
164
+ if ( !( isEnterBrMode || CKEDITOR.env.ie ) )
165
+ {
166
+ html = html.replace( new RegExp( '<br>(?=</' + paragraphTag + '>)' ), function( match )
167
+ {
168
+ return CKEDITOR.tools.repeat( match, 2 );
169
+ } );
170
+ }
171
+
172
+ // Inline styles have to be inherited in Firefox.
173
+ if ( CKEDITOR.env.gecko || CKEDITOR.env.webkit )
174
+ {
175
+ var path = new CKEDITOR.dom.elementPath( selection.getStartElement() ),
176
+ context = [];
177
+
178
+ for ( var i = 0; i < path.elements.length; i++ )
179
+ {
180
+ var tag = path.elements[ i ].getName();
181
+ if ( tag in CKEDITOR.dtd.$inline )
182
+ context.unshift( path.elements[ i ].getOuterHtml().match( /^<.*?>/) );
183
+ else if ( tag in CKEDITOR.dtd.$block )
184
+ break;
185
+ }
186
+
187
+ // Reproduce the context by preceding the pasted HTML with opening inline tags.
188
+ html = context.join( '' ) + html;
189
+ }
190
+
191
+ doInsertHtml.call( this, html );
192
+ }
193
+
194
+ function doInsertElement( element )
195
+ {
196
+ var selection = this.getSelection(),
197
+ ranges = selection.getRanges(),
198
+ elementName = element.getName(),
199
+ isBlock = CKEDITOR.dtd.$block[ elementName ];
200
+
201
+ var selIsLocked = selection.isLocked;
202
+
203
+ if ( selIsLocked )
204
+ selection.unlock();
205
+
206
+ var range, clone, lastElement, bookmark;
207
+
208
+ for ( var i = ranges.length - 1 ; i >= 0 ; i-- )
209
+ {
210
+ range = ranges[ i ];
211
+
212
+ // Remove the original contents.
213
+ range.deleteContents();
214
+
215
+ clone = !i && element || element.clone( 1 );
216
+
217
+ // If we're inserting a block at dtd-violated position, split
218
+ // the parent blocks until we reach blockLimit.
219
+ var current, dtd;
220
+ if ( isBlock )
221
+ {
222
+ while ( ( current = range.getCommonAncestor( 0, 1 ) )
223
+ && ( dtd = CKEDITOR.dtd[ current.getName() ] )
224
+ && !( dtd && dtd [ elementName ] ) )
225
+ {
226
+ // Split up inline elements.
227
+ if ( current.getName() in CKEDITOR.dtd.span )
228
+ range.splitElement( current );
229
+ // If we're in an empty block which indicate a new paragraph,
230
+ // simply replace it with the inserting block.(#3664)
231
+ else if ( range.checkStartOfBlock()
232
+ && range.checkEndOfBlock() )
233
+ {
234
+ range.setStartBefore( current );
235
+ range.collapse( true );
236
+ current.remove();
237
+ }
238
+ else
239
+ range.splitBlock();
240
+ }
241
+ }
242
+
243
+ // Insert the new node.
244
+ range.insertNode( clone );
245
+
246
+ // Save the last element reference so we can make the
247
+ // selection later.
248
+ if ( !lastElement )
249
+ lastElement = clone;
250
+ }
251
+
252
+ range.moveToPosition( lastElement, CKEDITOR.POSITION_AFTER_END );
253
+
254
+ // If we're inserting a block element immediatelly followed by
255
+ // another block element, the selection must move there. (#3100,#5436)
256
+ if ( isBlock )
257
+ {
258
+ var next = lastElement.getNext( notWhitespaceEval ),
259
+ nextName = next && next.type == CKEDITOR.NODE_ELEMENT && next.getName();
260
+
261
+ // Check if it's a block element that accepts text.
262
+ if ( nextName && CKEDITOR.dtd.$block[ nextName ] && CKEDITOR.dtd[ nextName ]['#'] )
263
+ range.moveToElementEditStart( next );
264
+ }
265
+
266
+ selection.selectRanges( [ range ] );
267
+
268
+ if ( selIsLocked )
269
+ this.getSelection().lock();
270
+ }
271
+
272
+ // DOM modification here should not bother dirty flag.(#4385)
273
+ function restoreDirty( editor )
274
+ {
275
+ if ( !editor.checkDirty() )
276
+ setTimeout( function(){ editor.resetDirty(); }, 0 );
277
+ }
278
+
279
+ var isNotWhitespace = CKEDITOR.dom.walker.whitespaces( true ),
280
+ isNotBookmark = CKEDITOR.dom.walker.bookmark( false, true );
281
+
282
+ function isNotEmpty( node )
283
+ {
284
+ return isNotWhitespace( node ) && isNotBookmark( node );
285
+ }
286
+
287
+ function isNbsp( node )
288
+ {
289
+ return node.type == CKEDITOR.NODE_TEXT
290
+ && CKEDITOR.tools.trim( node.getText() ).match( /^(?:&nbsp;|\xa0)$/ );
291
+ }
292
+
293
+ function restoreSelection( selection )
294
+ {
295
+ if ( selection.isLocked )
296
+ {
297
+ selection.unlock();
298
+ setTimeout( function() { selection.lock(); }, 0 );
299
+ }
300
+ }
301
+
302
+ function isBlankParagraph( block )
303
+ {
304
+ return block.getOuterHtml().match( emptyParagraphRegexp );
305
+ }
306
+
307
+ isNotWhitespace = CKEDITOR.dom.walker.whitespaces( true );
308
+
309
+ // Gecko need a key event to 'wake up' the editing
310
+ // ability when document is empty.(#3864, #5781)
311
+ function activateEditing( editor )
312
+ {
313
+ var win = editor.window,
314
+ doc = editor.document,
315
+ body = editor.document.getBody(),
316
+ bodyChildsNum = body.getChildren().count();
317
+
318
+ if ( !bodyChildsNum || ( bodyChildsNum == 1&& body.getFirst().hasAttribute( '_moz_editor_bogus_node' ) ) )
319
+ {
320
+ restoreDirty( editor );
321
+
322
+ // Memorize scroll position to restore it later (#4472).
323
+ var hostDocument = editor.element.getDocument();
324
+ var hostDocumentElement = hostDocument.getDocumentElement();
325
+ var scrollTop = hostDocumentElement.$.scrollTop;
326
+ var scrollLeft = hostDocumentElement.$.scrollLeft;
327
+
328
+ // Simulating keyboard character input by dispatching a keydown of white-space text.
329
+ var keyEventSimulate = doc.$.createEvent( "KeyEvents" );
330
+ keyEventSimulate.initKeyEvent( 'keypress', true, true, win.$, false,
331
+ false, false, false, 0, 32 );
332
+ doc.$.dispatchEvent( keyEventSimulate );
333
+
334
+ if ( scrollTop != hostDocumentElement.$.scrollTop || scrollLeft != hostDocumentElement.$.scrollLeft )
335
+ hostDocument.getWindow().$.scrollTo( scrollLeft, scrollTop );
336
+
337
+ // Restore the original document status by placing the cursor before a bogus br created (#5021).
338
+ bodyChildsNum && body.getFirst().remove();
339
+ doc.getBody().appendBogus();
340
+ var nativeRange = new CKEDITOR.dom.range( doc );
341
+ nativeRange.setStartAt( body , CKEDITOR.POSITION_AFTER_START );
342
+ nativeRange.select();
343
+ }
344
+ }
345
+
346
+ /**
347
+ * Auto-fixing block-less content by wrapping paragraph (#3190), prevent
348
+ * non-exitable-block by padding extra br.(#3189)
349
+ */
350
+ function onSelectionChangeFixBody( evt )
351
+ {
352
+ var editor = evt.editor,
353
+ path = evt.data.path,
354
+ blockLimit = path.blockLimit,
355
+ selection = evt.data.selection,
356
+ range = selection.getRanges()[0],
357
+ body = editor.document.getBody(),
358
+ enterMode = editor.config.enterMode;
359
+
360
+ CKEDITOR.env.gecko && activateEditing( editor );
361
+
362
+ // When enterMode set to block, we'll establing new paragraph only if we're
363
+ // selecting inline contents right under body. (#3657)
364
+ if ( enterMode != CKEDITOR.ENTER_BR
365
+ && range.collapsed
366
+ && blockLimit.getName() == 'body'
367
+ && !path.block )
368
+ {
369
+ editor.fire( 'updateSnapshot' );
370
+ restoreDirty( editor );
371
+ CKEDITOR.env.ie && restoreSelection( selection );
372
+
373
+ var fixedBlock = range.fixBlock( true,
374
+ editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' );
375
+
376
+ // For IE, we should remove any filler node which was introduced before.
377
+ if ( CKEDITOR.env.ie )
378
+ {
379
+ var first = fixedBlock.getFirst( isNotEmpty );
380
+ first && isNbsp( first ) && first.remove();
381
+ }
382
+
383
+ // If the fixed block is actually blank and is already followed by an exitable blank
384
+ // block, we should revert the fix and move into the existed one. (#3684)
385
+ if ( isBlankParagraph( fixedBlock ) )
386
+ {
387
+ var element = fixedBlock.getNext( isNotWhitespace );
388
+ if ( element &&
389
+ element.type == CKEDITOR.NODE_ELEMENT &&
390
+ !nonExitable( element ) )
391
+ {
392
+ range.moveToElementEditStart( element );
393
+ fixedBlock.remove();
394
+ }
395
+ else
396
+ {
397
+ element = fixedBlock.getPrevious( isNotWhitespace );
398
+ if ( element &&
399
+ element.type == CKEDITOR.NODE_ELEMENT &&
400
+ !nonExitable( element ) )
401
+ {
402
+ range.moveToElementEditEnd( element );
403
+ fixedBlock.remove();
404
+ }
405
+ }
406
+ }
407
+
408
+ range.select();
409
+ // Notify non-IE that selection has changed.
410
+ if ( !CKEDITOR.env.ie )
411
+ editor.selectionChange();
412
+ }
413
+
414
+ // All browsers are incapable to moving cursor out of certain non-exitable
415
+ // blocks (e.g. table, list, pre) at the end of document, make this happen by
416
+ // place a bogus node there, which would be later removed by dataprocessor.
417
+ var walkerRange = new CKEDITOR.dom.range( editor.document ),
418
+ walker = new CKEDITOR.dom.walker( walkerRange );
419
+ walkerRange.selectNodeContents( body );
420
+ walker.evaluator = function( node )
421
+ {
422
+ return node.type == CKEDITOR.NODE_ELEMENT && ( node.getName() in nonExitableElementNames );
423
+ };
424
+ walker.guard = function( node, isMoveout )
425
+ {
426
+ return !( ( node.type == CKEDITOR.NODE_TEXT && isNotWhitespace( node ) ) || isMoveout );
427
+ };
428
+
429
+ if ( walker.previous() )
430
+ {
431
+ editor.fire( 'updateSnapshot' );
432
+ restoreDirty( editor );
433
+ CKEDITOR.env.ie && restoreSelection( selection );
434
+
435
+ var paddingBlock;
436
+ if ( enterMode != CKEDITOR.ENTER_BR )
437
+ paddingBlock = body.append( new CKEDITOR.dom.element( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) );
438
+ else
439
+ paddingBlock = body;
440
+
441
+ if ( !CKEDITOR.env.ie )
442
+ paddingBlock.appendBogus();
443
+ }
444
+ }
445
+
446
+ CKEDITOR.plugins.add( 'wysiwygarea',
447
+ {
448
+ requires : [ 'editingblock' ],
449
+
450
+ init : function( editor )
451
+ {
452
+ var fixForBody = ( editor.config.enterMode != CKEDITOR.ENTER_BR )
453
+ ? editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' : false;
454
+
455
+ var frameLabel = editor.lang.editorTitle.replace( '%1', editor.name );
456
+
457
+ var contentDomReadyHandler;
458
+ editor.on( 'editingBlockReady', function()
459
+ {
460
+ var mainElement,
461
+ iframe,
462
+ isLoadingData,
463
+ isPendingFocus,
464
+ frameLoaded,
465
+ fireMode;
466
+
467
+
468
+ // Support for custom document.domain in IE.
469
+ var isCustomDomain = CKEDITOR.env.isCustomDomain();
470
+
471
+ // Creates the iframe that holds the editable document.
472
+ var createIFrame = function( data )
473
+ {
474
+ if ( iframe )
475
+ iframe.remove();
476
+
477
+ var src =
478
+ 'document.open();' +
479
+
480
+ // The document domain must be set any time we
481
+ // call document.open().
482
+ ( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) +
483
+
484
+ 'document.close();';
485
+
486
+ // With IE, the custom domain has to be taken care at first,
487
+ // for other browers, the 'src' attribute should be left empty to
488
+ // trigger iframe's 'load' event.
489
+ src =
490
+ CKEDITOR.env.air ?
491
+ 'javascript:void(0)' :
492
+ CKEDITOR.env.ie ?
493
+ 'javascript:void(function(){' + encodeURIComponent( src ) + '}())'
494
+ :
495
+ '';
496
+
497
+ iframe = CKEDITOR.dom.element.createFromHtml( '<iframe' +
498
+ ' style="width:100%;height:100%"' +
499
+ ' frameBorder="0"' +
500
+ ' title="' + frameLabel + '"' +
501
+ ' src="' + src + '"' +
502
+ ' tabIndex="' + ( CKEDITOR.env.webkit? -1 : editor.tabIndex ) + '"' +
503
+ ' allowTransparency="true"' +
504
+ '></iframe>' );
505
+
506
+ // Running inside of Firefox chrome the load event doesn't bubble like in a normal page (#5689)
507
+ if ( document.location.protocol == 'chrome:' )
508
+ CKEDITOR.event.useCapture = true;
509
+
510
+ // With FF, it's better to load the data on iframe.load. (#3894,#4058)
511
+ iframe.on( 'load', function( ev )
512
+ {
513
+ frameLoaded = 1;
514
+ ev.removeListener();
515
+
516
+ var doc = iframe.getFrameDocument();
517
+ doc.write( data );
518
+
519
+ CKEDITOR.env.air && contentDomReady( doc.getWindow().$ );
520
+ });
521
+
522
+ // Reset adjustment back to default (#5689)
523
+ if ( document.location.protocol == 'chrome:' )
524
+ CKEDITOR.event.useCapture = false;
525
+
526
+ // The container must be visible when creating the iframe in FF (#5956)
527
+ var element = editor.element,
528
+ isHidden = CKEDITOR.env.gecko && !element.isVisible(),
529
+ previousStyles = {};
530
+ if ( isHidden )
531
+ {
532
+ element.show();
533
+ previousStyles = {
534
+ position : element.getStyle( 'position' ),
535
+ top : element.getStyle( 'top' )
536
+ };
537
+ element.setStyles( { position : 'absolute', top : '-3000px' } );
538
+ }
539
+
540
+ mainElement.append( iframe );
541
+
542
+ if ( isHidden )
543
+ {
544
+ setTimeout( function()
545
+ {
546
+ element.hide();
547
+ element.setStyles( previousStyles );
548
+ }, 1000 );
549
+ }
550
+ };
551
+
552
+ // The script that launches the bootstrap logic on 'domReady', so the document
553
+ // is fully editable even before the editing iframe is fully loaded (#4455).
554
+ contentDomReadyHandler = CKEDITOR.tools.addFunction( contentDomReady );
555
+ var activationScript =
556
+ '<script id="cke_actscrpt" type="text/javascript" data-cke-temp="1">' +
557
+ ( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) +
558
+ 'window.parent.CKEDITOR.tools.callFunction( ' + contentDomReadyHandler + ', window );' +
559
+ '</script>';
560
+
561
+ // Editing area bootstrap code.
562
+ function contentDomReady( domWindow )
563
+ {
564
+ if ( !frameLoaded )
565
+ return;
566
+ frameLoaded = 0;
567
+
568
+ editor.fire( 'ariaWidget', iframe );
569
+
570
+ var domDocument = domWindow.document,
571
+ body = domDocument.body;
572
+
573
+ // Remove this script from the DOM.
574
+ var script = domDocument.getElementById( "cke_actscrpt" );
575
+ script && script.parentNode.removeChild( script );
576
+
577
+ body.spellcheck = !editor.config.disableNativeSpellChecker;
578
+
579
+ if ( CKEDITOR.env.ie )
580
+ {
581
+ // Don't display the focus border.
582
+ body.hideFocus = true;
583
+
584
+ // Disable and re-enable the body to avoid IE from
585
+ // taking the editing focus at startup. (#141 / #523)
586
+ body.disabled = true;
587
+ body.contentEditable = true;
588
+ body.removeAttribute( 'disabled' );
589
+ }
590
+ else
591
+ {
592
+ // Avoid opening design mode in a frame window thread,
593
+ // which will cause host page scrolling.(#4397)
594
+ setTimeout( function()
595
+ {
596
+ // Prefer 'contentEditable' instead of 'designMode'. (#3593)
597
+ if ( CKEDITOR.env.gecko && CKEDITOR.env.version >= 10900
598
+ || CKEDITOR.env.opera )
599
+ domDocument.$.body.contentEditable = true;
600
+ else if ( CKEDITOR.env.webkit )
601
+ domDocument.$.body.parentNode.contentEditable = true;
602
+ else
603
+ domDocument.$.designMode = 'on';
604
+ }, 0 );
605
+ }
606
+
607
+ CKEDITOR.env.gecko && CKEDITOR.tools.setTimeout( activateEditing, 0, null, editor );
608
+
609
+ domWindow = editor.window = new CKEDITOR.dom.window( domWindow );
610
+ domDocument = editor.document = new CKEDITOR.dom.document( domDocument );
611
+
612
+ domDocument.on( 'dblclick', function( evt )
613
+ {
614
+ var element = evt.data.getTarget(),
615
+ data = { element : element, dialog : '' };
616
+ editor.fire( 'doubleclick', data );
617
+ data.dialog && editor.openDialog( data.dialog );
618
+ });
619
+
620
+ // Gecko/Webkit need some help when selecting control type elements. (#3448)
621
+ if ( !( CKEDITOR.env.ie || CKEDITOR.env.opera ) )
622
+ {
623
+ domDocument.on( 'mousedown', function( ev )
624
+ {
625
+ var control = ev.data.getTarget();
626
+ if ( control.is( 'img', 'hr', 'input', 'textarea', 'select' ) )
627
+ editor.getSelection().selectElement( control );
628
+ } );
629
+ }
630
+
631
+ if ( CKEDITOR.env.gecko )
632
+ {
633
+ domDocument.on( 'mouseup', function( ev )
634
+ {
635
+ if ( ev.data.$.button == 2 )
636
+ {
637
+ var target = ev.data.getTarget();
638
+
639
+ // Prevent right click from selecting an empty block even
640
+ // when selection is anchored inside it. (#5845)
641
+ if ( !target.getOuterHtml().replace( emptyParagraphRegexp, '' ) )
642
+ {
643
+ var range = new CKEDITOR.dom.range( domDocument );
644
+ range.moveToElementEditStart( target );
645
+ range.select( true );
646
+ }
647
+ }
648
+ } );
649
+ }
650
+
651
+ // Prevent the browser opening links in read-only blocks. (#6032)
652
+ domDocument.on( 'click', function( ev )
653
+ {
654
+ ev = ev.data;
655
+ if ( ev.getTarget().is( 'a' ) && ev.$.button != 2 )
656
+ ev.preventDefault();
657
+ });
658
+
659
+ // Webkit: avoid from editing form control elements content.
660
+ if ( CKEDITOR.env.webkit )
661
+ {
662
+ // Prevent from tick checkbox/radiobox/select
663
+ domDocument.on( 'click', function( ev )
664
+ {
665
+ if ( ev.data.getTarget().is( 'input', 'select' ) )
666
+ ev.data.preventDefault();
667
+ } );
668
+
669
+ // Prevent from editig textfield/textarea value.
670
+ domDocument.on( 'mouseup', function( ev )
671
+ {
672
+ if ( ev.data.getTarget().is( 'input', 'textarea' ) )
673
+ ev.data.preventDefault();
674
+ } );
675
+ }
676
+
677
+ // IE standard compliant in editing frame doesn't focus the editor when
678
+ // clicking outside actual content, manually apply the focus. (#1659)
679
+ if ( CKEDITOR.env.ie
680
+ && domDocument.$.compatMode == 'CSS1Compat'
681
+ || CKEDITOR.env.gecko
682
+ || CKEDITOR.env.opera )
683
+ {
684
+ var htmlElement = domDocument.getDocumentElement();
685
+ htmlElement.on( 'mousedown', function( evt )
686
+ {
687
+ // Setting focus directly on editor doesn't work, we
688
+ // have to use here a temporary element to 'redirect'
689
+ // the focus.
690
+ if ( evt.data.getTarget().equals( htmlElement ) )
691
+ {
692
+ if ( CKEDITOR.env.gecko && CKEDITOR.env.version >= 10900 )
693
+ blinkCursor();
694
+ focusGrabber.focus();
695
+ }
696
+ } );
697
+ }
698
+
699
+ domWindow.on( 'blur', function()
700
+ {
701
+ editor.focusManager.blur();
702
+ });
703
+
704
+ var wasFocused;
705
+
706
+ domWindow.on( 'focus', function()
707
+ {
708
+ var doc = editor.document;
709
+
710
+ if ( CKEDITOR.env.gecko && CKEDITOR.env.version >= 10900 )
711
+ blinkCursor();
712
+ else if ( CKEDITOR.env.opera )
713
+ doc.getBody().focus();
714
+ // Webkit needs focus for the first time on the HTML element. (#6153)
715
+ else if ( CKEDITOR.env.webkit )
716
+ {
717
+ if ( !wasFocused )
718
+ {
719
+ editor.document.getDocumentElement().focus();
720
+ wasFocused = 1;
721
+ }
722
+ }
723
+
724
+ editor.focusManager.focus();
725
+ });
726
+
727
+ var keystrokeHandler = editor.keystrokeHandler;
728
+ if ( keystrokeHandler )
729
+ keystrokeHandler.attach( domDocument );
730
+
731
+ if ( CKEDITOR.env.ie )
732
+ {
733
+ domDocument.getDocumentElement().addClass( domDocument.$.compatMode );
734
+ // Override keystrokes which should have deletion behavior
735
+ // on control types in IE . (#4047)
736
+ domDocument.on( 'keydown', function( evt )
737
+ {
738
+ var keyCode = evt.data.getKeystroke();
739
+
740
+ // Backspace OR Delete.
741
+ if ( keyCode in { 8 : 1, 46 : 1 } )
742
+ {
743
+ var sel = editor.getSelection(),
744
+ control = sel.getSelectedElement();
745
+
746
+ if ( control )
747
+ {
748
+ // Make undo snapshot.
749
+ editor.fire( 'saveSnapshot' );
750
+
751
+ // Delete any element that 'hasLayout' (e.g. hr,table) in IE8 will
752
+ // break up the selection, safely manage it here. (#4795)
753
+ var bookmark = sel.getRanges()[ 0 ].createBookmark();
754
+ // Remove the control manually.
755
+ control.remove();
756
+ sel.selectBookmarks( [ bookmark ] );
757
+
758
+ editor.fire( 'saveSnapshot' );
759
+
760
+ evt.data.preventDefault();
761
+ }
762
+ }
763
+ } );
764
+
765
+ // PageUp/PageDown scrolling is broken in document
766
+ // with standard doctype, manually fix it. (#4736)
767
+ if ( domDocument.$.compatMode == 'CSS1Compat' )
768
+ {
769
+ var pageUpDownKeys = { 33 : 1, 34 : 1 };
770
+ domDocument.on( 'keydown', function( evt )
771
+ {
772
+ if ( evt.data.getKeystroke() in pageUpDownKeys )
773
+ {
774
+ setTimeout( function ()
775
+ {
776
+ editor.getSelection().scrollIntoView();
777
+ }, 0 );
778
+ }
779
+ } );
780
+ }
781
+ }
782
+
783
+ // Adds the document body as a context menu target.
784
+ if ( editor.contextMenu )
785
+ editor.contextMenu.addTarget( domDocument, editor.config.browserContextMenuOnCtrl !== false );
786
+
787
+ setTimeout( function()
788
+ {
789
+ editor.fire( 'contentDom' );
790
+
791
+ if ( fireMode )
792
+ {
793
+ editor.mode = 'wysiwyg';
794
+ editor.fire( 'mode' );
795
+ fireMode = false;
796
+ }
797
+
798
+ isLoadingData = false;
799
+
800
+ if ( isPendingFocus )
801
+ {
802
+ editor.focus();
803
+ isPendingFocus = false;
804
+ }
805
+ setTimeout( function()
806
+ {
807
+ editor.fire( 'dataReady' );
808
+ }, 0 );
809
+
810
+ // IE, Opera and Safari may not support it and throw errors.
811
+ try { editor.document.$.execCommand( 'enableObjectResizing', false, !editor.config.disableObjectResizing ) ; } catch(e) {}
812
+ try { editor.document.$.execCommand( 'enableInlineTableEditing', false, !editor.config.disableNativeTableHandles ) ; } catch(e) {}
813
+
814
+ /*
815
+ * IE BUG: IE might have rendered the iframe with invisible contents.
816
+ * (#3623). Push some inconsequential CSS style changes to force IE to
817
+ * refresh it.
818
+ *
819
+ * Also, for some unknown reasons, short timeouts (e.g. 100ms) do not
820
+ * fix the problem. :(
821
+ */
822
+ if ( CKEDITOR.env.ie )
823
+ {
824
+ setTimeout( function()
825
+ {
826
+ if ( editor.document )
827
+ {
828
+ var $body = editor.document.$.body;
829
+ $body.runtimeStyle.marginBottom = '0px';
830
+ $body.runtimeStyle.marginBottom = '';
831
+ }
832
+ }, 1000 );
833
+ }
834
+ },
835
+ 0 );
836
+ }
837
+
838
+ editor.addMode( 'wysiwyg',
839
+ {
840
+ load : function( holderElement, data, isSnapshot )
841
+ {
842
+ mainElement = holderElement;
843
+
844
+ if ( CKEDITOR.env.ie && CKEDITOR.env.quirks )
845
+ holderElement.setStyle( 'position', 'relative' );
846
+
847
+ // The editor data "may be dirty" after this
848
+ // point.
849
+ editor.mayBeDirty = true;
850
+
851
+ fireMode = true;
852
+
853
+ if ( isSnapshot )
854
+ this.loadSnapshotData( data );
855
+ else
856
+ this.loadData( data );
857
+ },
858
+
859
+ loadData : function( data )
860
+ {
861
+ isLoadingData = true;
862
+
863
+ var config = editor.config,
864
+ fullPage = config.fullPage,
865
+ docType = config.docType;
866
+
867
+ // Build the additional stuff to be included into <head>.
868
+ var headExtra =
869
+ '<style type="text/css" data-cke-temp="1">' +
870
+ editor._.styles.join( '\n' ) +
871
+ '</style>';
872
+
873
+ !fullPage && ( headExtra =
874
+ CKEDITOR.tools.buildStyleHtml( editor.config.contentsCss ) +
875
+ headExtra );
876
+
877
+ var baseTag = config.baseHref ? '<base href="' + config.baseHref + '" data-cke-temp="1" />' : '';
878
+
879
+ if ( fullPage )
880
+ {
881
+ // Search and sweep out the doctype declaration.
882
+ data = data.replace( /<!DOCTYPE[^>]*>/i, function( match )
883
+ {
884
+ editor.docType = docType = match;
885
+ return '';
886
+ });
887
+ }
888
+
889
+ // Get the HTML version of the data.
890
+ if ( editor.dataProcessor )
891
+ data = editor.dataProcessor.toHtml( data, fixForBody );
892
+
893
+ if ( fullPage )
894
+ {
895
+ // Check if the <body> tag is available.
896
+ if ( !(/<body[\s|>]/).test( data ) )
897
+ data = '<body>' + data;
898
+
899
+ // Check if the <html> tag is available.
900
+ if ( !(/<html[\s|>]/).test( data ) )
901
+ data = '<html>' + data + '</html>';
902
+
903
+ // Check if the <head> tag is available.
904
+ if ( !(/<head[\s|>]/).test( data ) )
905
+ data = data.replace( /<html[^>]*>/, '$&<head><title></title></head>' ) ;
906
+ else if ( !(/<title[\s|>]/).test( data ) )
907
+ data = data.replace( /<head[^>]*>/, '$&<title></title>' ) ;
908
+
909
+ // The base must be the first tag in the HEAD, e.g. to get relative
910
+ // links on styles.
911
+ baseTag && ( data = data.replace( /<head>/, '$&' + baseTag ) );
912
+
913
+ // Inject the extra stuff into <head>.
914
+ // Attention: do not change it before testing it well. (V2)
915
+ // This is tricky... if the head ends with <meta ... content type>,
916
+ // Firefox will break. But, it works if we place our extra stuff as
917
+ // the last elements in the HEAD.
918
+ data = data.replace( /<\/head\s*>/, headExtra + '$&' );
919
+
920
+ // Add the DOCTYPE back to it.
921
+ data = docType + data;
922
+ }
923
+ else
924
+ {
925
+ data =
926
+ config.docType +
927
+ '<html dir="' + config.contentsLangDirection + '"' +
928
+ ' lang="' + ( config.contentsLanguage || editor.langCode ) + '">' +
929
+ '<head>' +
930
+ '<title>' + frameLabel + '</title>' +
931
+ baseTag +
932
+ headExtra +
933
+ '</head>' +
934
+ '<body' + ( config.bodyId ? ' id="' + config.bodyId + '"' : '' ) +
935
+ ( config.bodyClass ? ' class="' + config.bodyClass + '"' : '' ) +
936
+ '>' +
937
+ data +
938
+ '</html>';
939
+ }
940
+
941
+ data += activationScript;
942
+
943
+
944
+ // The iframe is recreated on each call of setData, so we need to clear DOM objects
945
+ this.onDispose();
946
+ createIFrame( data );
947
+ },
948
+
949
+ getData : function()
950
+ {
951
+ var config = editor.config,
952
+ fullPage = config.fullPage,
953
+ docType = fullPage && editor.docType,
954
+ doc = iframe.getFrameDocument();
955
+
956
+ var data = fullPage
957
+ ? doc.getDocumentElement().getOuterHtml()
958
+ : doc.getBody().getHtml();
959
+
960
+ if ( editor.dataProcessor )
961
+ data = editor.dataProcessor.toDataFormat( data, fixForBody );
962
+
963
+ // Reset empty if the document contains only one empty paragraph.
964
+ if ( config.ignoreEmptyParagraph )
965
+ data = data.replace( emptyParagraphRegexp, function( match, lookback ) { return lookback; } );
966
+
967
+ if ( docType )
968
+ data = docType + '\n' + data;
969
+
970
+ return data;
971
+ },
972
+
973
+ getSnapshotData : function()
974
+ {
975
+ return iframe.getFrameDocument().getBody().getHtml();
976
+ },
977
+
978
+ loadSnapshotData : function( data )
979
+ {
980
+ iframe.getFrameDocument().getBody().setHtml( data );
981
+ },
982
+
983
+ onDispose : function()
984
+ {
985
+ if ( !editor.document )
986
+ return;
987
+
988
+ editor.document.getDocumentElement().clearCustomData();
989
+ editor.document.getBody().clearCustomData();
990
+
991
+ editor.window.clearCustomData();
992
+ editor.document.clearCustomData();
993
+
994
+ iframe.clearCustomData();
995
+
996
+ /*
997
+ * IE BUG: When destroying editor DOM with the selection remains inside
998
+ * editing area would break IE7/8's selection system, we have to put the editing
999
+ * iframe offline first. (#3812 and #5441)
1000
+ */
1001
+ iframe.remove();
1002
+ },
1003
+
1004
+ unload : function( holderElement )
1005
+ {
1006
+ this.onDispose();
1007
+
1008
+ editor.window = editor.document = iframe = mainElement = isPendingFocus = null;
1009
+
1010
+ editor.fire( 'contentDomUnload' );
1011
+ },
1012
+
1013
+ focus : function()
1014
+ {
1015
+ var win = editor.window;
1016
+
1017
+ if ( isLoadingData )
1018
+ isPendingFocus = true;
1019
+ // Temporary solution caused by #6025, supposed be unified by #6154.
1020
+ else if ( CKEDITOR.env.opera && editor.document )
1021
+ {
1022
+ // Required for Opera when switching focus
1023
+ // from another iframe, e.g. panels. (#6444)
1024
+ var iframe = editor.window.$.frameElement;
1025
+ iframe.blur(), iframe.focus();
1026
+ editor.document.getBody().focus();
1027
+
1028
+ editor.selectionChange();
1029
+ }
1030
+ else if ( !CKEDITOR.env.opera && win )
1031
+ {
1032
+ // AIR needs a while to focus when moving from a link.
1033
+ CKEDITOR.env.air ? setTimeout( function () { win.focus(); }, 0 ) : win.focus();
1034
+ editor.selectionChange();
1035
+ }
1036
+ }
1037
+ });
1038
+
1039
+ editor.on( 'insertHtml', onInsert( doInsertHtml ) , null, null, 20 );
1040
+ editor.on( 'insertElement', onInsert( doInsertElement ), null, null, 20 );
1041
+ editor.on( 'insertText', onInsert( doInsertText ), null, null, 20 );
1042
+ // Auto fixing on some document structure weakness to enhance usabilities. (#3190 and #3189)
1043
+ editor.on( 'selectionChange', onSelectionChangeFixBody, null, null, 1 );
1044
+ });
1045
+
1046
+ var titleBackup;
1047
+ // Setting voice label as window title, backup the original one
1048
+ // and restore it before running into use.
1049
+ editor.on( 'contentDom', function()
1050
+ {
1051
+ var title = editor.document.getElementsByTag( 'title' ).getItem( 0 );
1052
+ title.data( 'cke-title', editor.document.$.title );
1053
+ editor.document.$.title = frameLabel;
1054
+ });
1055
+
1056
+ // IE8 stricts mode doesn't have 'contentEditable' in effect
1057
+ // on element unless it has layout. (#5562)
1058
+ if ( CKEDITOR.env.ie8Compat )
1059
+ {
1060
+ editor.addCss( 'html.CSS1Compat [contenteditable=false]{ min-height:0 !important;}' );
1061
+
1062
+ var selectors = [];
1063
+ for ( var tag in CKEDITOR.dtd.$removeEmpty )
1064
+ selectors.push( 'html.CSS1Compat ' + tag + '[contenteditable=false]' );
1065
+ editor.addCss( selectors.join( ',' ) + '{ display:inline-block;}' );
1066
+ }
1067
+ // Set the HTML style to 100% to have the text cursor in affect (#6341)
1068
+ else if ( CKEDITOR.env.gecko )
1069
+ editor.addCss( 'html { height: 100% !important; }' );
1070
+
1071
+ // Switch on design mode for a short while and close it after then.
1072
+ function blinkCursor( retry )
1073
+ {
1074
+ CKEDITOR.tools.tryThese(
1075
+ function()
1076
+ {
1077
+ editor.document.$.designMode = 'on';
1078
+ setTimeout( function()
1079
+ {
1080
+ editor.document.$.designMode = 'off';
1081
+ if ( CKEDITOR.currentInstance == editor )
1082
+ editor.document.getBody().focus();
1083
+ }, 50 );
1084
+ },
1085
+ function()
1086
+ {
1087
+ // The above call is known to fail when parent DOM
1088
+ // tree layout changes may break design mode. (#5782)
1089
+ // Refresh the 'contentEditable' is a cue to this.
1090
+ editor.document.$.designMode = 'off';
1091
+ var body = editor.document.getBody();
1092
+ body.setAttribute( 'contentEditable', false );
1093
+ body.setAttribute( 'contentEditable', true );
1094
+ // Try it again once..
1095
+ !retry && blinkCursor( 1 );
1096
+ });
1097
+ }
1098
+
1099
+ // Create an invisible element to grab focus.
1100
+ if ( CKEDITOR.env.gecko || CKEDITOR.env.ie || CKEDITOR.env.opera )
1101
+ {
1102
+ var focusGrabber;
1103
+ editor.on( 'uiReady', function()
1104
+ {
1105
+ focusGrabber = editor.container.append( CKEDITOR.dom.element.createFromHtml(
1106
+ // Use 'span' instead of anything else to fly under the screen-reader radar. (#5049)
1107
+ '<span tabindex="-1" style="position:absolute;" role="presentation"></span>' ) );
1108
+
1109
+ focusGrabber.on( 'focus', function()
1110
+ {
1111
+ editor.focus();
1112
+ } );
1113
+ } );
1114
+ editor.on( 'destroy', function()
1115
+ {
1116
+ CKEDITOR.tools.removeFunction( contentDomReadyHandler );
1117
+ focusGrabber.clearCustomData();
1118
+ } );
1119
+ }
1120
+
1121
+ // Disable form elements editing mode provided by some browers. (#5746)
1122
+ editor.on( 'insertElement', function ( evt )
1123
+ {
1124
+ var element = evt.data;
1125
+ if ( element.type == CKEDITOR.NODE_ELEMENT
1126
+ && ( element.is( 'input' ) || element.is( 'textarea' ) ) )
1127
+ {
1128
+ if ( !element.isReadOnly() )
1129
+ {
1130
+ element.setAttribute( 'contentEditable', false );
1131
+ // We should flag that the element was locked by our code so
1132
+ // it'll be editable by the editor functions (#6046).
1133
+ element.setCustomData( '_cke_notReadOnly', 1 );
1134
+ }
1135
+ }
1136
+ });
1137
+
1138
+ }
1139
+ });
1140
+
1141
+ // Fixing Firefox 'Back-Forward Cache' break design mode. (#4514)
1142
+ if ( CKEDITOR.env.gecko )
1143
+ {
1144
+ (function()
1145
+ {
1146
+ var body = document.body;
1147
+
1148
+ if ( !body )
1149
+ window.addEventListener( 'load', arguments.callee, false );
1150
+ else
1151
+ {
1152
+ var currentHandler = body.getAttribute( 'onpageshow' );
1153
+ body.setAttribute( 'onpageshow', ( currentHandler ? currentHandler + ';' : '') +
1154
+ 'event.persisted && (function(){' +
1155
+ 'var allInstances = CKEDITOR.instances, editor, doc;' +
1156
+ 'for ( var i in allInstances )' +
1157
+ '{' +
1158
+ ' editor = allInstances[ i ];' +
1159
+ ' doc = editor.document;' +
1160
+ ' if ( doc )' +
1161
+ ' {' +
1162
+ ' doc.$.designMode = "off";' +
1163
+ ' doc.$.designMode = "on";' +
1164
+ ' }' +
1165
+ '}' +
1166
+ '})();' );
1167
+ }
1168
+ } )();
1169
+
1170
+ }
1171
+ })();
1172
+
1173
+ /**
1174
+ * Disables the ability of resize objects (image and tables) in the editing
1175
+ * area.
1176
+ * @type Boolean
1177
+ * @default false
1178
+ * @example
1179
+ * config.disableObjectResizing = true;
1180
+ */
1181
+ CKEDITOR.config.disableObjectResizing = false;
1182
+
1183
+ /**
1184
+ * Disables the "table tools" offered natively by the browser (currently
1185
+ * Firefox only) to make quick table editing operations, like adding or
1186
+ * deleting rows and columns.
1187
+ * @type Boolean
1188
+ * @default true
1189
+ * @example
1190
+ * config.disableNativeTableHandles = false;
1191
+ */
1192
+ CKEDITOR.config.disableNativeTableHandles = true;
1193
+
1194
+ /**
1195
+ * Disables the built-in spell checker while typing natively available in the
1196
+ * browser (currently Firefox and Safari only).<br /><br />
1197
+ *
1198
+ * Even if word suggestions will not appear in the CKEditor context menu, this
1199
+ * feature is useful to help quickly identifying misspelled words.<br /><br />
1200
+ *
1201
+ * This setting is currently compatible with Firefox only due to limitations in
1202
+ * other browsers.
1203
+ * @type Boolean
1204
+ * @default true
1205
+ * @example
1206
+ * config.disableNativeSpellChecker = false;
1207
+ */
1208
+ CKEDITOR.config.disableNativeSpellChecker = true;
1209
+
1210
+ /**
1211
+ * Whether the editor must output an empty value ("") if it's contents is made
1212
+ * by an empty paragraph only.
1213
+ * @type Boolean
1214
+ * @default true
1215
+ * @example
1216
+ * config.ignoreEmptyParagraph = false;
1217
+ */
1218
+ CKEDITOR.config.ignoreEmptyParagraph = true;
1219
+
1220
+ /**
1221
+ * Fired when data is loaded and ready for retrieval in an editor instance.
1222
+ * @name CKEDITOR.editor#dataReady
1223
+ * @event
1224
+ */