ckeditor 3.4.3 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (975) hide show
  1. data/CHANGELOG +15 -0
  2. data/README.rdoc +26 -47
  3. data/Rakefile +6 -5
  4. data/app/controllers/ckeditor/attachments_controller.rb +23 -0
  5. data/app/controllers/ckeditor/base_controller.rb +60 -0
  6. data/app/controllers/ckeditor/pictures_controller.rb +23 -0
  7. data/app/helpers/ckeditor/base_helper.rb +21 -0
  8. data/app/views/ckeditor/attachments/index.html.erb +91 -0
  9. data/app/views/ckeditor/pictures/index.html.erb +91 -0
  10. data/config/routes.rb +5 -4
  11. data/lib/ckeditor.rb +29 -26
  12. data/lib/ckeditor/engine.rb +21 -0
  13. data/lib/ckeditor/utils.rb +13 -6
  14. data/lib/ckeditor/version.rb +2 -2
  15. data/lib/generators/ckeditor/base/USAGE +7 -0
  16. data/lib/generators/ckeditor/base/base_generator.rb +20 -0
  17. data/lib/generators/ckeditor/base/templates/ckeditor.rb +54 -0
  18. data/lib/generators/ckeditor/base/templates/ckeditor/CHANGES.html +1063 -0
  19. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/INSTALL.html +0 -0
  20. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/LICENSE.html +0 -0
  21. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/application.xml +32 -0
  22. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/run.bat +9 -0
  23. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/run.sh +8 -0
  24. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/sample.html +45 -0
  25. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/ajax.html +0 -0
  26. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/api.html +174 -0
  27. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/api_dialog.html +0 -0
  28. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/api_dialog/my_dialog.js +0 -0
  29. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/advanced.asp +0 -0
  30. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/events.asp +0 -0
  31. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/index.html +0 -0
  32. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/replace.asp +0 -0
  33. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/replaceall.asp +0 -0
  34. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/sample_posteddata.asp +0 -0
  35. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/asp/standalone.asp +0 -0
  36. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/assets/output_for_flash.fla +0 -0
  37. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/assets/output_for_flash.swf +0 -0
  38. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/assets/output_xhtml.css +0 -0
  39. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/assets/swfobject.js +0 -0
  40. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/autogrow.html +0 -0
  41. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/divreplace.html +0 -0
  42. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/enterkey.html +0 -0
  43. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/fullpage.html +0 -0
  44. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/index.html +58 -0
  45. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/jqueryadapter.html +0 -0
  46. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/output_for_flash.html +0 -0
  47. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/output_html.html +0 -0
  48. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/output_xhtml.html +0 -0
  49. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/php/advanced.php +0 -0
  50. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/php/events.php +0 -0
  51. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/php/replace.php +0 -0
  52. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/php/replaceall.php +0 -0
  53. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/php/standalone.php +0 -0
  54. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/placeholder.html +62 -0
  55. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/replacebyclass.html +0 -0
  56. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/replacebycode.html +0 -0
  57. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/sample.css +0 -0
  58. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/sample.js +0 -0
  59. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/sample_posteddata.php +0 -0
  60. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/sharedspaces.html +0 -0
  61. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/skins.html +0 -0
  62. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/ui_color.html +0 -0
  63. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_samples/ui_languages.html +0 -0
  64. data/lib/generators/ckeditor/base/templates/ckeditor/_source/adapters/jquery.js +300 -0
  65. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/_bootstrap.js +0 -0
  66. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/ajax.js +0 -0
  67. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/ckeditor.js +0 -0
  68. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ckeditor_base.js +196 -0
  69. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/ckeditor_basic.js +0 -0
  70. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/command.js +0 -0
  71. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/commanddefinition.js +0 -0
  72. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/config.js +431 -0
  73. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dataprocessor.js +0 -0
  74. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom.js +0 -0
  75. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/comment.js +0 -0
  76. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/document.js +251 -0
  77. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/documentfragment.js +0 -0
  78. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/domobject.js +258 -0
  79. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/element.js +1615 -0
  80. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/elementpath.js +0 -0
  81. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/event.js +0 -0
  82. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/node.js +696 -0
  83. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/nodelist.js +0 -0
  84. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/range.js +1893 -0
  85. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/rangelist.js +213 -0
  86. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/text.js +0 -0
  87. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/walker.js +444 -0
  88. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dom/window.js +0 -0
  89. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/dtd.js +0 -0
  90. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/editor.js +943 -0
  91. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/editor_basic.js +0 -0
  92. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/env.js +272 -0
  93. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/event.js +0 -0
  94. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/eventInfo.js +0 -0
  95. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/focusmanager.js +0 -0
  96. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser.js +0 -0
  97. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser/basicwriter.js +0 -0
  98. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser/cdata.js +0 -0
  99. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser/comment.js +0 -0
  100. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/element.js +240 -0
  101. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser/filter.js +0 -0
  102. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/fragment.js +504 -0
  103. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/htmlparser/text.js +0 -0
  104. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/lang.js +0 -0
  105. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/loader.js +242 -0
  106. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/plugindefinition.js +0 -0
  107. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/plugins.js +0 -0
  108. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/resourcemanager.js +0 -0
  109. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/scriptloader.js +0 -0
  110. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/skins.js +184 -0
  111. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/themes.js +0 -0
  112. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/tools.js +734 -0
  113. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ui.js +118 -0
  114. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/core/xml.js +0 -0
  115. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/lang/_languages.js +0 -0
  116. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/_translationstatus.txt +60 -0
  117. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/af.js +752 -0
  118. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ar.js +752 -0
  119. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/bg.js +752 -0
  120. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/bn.js +752 -0
  121. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/bs.js +752 -0
  122. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ca.js +752 -0
  123. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/cs.js +752 -0
  124. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/cy.js +752 -0
  125. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/da.js +752 -0
  126. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/de.js +752 -0
  127. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/el.js +752 -0
  128. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en-au.js +752 -0
  129. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en-ca.js +752 -0
  130. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en-gb.js +752 -0
  131. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en.js +752 -0
  132. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/eo.js +752 -0
  133. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/es.js +752 -0
  134. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/et.js +752 -0
  135. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/eu.js +752 -0
  136. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fa.js +752 -0
  137. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fi.js +752 -0
  138. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fo.js +752 -0
  139. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fr-ca.js +752 -0
  140. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fr.js +752 -0
  141. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/gl.js +752 -0
  142. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/gu.js +752 -0
  143. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/he.js +752 -0
  144. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/hi.js +752 -0
  145. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/hr.js +752 -0
  146. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/hu.js +752 -0
  147. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/is.js +752 -0
  148. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/it.js +752 -0
  149. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ja.js +752 -0
  150. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/km.js +752 -0
  151. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ko.js +752 -0
  152. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/lt.js +752 -0
  153. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/lv.js +752 -0
  154. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/mn.js +752 -0
  155. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ms.js +752 -0
  156. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/nb.js +752 -0
  157. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/nl.js +752 -0
  158. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/no.js +752 -0
  159. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/pl.js +752 -0
  160. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/pt-br.js +751 -0
  161. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/pt.js +752 -0
  162. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ro.js +752 -0
  163. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ru.js +752 -0
  164. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sk.js +752 -0
  165. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sl.js +752 -0
  166. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sr-latn.js +752 -0
  167. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sr.js +752 -0
  168. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sv.js +752 -0
  169. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/th.js +752 -0
  170. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/tr.js +751 -0
  171. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/uk.js +752 -0
  172. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/vi.js +752 -0
  173. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/zh-cn.js +752 -0
  174. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/zh.js +752 -0
  175. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +0 -0
  176. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/a11yhelp/lang/en.js +0 -0
  177. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/a11yhelp/lang/he.js +0 -0
  178. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/a11yhelp/plugin.js +0 -0
  179. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/about/dialogs/about.js +0 -0
  180. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png +0 -0
  181. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/about/plugin.js +0 -0
  182. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/adobeair/plugin.js +228 -0
  183. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/ajax_save/plugin.js +0 -0
  184. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/attachment/dialogs/attachment.js +0 -0
  185. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/attachment/images/attachment.png +0 -0
  186. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/attachment/lang/en.js +0 -0
  187. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/attachment/lang/ru.js +0 -0
  188. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/attachment/lang/uk.js +0 -0
  189. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/attachment/plugin.js +0 -0
  190. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/autogrow/plugin.js +0 -0
  191. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/basicstyles/plugin.js +0 -0
  192. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/bidi/plugin.js +265 -0
  193. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/blockquote/plugin.js +0 -0
  194. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/button/plugin.js +295 -0
  195. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/clipboard/dialogs/paste.js +212 -0
  196. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/clipboard/plugin.js +412 -0
  197. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/colorbutton/plugin.js +291 -0
  198. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +340 -0
  199. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/colordialog/plugin.js +0 -0
  200. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/contextmenu/plugin.js +177 -0
  201. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/dialog/dialogDefinition.js +0 -0
  202. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialog/plugin.js +3067 -0
  203. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialogadvtab/plugin.js +213 -0
  204. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialogui/plugin.js +1523 -0
  205. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/div/dialogs/div.js +0 -0
  206. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/div/plugin.js +121 -0
  207. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/domiterator/plugin.js +0 -0
  208. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/editingblock/plugin.js +0 -0
  209. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/elementspath/plugin.js +201 -0
  210. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/embed/dialogs/embed.js +0 -0
  211. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/embed/images/embed.png +0 -0
  212. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/embed/lang/en.js +0 -0
  213. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/embed/lang/ru.js +0 -0
  214. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/embed/lang/uk.js +0 -0
  215. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/embed/plugin.js +0 -0
  216. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/enterkey/plugin.js +381 -0
  217. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/entities/plugin.js +0 -0
  218. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/fakeobjects/plugin.js +126 -0
  219. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/filebrowser/plugin.js +501 -0
  220. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/find/dialogs/find.js +0 -0
  221. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/find/plugin.js +0 -0
  222. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/flash/dialogs/flash.js +698 -0
  223. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/flash/images/placeholder.png +0 -0
  224. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/flash/plugin.js +168 -0
  225. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/floatpanel/plugin.js +405 -0
  226. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/font/plugin.js +0 -0
  227. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/format/plugin.js +0 -0
  228. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/button.js +135 -0
  229. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/checkbox.js +153 -0
  230. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/form.js +177 -0
  231. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +98 -0
  232. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/radio.js +135 -0
  233. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/select.js +556 -0
  234. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/textarea.js +114 -0
  235. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/textfield.js +199 -0
  236. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/forms/images/hiddenfield.gif +0 -0
  237. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/plugin.js +284 -0
  238. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/horizontalrule/plugin.js +0 -0
  239. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/htmldataprocessor/plugin.js +543 -0
  240. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/htmlwriter/plugin.js +0 -0
  241. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframe/dialogs/iframe.js +257 -0
  242. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframe/images/placeholder.png +0 -0
  243. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframe/plugin.js +106 -0
  244. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/iframedialog/plugin.js +0 -0
  245. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/image/dialogs/image.js +1388 -0
  246. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/image/plugin.js +81 -0
  247. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/indent/plugin.js +468 -0
  248. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/justify/plugin.js +239 -0
  249. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/keystrokes/plugin.js +0 -0
  250. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/dialogs/anchor.js +99 -0
  251. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/dialogs/link.js +1426 -0
  252. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/link/images/anchor.gif +0 -0
  253. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/plugin.js +241 -0
  254. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/list/plugin.js +723 -0
  255. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/listblock/plugin.js +257 -0
  256. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +0 -0
  257. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/liststyle/plugin.js +0 -0
  258. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/maximize/plugin.js +340 -0
  259. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/menu/plugin.js +505 -0
  260. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/menubutton/plugin.js +98 -0
  261. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/newpage/plugin.js +0 -0
  262. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif +0 -0
  263. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pagebreak/plugin.js +120 -0
  264. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/panel/plugin.js +395 -0
  265. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/panelbutton/plugin.js +146 -0
  266. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastefromword/filter/default.js +1175 -0
  267. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/pastefromword/plugin.js +0 -0
  268. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +0 -0
  269. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastetext/plugin.js +85 -0
  270. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/dialogs/placeholder.js +78 -0
  271. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/lang/en.js +16 -0
  272. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/placeholder.gif +0 -0
  273. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/plugin.js +160 -0
  274. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/popup/plugin.js +0 -0
  275. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/preview/plugin.js +0 -0
  276. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/print/plugin.js +0 -0
  277. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/removeformat/plugin.js +184 -0
  278. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/resize/plugin.js +0 -0
  279. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/richcombo/plugin.js +371 -0
  280. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/save/plugin.js +0 -0
  281. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/scayt/dialogs/options.js +534 -0
  282. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/scayt/dialogs/toolbar.css +0 -0
  283. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/scayt/plugin.js +947 -0
  284. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/selection/plugin.js +0 -0
  285. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_address.png +0 -0
  286. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_blockquote.png +0 -0
  287. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_div.png +0 -0
  288. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_h1.png +0 -0
  289. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_h2.png +0 -0
  290. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_h3.png +0 -0
  291. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_h4.png +0 -0
  292. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_h5.png +0 -0
  293. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_h6.png +0 -0
  294. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_p.png +0 -0
  295. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/showblocks/images/block_pre.png +0 -0
  296. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/plugin.js +156 -0
  297. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showborders/plugin.js +203 -0
  298. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/dialogs/smiley.js +223 -0
  299. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/angel_smile.gif +0 -0
  300. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/angry_smile.gif +0 -0
  301. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/broken_heart.gif +0 -0
  302. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/confused_smile.gif +0 -0
  303. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/cry_smile.gif +0 -0
  304. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/devil_smile.gif +0 -0
  305. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif +0 -0
  306. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/envelope.gif +0 -0
  307. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/heart.gif +0 -0
  308. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/kiss.gif +0 -0
  309. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/lightbulb.gif +0 -0
  310. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/omg_smile.gif +0 -0
  311. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/regular_smile.gif +0 -0
  312. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/sad_smile.gif +0 -0
  313. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/shades_smile.gif +0 -0
  314. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/teeth_smile.gif +0 -0
  315. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/thumbs_down.gif +0 -0
  316. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/thumbs_up.gif +0 -0
  317. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/tounge_smile.gif +0 -0
  318. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  319. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/images/wink_smile.gif +0 -0
  320. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/smiley/plugin.js +0 -0
  321. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/sourcearea/plugin.js +196 -0
  322. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +347 -0
  323. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/specialchar/lang/en.js +89 -0
  324. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/specialchar/plugin.js +70 -0
  325. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/styles/plugin.js +1564 -0
  326. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/styles/styles/default.js +0 -0
  327. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/stylescombo/plugin.js +0 -0
  328. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/tab/plugin.js +0 -0
  329. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/table/dialogs/table.js +672 -0
  330. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/table/plugin.js +0 -0
  331. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tableresize/plugin.js +450 -0
  332. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +525 -0
  333. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/tabletools/plugin.js +0 -0
  334. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/templates/dialogs/templates.js +0 -0
  335. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/templates/plugin.js +0 -0
  336. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/templates/templates/default.js +0 -0
  337. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/templates/templates/images/template1.gif +0 -0
  338. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/templates/templates/images/template2.gif +0 -0
  339. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/templates/templates/images/template3.gif +0 -0
  340. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/toolbar/plugin.js +482 -0
  341. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +0 -0
  342. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/lang/en.js +0 -0
  343. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/lang/he.js +0 -0
  344. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/plugin.js +0 -0
  345. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/uicolor.gif +0 -0
  346. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  347. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  348. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  349. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  350. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +0 -0
  351. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/uicolor/yui/yui.js +0 -0
  352. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/undo/plugin.js +554 -0
  353. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/wsc/dialogs/ciframe.html +0 -0
  354. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html +0 -0
  355. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.css +0 -0
  356. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.js +191 -0
  357. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/plugin.js +33 -0
  358. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wysiwygarea/plugin.js +1224 -0
  359. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/dialog.css +915 -0
  360. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/editor.css +0 -0
  361. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/elementspath.css +0 -0
  362. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/icons.css +361 -0
  363. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/icons.png +0 -0
  364. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/icons_rtl.png +0 -0
  365. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/dialog_sides.gif +0 -0
  366. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/dialog_sides.png +0 -0
  367. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png +0 -0
  368. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/mini.gif +0 -0
  369. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/noimage.png +0 -0
  370. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/sprites.png +0 -0
  371. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/sprites_ie6.png +0 -0
  372. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/images/toolbar_start.gif +0 -0
  373. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/mainui.css +202 -0
  374. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/menu.css +244 -0
  375. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/panel.css +0 -0
  376. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/presets.css +0 -0
  377. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/reset.css +0 -0
  378. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/richcombo.css +287 -0
  379. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/skin.js +259 -0
  380. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/kama/templates.css +0 -0
  381. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/toolbar.css +448 -0
  382. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/dialog.css +826 -0
  383. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/editor.css +0 -0
  384. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/elementspath.css +0 -0
  385. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/icons.css +358 -0
  386. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/icons.png +0 -0
  387. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/icons_rtl.png +0 -0
  388. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/dialog_sides.gif +0 -0
  389. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/dialog_sides.png +0 -0
  390. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png +0 -0
  391. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/mini.gif +0 -0
  392. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/noimage.png +0 -0
  393. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/sprites.png +0 -0
  394. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/images/sprites_ie6.png +0 -0
  395. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/mainui.css +152 -0
  396. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/menu.css +241 -0
  397. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/panel.css +0 -0
  398. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/presets.css +0 -0
  399. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/reset.css +0 -0
  400. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/richcombo.css +318 -0
  401. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/skin.js +71 -0
  402. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/office2003/templates.css +0 -0
  403. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/toolbar.css +510 -0
  404. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/dialog.css +842 -0
  405. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/editor.css +0 -0
  406. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/elementspath.css +0 -0
  407. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/icons.css +358 -0
  408. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/icons.png +0 -0
  409. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/icons_rtl.png +0 -0
  410. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/dialog_sides.gif +0 -0
  411. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/dialog_sides.png +0 -0
  412. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png +0 -0
  413. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/mini.gif +0 -0
  414. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/noimage.png +0 -0
  415. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/sprites.png +0 -0
  416. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/sprites_ie6.png +0 -0
  417. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/images/toolbar_start.gif +0 -0
  418. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/mainui.css +161 -0
  419. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/menu.css +244 -0
  420. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/panel.css +0 -0
  421. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/presets.css +0 -0
  422. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/reset.css +0 -0
  423. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/richcombo.css +317 -0
  424. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/skin.js +67 -0
  425. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/_source/skins/v2/templates.css +0 -0
  426. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/toolbar.css +453 -0
  427. data/lib/generators/ckeditor/base/templates/ckeditor/_source/themes/default/theme.js +368 -0
  428. data/lib/generators/ckeditor/base/templates/ckeditor/adapters/jquery.js +6 -0
  429. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor.js +139 -0
  430. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor.pack +211 -0
  431. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_basic.js +8 -0
  432. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_basic_source.js +20 -0
  433. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_source.js +25 -0
  434. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/config.js +0 -0
  435. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/contents.css +0 -0
  436. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/css/ckfinder.css +0 -0
  437. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/css/fck_dialog.css +0 -0
  438. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/css/fck_editor.css +0 -0
  439. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/css/swfupload.css +0 -0
  440. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/add.gif +0 -0
  441. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/cancelbutton.gif +0 -0
  442. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/ckfnothumb.gif +0 -0
  443. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/doc.gif +0 -0
  444. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/mp3.gif +0 -0
  445. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/pdf.gif +0 -0
  446. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/rar.gif +0 -0
  447. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/refresh.gif +0 -0
  448. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/select_files.png +0 -0
  449. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/spacer.gif +0 -0
  450. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/swf.gif +0 -0
  451. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/toolbar.start.gif +0 -0
  452. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/images/xls.gif +0 -0
  453. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/lang/_languages.js +0 -0
  454. data/lib/generators/ckeditor/base/templates/ckeditor/lang/_translationstatus.txt +60 -0
  455. data/lib/generators/ckeditor/base/templates/ckeditor/lang/af.js +6 -0
  456. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ar.js +6 -0
  457. data/lib/generators/ckeditor/base/templates/ckeditor/lang/bg.js +6 -0
  458. data/lib/generators/ckeditor/base/templates/ckeditor/lang/bn.js +6 -0
  459. data/lib/generators/ckeditor/base/templates/ckeditor/lang/bs.js +6 -0
  460. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ca.js +6 -0
  461. data/lib/generators/ckeditor/base/templates/ckeditor/lang/cs.js +6 -0
  462. data/lib/generators/ckeditor/base/templates/ckeditor/lang/cy.js +6 -0
  463. data/lib/generators/ckeditor/base/templates/ckeditor/lang/da.js +6 -0
  464. data/lib/generators/ckeditor/base/templates/ckeditor/lang/de.js +6 -0
  465. data/lib/generators/ckeditor/base/templates/ckeditor/lang/el.js +6 -0
  466. data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-au.js +6 -0
  467. data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-ca.js +6 -0
  468. data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-gb.js +6 -0
  469. data/lib/generators/ckeditor/base/templates/ckeditor/lang/en.js +6 -0
  470. data/lib/generators/ckeditor/base/templates/ckeditor/lang/eo.js +6 -0
  471. data/lib/generators/ckeditor/base/templates/ckeditor/lang/es.js +6 -0
  472. data/lib/generators/ckeditor/base/templates/ckeditor/lang/et.js +6 -0
  473. data/lib/generators/ckeditor/base/templates/ckeditor/lang/eu.js +6 -0
  474. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fa.js +6 -0
  475. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fi.js +6 -0
  476. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fo.js +6 -0
  477. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fr-ca.js +6 -0
  478. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fr.js +6 -0
  479. data/lib/generators/ckeditor/base/templates/ckeditor/lang/gl.js +6 -0
  480. data/lib/generators/ckeditor/base/templates/ckeditor/lang/gu.js +6 -0
  481. data/lib/generators/ckeditor/base/templates/ckeditor/lang/he.js +6 -0
  482. data/lib/generators/ckeditor/base/templates/ckeditor/lang/hi.js +6 -0
  483. data/lib/generators/ckeditor/base/templates/ckeditor/lang/hr.js +6 -0
  484. data/lib/generators/ckeditor/base/templates/ckeditor/lang/hu.js +6 -0
  485. data/lib/generators/ckeditor/base/templates/ckeditor/lang/is.js +6 -0
  486. data/lib/generators/ckeditor/base/templates/ckeditor/lang/it.js +6 -0
  487. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ja.js +6 -0
  488. data/lib/generators/ckeditor/base/templates/ckeditor/lang/km.js +6 -0
  489. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ko.js +6 -0
  490. data/lib/generators/ckeditor/base/templates/ckeditor/lang/lt.js +6 -0
  491. data/lib/generators/ckeditor/base/templates/ckeditor/lang/lv.js +6 -0
  492. data/lib/generators/ckeditor/base/templates/ckeditor/lang/mn.js +6 -0
  493. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ms.js +6 -0
  494. data/lib/generators/ckeditor/base/templates/ckeditor/lang/nb.js +6 -0
  495. data/lib/generators/ckeditor/base/templates/ckeditor/lang/nl.js +6 -0
  496. data/lib/generators/ckeditor/base/templates/ckeditor/lang/no.js +6 -0
  497. data/lib/generators/ckeditor/base/templates/ckeditor/lang/pl.js +6 -0
  498. data/lib/generators/ckeditor/base/templates/ckeditor/lang/pt-br.js +6 -0
  499. data/lib/generators/ckeditor/base/templates/ckeditor/lang/pt.js +6 -0
  500. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ro.js +6 -0
  501. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ru.js +6 -0
  502. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sk.js +6 -0
  503. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sl.js +6 -0
  504. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sr-latn.js +6 -0
  505. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sr.js +6 -0
  506. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sv.js +6 -0
  507. data/lib/generators/ckeditor/base/templates/ckeditor/lang/th.js +6 -0
  508. data/lib/generators/ckeditor/base/templates/ckeditor/lang/tr.js +6 -0
  509. data/lib/generators/ckeditor/base/templates/ckeditor/lang/uk.js +6 -0
  510. data/lib/generators/ckeditor/base/templates/ckeditor/lang/vi.js +6 -0
  511. data/lib/generators/ckeditor/base/templates/ckeditor/lang/zh-cn.js +6 -0
  512. data/lib/generators/ckeditor/base/templates/ckeditor/lang/zh.js +6 -0
  513. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -0
  514. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/a11yhelp/lang/en.js +0 -0
  515. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/a11yhelp/lang/he.js +0 -0
  516. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/about/dialogs/about.js +0 -0
  517. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  518. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/adobeair/plugin.js +6 -0
  519. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/ajax_save/plugin.js +0 -0
  520. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/attachment/dialogs/attachment.js +0 -0
  521. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/attachment/images/attachment.png +0 -0
  522. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/attachment/lang/en.js +0 -0
  523. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/attachment/lang/ru.js +0 -0
  524. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/attachment/lang/uk.js +0 -0
  525. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/attachment/plugin.js +0 -0
  526. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/autogrow/plugin.js +0 -0
  527. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/clipboard/dialogs/paste.js +7 -0
  528. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/colordialog/dialogs/colordialog.js +7 -0
  529. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/dialog/dialogDefinition.js +0 -0
  530. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/div/dialogs/div.js +0 -0
  531. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/embed/dialogs/embed.js +0 -0
  532. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/embed/images/embed.png +0 -0
  533. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/embed/lang/en.js +0 -0
  534. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/embed/lang/ru.js +0 -0
  535. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/embed/lang/uk.js +0 -0
  536. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/embed/plugin.js +0 -0
  537. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/find/dialogs/find.js +0 -0
  538. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/flash/dialogs/flash.js +9 -0
  539. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/flash/images/placeholder.png +0 -0
  540. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/button.js +6 -0
  541. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/checkbox.js +6 -0
  542. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/form.js +6 -0
  543. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/hiddenfield.js +6 -0
  544. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/radio.js +6 -0
  545. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/select.js +9 -0
  546. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/textarea.js +6 -0
  547. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/textfield.js +6 -0
  548. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  549. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/iframe/dialogs/iframe.js +7 -0
  550. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  551. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/iframedialog/plugin.js +0 -0
  552. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/image/dialogs/image.js +13 -0
  553. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/link/dialogs/anchor.js +6 -0
  554. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/link/dialogs/link.js +11 -0
  555. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/link/images/anchor.gif +0 -0
  556. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -0
  557. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  558. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/pastefromword/filter/default.js +10 -0
  559. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -0
  560. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/dialogs/placeholder.js +6 -0
  561. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/lang/en.js +6 -0
  562. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/placeholder.gif +0 -0
  563. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/plugin.js +6 -0
  564. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/scayt/dialogs/options.js +8 -0
  565. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -0
  566. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  567. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  568. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  569. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  570. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  571. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  572. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  573. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  574. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  575. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  576. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  577. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/dialogs/smiley.js +7 -0
  578. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  579. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  580. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  581. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  582. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  583. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  584. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  585. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  586. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/heart.gif +0 -0
  587. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  588. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  589. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  590. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  591. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  592. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  593. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  594. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  595. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  596. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  597. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  598. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  599. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/specialchar/dialogs/specialchar.js +7 -0
  600. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/specialchar/lang/en.js +6 -0
  601. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/styles/styles/default.js +0 -0
  602. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/table/dialogs/table.js +9 -0
  603. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/tableresize/plugin.js +7 -0
  604. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/tabletools/dialogs/tableCell.js +8 -0
  605. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/templates/dialogs/templates.js +0 -0
  606. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/templates/templates/default.js +0 -0
  607. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  608. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  609. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  610. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -0
  611. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/lang/en.js +0 -0
  612. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/lang/he.js +0 -0
  613. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/plugin.js +0 -0
  614. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/uicolor.gif +0 -0
  615. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  616. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  617. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  618. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  619. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -0
  620. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/uicolor/yui/yui.js +0 -0
  621. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -0
  622. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -0
  623. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/plugins/wsc/dialogs/wsc.css +0 -0
  624. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/wsc/dialogs/wsc.js +7 -0
  625. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/dialog.css +9 -0
  626. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/editor.css +13 -0
  627. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/icons.png +0 -0
  628. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/icons_rtl.png +0 -0
  629. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  630. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/dialog_sides.png +0 -0
  631. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  632. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/mini.gif +0 -0
  633. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/noimage.png +0 -0
  634. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/sprites.png +0 -0
  635. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  636. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
  637. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/skin.js +7 -0
  638. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/kama/templates.css +0 -0
  639. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/dialog.css +9 -0
  640. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/editor.css +14 -0
  641. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/icons.png +0 -0
  642. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/icons_rtl.png +0 -0
  643. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
  644. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
  645. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
  646. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/mini.gif +0 -0
  647. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/noimage.png +0 -0
  648. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/sprites.png +0 -0
  649. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
  650. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/skin.js +6 -0
  651. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/office2003/templates.css +0 -0
  652. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/dialog.css +9 -0
  653. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/editor.css +13 -0
  654. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/icons.png +0 -0
  655. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/icons_rtl.png +0 -0
  656. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
  657. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/dialog_sides.png +0 -0
  658. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
  659. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/mini.gif +0 -0
  660. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/noimage.png +0 -0
  661. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/sprites.png +0 -0
  662. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
  663. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
  664. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/skin.js +6 -0
  665. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/skins/v2/templates.css +0 -0
  666. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/fileprogress.js +0 -0
  667. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/handlers.js +0 -0
  668. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/mootools-1.2.3-core-yc.js +0 -0
  669. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/querystring.js +0 -0
  670. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/swfupload.js +0 -0
  671. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/swfupload.queue.js +0 -0
  672. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/swfupload.swf +0 -0
  673. data/{generators/ckeditor_install → lib/generators/ckeditor/base}/templates/ckeditor/swfupload/swfupload.swfobject.js +0 -0
  674. data/lib/generators/ckeditor/base/templates/ckeditor/themes/default/theme.js +8 -0
  675. data/lib/generators/ckeditor/migration/USAGE +12 -0
  676. data/lib/generators/ckeditor/migration/migration_generator.rb +46 -0
  677. data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/attachment_fu/asset.rb +0 -0
  678. data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/attachment_fu/attachment_file.rb +0 -0
  679. data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/attachment_fu/migration.rb +0 -0
  680. data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/attachment_fu/picture.rb +0 -0
  681. data/lib/generators/ckeditor/migration/templates/models/paperclip/asset.rb +95 -0
  682. data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/paperclip/attachment_file.rb +0 -0
  683. data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/paperclip/migration.rb +0 -0
  684. data/{generators/ckeditor_migration → lib/generators/ckeditor/migration}/templates/models/paperclip/picture.rb +0 -0
  685. data/lib/tasks/ckeditor_tasks.rake +3 -0
  686. metadata +693 -670
  687. data/app/controllers/ckeditor_controller.rb +0 -85
  688. data/app/helpers/ckeditor_helper.rb +0 -38
  689. data/app/views/ckeditor/files.html.erb +0 -91
  690. data/app/views/ckeditor/images.html.erb +0 -91
  691. data/examples/s3/s3.yml +0 -2
  692. data/generators/ckeditor_install/USAGE +0 -7
  693. data/generators/ckeditor_install/ckeditor_install_generator.rb +0 -28
  694. data/generators/ckeditor_install/templates/README +0 -0
  695. data/generators/ckeditor_install/templates/ckeditor.rb +0 -56
  696. data/generators/ckeditor_install/templates/ckeditor/CHANGES.html +0 -993
  697. data/generators/ckeditor_install/templates/ckeditor/_samples/api.html +0 -152
  698. data/generators/ckeditor_install/templates/ckeditor/_samples/index.html +0 -57
  699. data/generators/ckeditor_install/templates/ckeditor/_source/adapters/jquery.js +0 -297
  700. data/generators/ckeditor_install/templates/ckeditor/_source/core/ckeditor_base.js +0 -196
  701. data/generators/ckeditor_install/templates/ckeditor/_source/core/config.js +0 -430
  702. data/generators/ckeditor_install/templates/ckeditor/_source/core/dom/document.js +0 -224
  703. data/generators/ckeditor_install/templates/ckeditor/_source/core/dom/domobject.js +0 -255
  704. data/generators/ckeditor_install/templates/ckeditor/_source/core/dom/element.js +0 -1564
  705. data/generators/ckeditor_install/templates/ckeditor/_source/core/dom/node.js +0 -683
  706. data/generators/ckeditor_install/templates/ckeditor/_source/core/dom/range.js +0 -1883
  707. data/generators/ckeditor_install/templates/ckeditor/_source/core/dom/rangelist.js +0 -214
  708. data/generators/ckeditor_install/templates/ckeditor/_source/core/dom/walker.js +0 -445
  709. data/generators/ckeditor_install/templates/ckeditor/_source/core/editor.js +0 -924
  710. data/generators/ckeditor_install/templates/ckeditor/_source/core/env.js +0 -270
  711. data/generators/ckeditor_install/templates/ckeditor/_source/core/htmlparser/element.js +0 -240
  712. data/generators/ckeditor_install/templates/ckeditor/_source/core/htmlparser/fragment.js +0 -504
  713. data/generators/ckeditor_install/templates/ckeditor/_source/core/imagecacher.js +0 -80
  714. data/generators/ckeditor_install/templates/ckeditor/_source/core/loader.js +0 -243
  715. data/generators/ckeditor_install/templates/ckeditor/_source/core/skins.js +0 -212
  716. data/generators/ckeditor_install/templates/ckeditor/_source/core/tools.js +0 -734
  717. data/generators/ckeditor_install/templates/ckeditor/_source/core/ui.js +0 -116
  718. data/generators/ckeditor_install/templates/ckeditor/_source/lang/_translationstatus.txt +0 -60
  719. data/generators/ckeditor_install/templates/ckeditor/_source/lang/af.js +0 -758
  720. data/generators/ckeditor_install/templates/ckeditor/_source/lang/ar.js +0 -758
  721. data/generators/ckeditor_install/templates/ckeditor/_source/lang/bg.js +0 -758
  722. data/generators/ckeditor_install/templates/ckeditor/_source/lang/bn.js +0 -758
  723. data/generators/ckeditor_install/templates/ckeditor/_source/lang/bs.js +0 -758
  724. data/generators/ckeditor_install/templates/ckeditor/_source/lang/ca.js +0 -758
  725. data/generators/ckeditor_install/templates/ckeditor/_source/lang/cs.js +0 -758
  726. data/generators/ckeditor_install/templates/ckeditor/_source/lang/cy.js +0 -758
  727. data/generators/ckeditor_install/templates/ckeditor/_source/lang/da.js +0 -758
  728. data/generators/ckeditor_install/templates/ckeditor/_source/lang/de.js +0 -758
  729. data/generators/ckeditor_install/templates/ckeditor/_source/lang/el.js +0 -758
  730. data/generators/ckeditor_install/templates/ckeditor/_source/lang/en-au.js +0 -758
  731. data/generators/ckeditor_install/templates/ckeditor/_source/lang/en-ca.js +0 -758
  732. data/generators/ckeditor_install/templates/ckeditor/_source/lang/en-gb.js +0 -758
  733. data/generators/ckeditor_install/templates/ckeditor/_source/lang/en.js +0 -758
  734. data/generators/ckeditor_install/templates/ckeditor/_source/lang/eo.js +0 -758
  735. data/generators/ckeditor_install/templates/ckeditor/_source/lang/es.js +0 -758
  736. data/generators/ckeditor_install/templates/ckeditor/_source/lang/et.js +0 -758
  737. data/generators/ckeditor_install/templates/ckeditor/_source/lang/eu.js +0 -758
  738. data/generators/ckeditor_install/templates/ckeditor/_source/lang/fa.js +0 -758
  739. data/generators/ckeditor_install/templates/ckeditor/_source/lang/fi.js +0 -758
  740. data/generators/ckeditor_install/templates/ckeditor/_source/lang/fo.js +0 -758
  741. data/generators/ckeditor_install/templates/ckeditor/_source/lang/fr-ca.js +0 -758
  742. data/generators/ckeditor_install/templates/ckeditor/_source/lang/fr.js +0 -758
  743. data/generators/ckeditor_install/templates/ckeditor/_source/lang/gl.js +0 -758
  744. data/generators/ckeditor_install/templates/ckeditor/_source/lang/gu.js +0 -758
  745. data/generators/ckeditor_install/templates/ckeditor/_source/lang/he.js +0 -758
  746. data/generators/ckeditor_install/templates/ckeditor/_source/lang/hi.js +0 -758
  747. data/generators/ckeditor_install/templates/ckeditor/_source/lang/hr.js +0 -758
  748. data/generators/ckeditor_install/templates/ckeditor/_source/lang/hu.js +0 -758
  749. data/generators/ckeditor_install/templates/ckeditor/_source/lang/is.js +0 -758
  750. data/generators/ckeditor_install/templates/ckeditor/_source/lang/it.js +0 -758
  751. data/generators/ckeditor_install/templates/ckeditor/_source/lang/ja.js +0 -758
  752. data/generators/ckeditor_install/templates/ckeditor/_source/lang/km.js +0 -758
  753. data/generators/ckeditor_install/templates/ckeditor/_source/lang/ko.js +0 -758
  754. data/generators/ckeditor_install/templates/ckeditor/_source/lang/lt.js +0 -758
  755. data/generators/ckeditor_install/templates/ckeditor/_source/lang/lv.js +0 -758
  756. data/generators/ckeditor_install/templates/ckeditor/_source/lang/mn.js +0 -758
  757. data/generators/ckeditor_install/templates/ckeditor/_source/lang/ms.js +0 -758
  758. data/generators/ckeditor_install/templates/ckeditor/_source/lang/nb.js +0 -758
  759. data/generators/ckeditor_install/templates/ckeditor/_source/lang/nl.js +0 -758
  760. data/generators/ckeditor_install/templates/ckeditor/_source/lang/no.js +0 -758
  761. data/generators/ckeditor_install/templates/ckeditor/_source/lang/pl.js +0 -758
  762. data/generators/ckeditor_install/templates/ckeditor/_source/lang/pt-br.js +0 -757
  763. data/generators/ckeditor_install/templates/ckeditor/_source/lang/pt.js +0 -758
  764. data/generators/ckeditor_install/templates/ckeditor/_source/lang/ro.js +0 -758
  765. data/generators/ckeditor_install/templates/ckeditor/_source/lang/ru.js +0 -758
  766. data/generators/ckeditor_install/templates/ckeditor/_source/lang/sk.js +0 -758
  767. data/generators/ckeditor_install/templates/ckeditor/_source/lang/sl.js +0 -758
  768. data/generators/ckeditor_install/templates/ckeditor/_source/lang/sr-latn.js +0 -758
  769. data/generators/ckeditor_install/templates/ckeditor/_source/lang/sr.js +0 -758
  770. data/generators/ckeditor_install/templates/ckeditor/_source/lang/sv.js +0 -758
  771. data/generators/ckeditor_install/templates/ckeditor/_source/lang/th.js +0 -758
  772. data/generators/ckeditor_install/templates/ckeditor/_source/lang/tr.js +0 -757
  773. data/generators/ckeditor_install/templates/ckeditor/_source/lang/uk.js +0 -758
  774. data/generators/ckeditor_install/templates/ckeditor/_source/lang/vi.js +0 -758
  775. data/generators/ckeditor_install/templates/ckeditor/_source/lang/zh-cn.js +0 -758
  776. data/generators/ckeditor_install/templates/ckeditor/_source/lang/zh.js +0 -758
  777. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/bidi/plugin.js +0 -259
  778. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/button/plugin.js +0 -277
  779. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/clipboard/dialogs/paste.js +0 -205
  780. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/clipboard/plugin.js +0 -412
  781. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/colorbutton/plugin.js +0 -250
  782. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +0 -336
  783. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/contextmenu/plugin.js +0 -290
  784. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/dialog/plugin.js +0 -3015
  785. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/dialogadvtab/plugin.js +0 -213
  786. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/dialogui/plugin.js +0 -1523
  787. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/div/plugin.js +0 -121
  788. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/elementspath/plugin.js +0 -206
  789. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/enterkey/plugin.js +0 -363
  790. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/fakeobjects/plugin.js +0 -122
  791. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/filebrowser/plugin.js +0 -501
  792. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/flash/dialogs/flash.js +0 -698
  793. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/flash/plugin.js +0 -168
  794. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/floatpanel/plugin.js +0 -402
  795. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/dialogs/button.js +0 -135
  796. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/dialogs/checkbox.js +0 -153
  797. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/dialogs/form.js +0 -177
  798. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +0 -98
  799. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/dialogs/radio.js +0 -135
  800. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/dialogs/select.js +0 -556
  801. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/dialogs/textarea.js +0 -114
  802. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/dialogs/textfield.js +0 -199
  803. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/forms/plugin.js +0 -284
  804. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/htmldataprocessor/plugin.js +0 -502
  805. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/image/dialogs/image.js +0 -1396
  806. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/image/plugin.js +0 -81
  807. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/indent/plugin.js +0 -455
  808. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/justify/plugin.js +0 -221
  809. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/link/dialogs/anchor.js +0 -99
  810. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/link/dialogs/link.js +0 -1424
  811. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/link/plugin.js +0 -238
  812. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/list/plugin.js +0 -710
  813. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/listblock/plugin.js +0 -257
  814. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/maximize/plugin.js +0 -350
  815. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/menu/plugin.js +0 -408
  816. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/menubutton/plugin.js +0 -94
  817. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/pagebreak/plugin.js +0 -121
  818. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/panel/plugin.js +0 -399
  819. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/panelbutton/plugin.js +0 -147
  820. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/pastefromword/filter/default.js +0 -1170
  821. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/pastetext/plugin.js +0 -145
  822. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/removeformat/plugin.js +0 -184
  823. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/richcombo/plugin.js +0 -370
  824. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/scayt/dialogs/options.js +0 -534
  825. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/scayt/plugin.js +0 -945
  826. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/showblocks/plugin.js +0 -155
  827. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/showborders/plugin.js +0 -201
  828. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/smiley/dialogs/smiley.js +0 -218
  829. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/sourcearea/plugin.js +0 -207
  830. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +0 -409
  831. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/specialchar/plugin.js +0 -29
  832. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/styles/plugin.js +0 -1479
  833. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/table/dialogs/table.js +0 -672
  834. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/tableresize/plugin.js +0 -450
  835. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +0 -533
  836. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/toolbar/plugin.js +0 -481
  837. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/undo/plugin.js +0 -554
  838. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.js +0 -176
  839. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/wsc/plugin.js +0 -33
  840. data/generators/ckeditor_install/templates/ckeditor/_source/plugins/wysiwygarea/plugin.js +0 -1146
  841. data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/dialog.css +0 -882
  842. data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/icons.css +0 -357
  843. data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/icons.png +0 -0
  844. data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/icons_rtl.png +0 -0
  845. data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/mainui.css +0 -195
  846. data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/menu.css +0 -216
  847. data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/richcombo.css +0 -277
  848. data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/skin.js +0 -268
  849. data/generators/ckeditor_install/templates/ckeditor/_source/skins/kama/toolbar.css +0 -409
  850. data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/dialog.css +0 -785
  851. data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/icons.css +0 -354
  852. data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/icons.png +0 -0
  853. data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/icons_rtl.png +0 -0
  854. data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/mainui.css +0 -145
  855. data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/menu.css +0 -213
  856. data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/richcombo.css +0 -297
  857. data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/skin.js +0 -81
  858. data/generators/ckeditor_install/templates/ckeditor/_source/skins/office2003/toolbar.css +0 -470
  859. data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/dialog.css +0 -800
  860. data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/icons.css +0 -354
  861. data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/icons.png +0 -0
  862. data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/icons_rtl.png +0 -0
  863. data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/mainui.css +0 -154
  864. data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/menu.css +0 -215
  865. data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/richcombo.css +0 -297
  866. data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/skin.js +0 -77
  867. data/generators/ckeditor_install/templates/ckeditor/_source/skins/v2/toolbar.css +0 -423
  868. data/generators/ckeditor_install/templates/ckeditor/_source/themes/default/theme.js +0 -361
  869. data/generators/ckeditor_install/templates/ckeditor/adapters/jquery.js +0 -6
  870. data/generators/ckeditor_install/templates/ckeditor/ckeditor.js +0 -137
  871. data/generators/ckeditor_install/templates/ckeditor/ckeditor.pack +0 -211
  872. data/generators/ckeditor_install/templates/ckeditor/ckeditor_basic.js +0 -8
  873. data/generators/ckeditor_install/templates/ckeditor/ckeditor_basic_source.js +0 -20
  874. data/generators/ckeditor_install/templates/ckeditor/ckeditor_source.js +0 -25
  875. data/generators/ckeditor_install/templates/ckeditor/lang/_translationstatus.txt +0 -60
  876. data/generators/ckeditor_install/templates/ckeditor/lang/af.js +0 -6
  877. data/generators/ckeditor_install/templates/ckeditor/lang/ar.js +0 -6
  878. data/generators/ckeditor_install/templates/ckeditor/lang/bg.js +0 -6
  879. data/generators/ckeditor_install/templates/ckeditor/lang/bn.js +0 -6
  880. data/generators/ckeditor_install/templates/ckeditor/lang/bs.js +0 -6
  881. data/generators/ckeditor_install/templates/ckeditor/lang/ca.js +0 -6
  882. data/generators/ckeditor_install/templates/ckeditor/lang/cs.js +0 -6
  883. data/generators/ckeditor_install/templates/ckeditor/lang/cy.js +0 -6
  884. data/generators/ckeditor_install/templates/ckeditor/lang/da.js +0 -6
  885. data/generators/ckeditor_install/templates/ckeditor/lang/de.js +0 -6
  886. data/generators/ckeditor_install/templates/ckeditor/lang/el.js +0 -6
  887. data/generators/ckeditor_install/templates/ckeditor/lang/en-au.js +0 -6
  888. data/generators/ckeditor_install/templates/ckeditor/lang/en-ca.js +0 -6
  889. data/generators/ckeditor_install/templates/ckeditor/lang/en-gb.js +0 -6
  890. data/generators/ckeditor_install/templates/ckeditor/lang/en.js +0 -6
  891. data/generators/ckeditor_install/templates/ckeditor/lang/eo.js +0 -6
  892. data/generators/ckeditor_install/templates/ckeditor/lang/es.js +0 -6
  893. data/generators/ckeditor_install/templates/ckeditor/lang/et.js +0 -6
  894. data/generators/ckeditor_install/templates/ckeditor/lang/eu.js +0 -6
  895. data/generators/ckeditor_install/templates/ckeditor/lang/fa.js +0 -6
  896. data/generators/ckeditor_install/templates/ckeditor/lang/fi.js +0 -6
  897. data/generators/ckeditor_install/templates/ckeditor/lang/fo.js +0 -6
  898. data/generators/ckeditor_install/templates/ckeditor/lang/fr-ca.js +0 -6
  899. data/generators/ckeditor_install/templates/ckeditor/lang/fr.js +0 -6
  900. data/generators/ckeditor_install/templates/ckeditor/lang/gl.js +0 -6
  901. data/generators/ckeditor_install/templates/ckeditor/lang/gu.js +0 -6
  902. data/generators/ckeditor_install/templates/ckeditor/lang/he.js +0 -6
  903. data/generators/ckeditor_install/templates/ckeditor/lang/hi.js +0 -6
  904. data/generators/ckeditor_install/templates/ckeditor/lang/hr.js +0 -6
  905. data/generators/ckeditor_install/templates/ckeditor/lang/hu.js +0 -6
  906. data/generators/ckeditor_install/templates/ckeditor/lang/is.js +0 -6
  907. data/generators/ckeditor_install/templates/ckeditor/lang/it.js +0 -6
  908. data/generators/ckeditor_install/templates/ckeditor/lang/ja.js +0 -6
  909. data/generators/ckeditor_install/templates/ckeditor/lang/km.js +0 -6
  910. data/generators/ckeditor_install/templates/ckeditor/lang/ko.js +0 -6
  911. data/generators/ckeditor_install/templates/ckeditor/lang/lt.js +0 -6
  912. data/generators/ckeditor_install/templates/ckeditor/lang/lv.js +0 -6
  913. data/generators/ckeditor_install/templates/ckeditor/lang/mn.js +0 -6
  914. data/generators/ckeditor_install/templates/ckeditor/lang/ms.js +0 -6
  915. data/generators/ckeditor_install/templates/ckeditor/lang/nb.js +0 -6
  916. data/generators/ckeditor_install/templates/ckeditor/lang/nl.js +0 -6
  917. data/generators/ckeditor_install/templates/ckeditor/lang/no.js +0 -6
  918. data/generators/ckeditor_install/templates/ckeditor/lang/pl.js +0 -6
  919. data/generators/ckeditor_install/templates/ckeditor/lang/pt-br.js +0 -6
  920. data/generators/ckeditor_install/templates/ckeditor/lang/pt.js +0 -6
  921. data/generators/ckeditor_install/templates/ckeditor/lang/ro.js +0 -6
  922. data/generators/ckeditor_install/templates/ckeditor/lang/ru.js +0 -6
  923. data/generators/ckeditor_install/templates/ckeditor/lang/sk.js +0 -6
  924. data/generators/ckeditor_install/templates/ckeditor/lang/sl.js +0 -6
  925. data/generators/ckeditor_install/templates/ckeditor/lang/sr-latn.js +0 -6
  926. data/generators/ckeditor_install/templates/ckeditor/lang/sr.js +0 -6
  927. data/generators/ckeditor_install/templates/ckeditor/lang/sv.js +0 -6
  928. data/generators/ckeditor_install/templates/ckeditor/lang/th.js +0 -6
  929. data/generators/ckeditor_install/templates/ckeditor/lang/tr.js +0 -6
  930. data/generators/ckeditor_install/templates/ckeditor/lang/uk.js +0 -6
  931. data/generators/ckeditor_install/templates/ckeditor/lang/vi.js +0 -6
  932. data/generators/ckeditor_install/templates/ckeditor/lang/zh-cn.js +0 -6
  933. data/generators/ckeditor_install/templates/ckeditor/lang/zh.js +0 -6
  934. data/generators/ckeditor_install/templates/ckeditor/plugins/clipboard/dialogs/paste.js +0 -7
  935. data/generators/ckeditor_install/templates/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -7
  936. data/generators/ckeditor_install/templates/ckeditor/plugins/flash/dialogs/flash.js +0 -9
  937. data/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/button.js +0 -6
  938. data/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/checkbox.js +0 -6
  939. data/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/form.js +0 -6
  940. data/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -6
  941. data/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/radio.js +0 -6
  942. data/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/select.js +0 -9
  943. data/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/textarea.js +0 -6
  944. data/generators/ckeditor_install/templates/ckeditor/plugins/forms/dialogs/textfield.js +0 -7
  945. data/generators/ckeditor_install/templates/ckeditor/plugins/image/dialogs/image.js +0 -13
  946. data/generators/ckeditor_install/templates/ckeditor/plugins/link/dialogs/anchor.js +0 -6
  947. data/generators/ckeditor_install/templates/ckeditor/plugins/link/dialogs/link.js +0 -11
  948. data/generators/ckeditor_install/templates/ckeditor/plugins/pastefromword/filter/default.js +0 -10
  949. data/generators/ckeditor_install/templates/ckeditor/plugins/scayt/dialogs/options.js +0 -8
  950. data/generators/ckeditor_install/templates/ckeditor/plugins/smiley/dialogs/smiley.js +0 -7
  951. data/generators/ckeditor_install/templates/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -7
  952. data/generators/ckeditor_install/templates/ckeditor/plugins/table/dialogs/table.js +0 -9
  953. data/generators/ckeditor_install/templates/ckeditor/plugins/tableresize/plugin.js +0 -7
  954. data/generators/ckeditor_install/templates/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -8
  955. data/generators/ckeditor_install/templates/ckeditor/plugins/wsc/dialogs/wsc.js +0 -7
  956. data/generators/ckeditor_install/templates/ckeditor/skins/kama/dialog.css +0 -9
  957. data/generators/ckeditor_install/templates/ckeditor/skins/kama/editor.css +0 -12
  958. data/generators/ckeditor_install/templates/ckeditor/skins/kama/icons.png +0 -0
  959. data/generators/ckeditor_install/templates/ckeditor/skins/kama/icons_rtl.png +0 -0
  960. data/generators/ckeditor_install/templates/ckeditor/skins/kama/skin.js +0 -7
  961. data/generators/ckeditor_install/templates/ckeditor/skins/office2003/dialog.css +0 -9
  962. data/generators/ckeditor_install/templates/ckeditor/skins/office2003/editor.css +0 -13
  963. data/generators/ckeditor_install/templates/ckeditor/skins/office2003/icons.png +0 -0
  964. data/generators/ckeditor_install/templates/ckeditor/skins/office2003/icons_rtl.png +0 -0
  965. data/generators/ckeditor_install/templates/ckeditor/skins/office2003/skin.js +0 -6
  966. data/generators/ckeditor_install/templates/ckeditor/skins/v2/dialog.css +0 -9
  967. data/generators/ckeditor_install/templates/ckeditor/skins/v2/editor.css +0 -12
  968. data/generators/ckeditor_install/templates/ckeditor/skins/v2/icons.png +0 -0
  969. data/generators/ckeditor_install/templates/ckeditor/skins/v2/icons_rtl.png +0 -0
  970. data/generators/ckeditor_install/templates/ckeditor/skins/v2/skin.js +0 -6
  971. data/generators/ckeditor_install/templates/ckeditor/themes/default/theme.js +0 -8
  972. data/generators/ckeditor_migration/USAGE +0 -12
  973. data/generators/ckeditor_migration/ckeditor_migration_generator.rb +0 -36
  974. data/generators/ckeditor_migration/templates/models/paperclip/asset.rb +0 -88
  975. data/lib/ckeditor/safe_buffer.rb +0 -34
@@ -0,0 +1,554 @@
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 Undo/Redo system for saving shapshot for document modification
8
+ * and other recordable changes.
9
+ */
10
+
11
+ (function()
12
+ {
13
+ CKEDITOR.plugins.add( 'undo',
14
+ {
15
+ requires : [ 'selection', 'wysiwygarea' ],
16
+
17
+ init : function( editor )
18
+ {
19
+ var undoManager = new UndoManager( editor );
20
+
21
+ var undoCommand = editor.addCommand( 'undo',
22
+ {
23
+ exec : function()
24
+ {
25
+ if ( undoManager.undo() )
26
+ {
27
+ editor.selectionChange();
28
+ this.fire( 'afterUndo' );
29
+ }
30
+ },
31
+ state : CKEDITOR.TRISTATE_DISABLED,
32
+ canUndo : false
33
+ });
34
+
35
+ var redoCommand = editor.addCommand( 'redo',
36
+ {
37
+ exec : function()
38
+ {
39
+ if ( undoManager.redo() )
40
+ {
41
+ editor.selectionChange();
42
+ this.fire( 'afterRedo' );
43
+ }
44
+ },
45
+ state : CKEDITOR.TRISTATE_DISABLED,
46
+ canUndo : false
47
+ });
48
+
49
+ undoManager.onChange = function()
50
+ {
51
+ undoCommand.setState( undoManager.undoable() ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
52
+ redoCommand.setState( undoManager.redoable() ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
53
+ };
54
+
55
+ function recordCommand( event )
56
+ {
57
+ // If the command hasn't been marked to not support undo.
58
+ if ( undoManager.enabled && event.data.command.canUndo !== false )
59
+ undoManager.save();
60
+ }
61
+
62
+ // We'll save snapshots before and after executing a command.
63
+ editor.on( 'beforeCommandExec', recordCommand );
64
+ editor.on( 'afterCommandExec', recordCommand );
65
+
66
+ // Save snapshots before doing custom changes.
67
+ editor.on( 'saveSnapshot', function()
68
+ {
69
+ undoManager.save();
70
+ });
71
+
72
+ // Registering keydown on every document recreation.(#3844)
73
+ editor.on( 'contentDom', function()
74
+ {
75
+ editor.document.on( 'keydown', function( event )
76
+ {
77
+ // Do not capture CTRL hotkeys.
78
+ if ( !event.data.$.ctrlKey && !event.data.$.metaKey )
79
+ undoManager.type( event );
80
+ });
81
+ });
82
+
83
+ // Always save an undo snapshot - the previous mode might have
84
+ // changed editor contents.
85
+ editor.on( 'beforeModeUnload', function()
86
+ {
87
+ editor.mode == 'wysiwyg' && undoManager.save( true );
88
+ });
89
+
90
+ // Make the undo manager available only in wysiwyg mode.
91
+ editor.on( 'mode', function()
92
+ {
93
+ undoManager.enabled = editor.mode == 'wysiwyg';
94
+ undoManager.onChange();
95
+ });
96
+
97
+ editor.ui.addButton( 'Undo',
98
+ {
99
+ label : editor.lang.undo,
100
+ command : 'undo'
101
+ });
102
+
103
+ editor.ui.addButton( 'Redo',
104
+ {
105
+ label : editor.lang.redo,
106
+ command : 'redo'
107
+ });
108
+
109
+ editor.resetUndo = function()
110
+ {
111
+ // Reset the undo stack.
112
+ undoManager.reset();
113
+
114
+ // Create the first image.
115
+ editor.fire( 'saveSnapshot' );
116
+ };
117
+
118
+ /**
119
+ * Update the undo stacks with any subsequent DOM changes after this call.
120
+ * @name CKEDITOR.editor#updateUndo
121
+ * @example
122
+ * function()
123
+ * {
124
+ * editor.fire( 'updateSnapshot' );
125
+ * ...
126
+ * // Ask to include subsequent (in this call stack) DOM changes to be
127
+ * // considered as part of the first snapshot.
128
+ * editor.fire( 'updateSnapshot' );
129
+ * editor.document.body.append(...);
130
+ * ...
131
+ * }
132
+ */
133
+ editor.on( 'updateSnapshot', function()
134
+ {
135
+ if ( undoManager.currentImage && new Image( editor ).equals( undoManager.currentImage ) )
136
+ setTimeout( function() { undoManager.update(); }, 0 );
137
+ });
138
+ }
139
+ });
140
+
141
+ CKEDITOR.plugins.undo = {};
142
+
143
+ /**
144
+ * Undo snapshot which represents the current document status.
145
+ * @name CKEDITOR.plugins.undo.Image
146
+ * @param editor The editor instance on which the image is created.
147
+ */
148
+ var Image = CKEDITOR.plugins.undo.Image = function( editor )
149
+ {
150
+ this.editor = editor;
151
+ var contents = editor.getSnapshot(),
152
+ selection = contents && editor.getSelection();
153
+
154
+ // In IE, we need to remove the expando attributes.
155
+ CKEDITOR.env.ie && contents && ( contents = contents.replace( /\s+data-cke-expando=".*?"/g, '' ) );
156
+
157
+ this.contents = contents;
158
+ this.bookmarks = selection && selection.createBookmarks2( true );
159
+ };
160
+
161
+ // Attributes that browser may changing them when setting via innerHTML.
162
+ var protectedAttrs = /\b(?:href|src|name)="[^"]*?"/gi;
163
+
164
+ Image.prototype =
165
+ {
166
+ equals : function( otherImage, contentOnly )
167
+ {
168
+
169
+ var thisContents = this.contents,
170
+ otherContents = otherImage.contents;
171
+
172
+ // For IE6/7 : Comparing only the protected attribute values but not the original ones.(#4522)
173
+ if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) )
174
+ {
175
+ thisContents = thisContents.replace( protectedAttrs, '' );
176
+ otherContents = otherContents.replace( protectedAttrs, '' );
177
+ }
178
+
179
+ if ( thisContents != otherContents )
180
+ return false;
181
+
182
+ if ( contentOnly )
183
+ return true;
184
+
185
+ var bookmarksA = this.bookmarks,
186
+ bookmarksB = otherImage.bookmarks;
187
+
188
+ if ( bookmarksA || bookmarksB )
189
+ {
190
+ if ( !bookmarksA || !bookmarksB || bookmarksA.length != bookmarksB.length )
191
+ return false;
192
+
193
+ for ( var i = 0 ; i < bookmarksA.length ; i++ )
194
+ {
195
+ var bookmarkA = bookmarksA[ i ],
196
+ bookmarkB = bookmarksB[ i ];
197
+
198
+ if (
199
+ bookmarkA.startOffset != bookmarkB.startOffset ||
200
+ bookmarkA.endOffset != bookmarkB.endOffset ||
201
+ !CKEDITOR.tools.arrayCompare( bookmarkA.start, bookmarkB.start ) ||
202
+ !CKEDITOR.tools.arrayCompare( bookmarkA.end, bookmarkB.end ) )
203
+ {
204
+ return false;
205
+ }
206
+ }
207
+ }
208
+
209
+ return true;
210
+ }
211
+ };
212
+
213
+ /**
214
+ * @constructor Main logic for Redo/Undo feature.
215
+ */
216
+ function UndoManager( editor )
217
+ {
218
+ this.editor = editor;
219
+
220
+ // Reset the undo stack.
221
+ this.reset();
222
+ }
223
+
224
+
225
+ var editingKeyCodes = { /*Backspace*/ 8:1, /*Delete*/ 46:1 },
226
+ modifierKeyCodes = { /*Shift*/ 16:1, /*Ctrl*/ 17:1, /*Alt*/ 18:1 },
227
+ navigationKeyCodes = { 37:1, 38:1, 39:1, 40:1 }; // Arrows: L, T, R, B
228
+
229
+ UndoManager.prototype =
230
+ {
231
+ /**
232
+ * Process undo system regard keystrikes.
233
+ * @param {CKEDITOR.dom.event} event
234
+ */
235
+ type : function( event )
236
+ {
237
+ var keystroke = event && event.data.getKey(),
238
+ isModifierKey = keystroke in modifierKeyCodes,
239
+ isEditingKey = keystroke in editingKeyCodes,
240
+ wasEditingKey = this.lastKeystroke in editingKeyCodes,
241
+ sameAsLastEditingKey = isEditingKey && keystroke == this.lastKeystroke,
242
+ // Keystrokes which navigation through contents.
243
+ isReset = keystroke in navigationKeyCodes,
244
+ wasReset = this.lastKeystroke in navigationKeyCodes,
245
+
246
+ // Keystrokes which just introduce new contents.
247
+ isContent = ( !isEditingKey && !isReset ),
248
+
249
+ // Create undo snap for every different modifier key.
250
+ modifierSnapshot = ( isEditingKey && !sameAsLastEditingKey ),
251
+ // Create undo snap on the following cases:
252
+ // 1. Just start to type .
253
+ // 2. Typing some content after a modifier.
254
+ // 3. Typing some content after make a visible selection.
255
+ startedTyping = !( isModifierKey || this.typing )
256
+ || ( isContent && ( wasEditingKey || wasReset ) );
257
+
258
+ if ( startedTyping || modifierSnapshot )
259
+ {
260
+ var beforeTypeImage = new Image( this.editor );
261
+
262
+ // Use setTimeout, so we give the necessary time to the
263
+ // browser to insert the character into the DOM.
264
+ CKEDITOR.tools.setTimeout( function()
265
+ {
266
+ var currentSnapshot = this.editor.getSnapshot();
267
+
268
+ // In IE, we need to remove the expando attributes.
269
+ if ( CKEDITOR.env.ie )
270
+ currentSnapshot = currentSnapshot.replace( /\s+data-cke-expando=".*?"/g, '' );
271
+
272
+ if ( beforeTypeImage.contents != currentSnapshot )
273
+ {
274
+ // It's safe to now indicate typing state.
275
+ this.typing = true;
276
+
277
+ // This's a special save, with specified snapshot
278
+ // and without auto 'fireChange'.
279
+ if ( !this.save( false, beforeTypeImage, false ) )
280
+ // Drop future snapshots.
281
+ this.snapshots.splice( this.index + 1, this.snapshots.length - this.index - 1 );
282
+
283
+ this.hasUndo = true;
284
+ this.hasRedo = false;
285
+
286
+ this.typesCount = 1;
287
+ this.modifiersCount = 1;
288
+
289
+ this.onChange();
290
+ }
291
+ },
292
+ 0, this
293
+ );
294
+ }
295
+
296
+ this.lastKeystroke = keystroke;
297
+
298
+ // Create undo snap after typed too much (over 25 times).
299
+ if ( isEditingKey )
300
+ {
301
+ this.typesCount = 0;
302
+ this.modifiersCount++;
303
+
304
+ if ( this.modifiersCount > 25 )
305
+ {
306
+ this.save( false, null, false );
307
+ this.modifiersCount = 1;
308
+ }
309
+ }
310
+ else if ( !isReset )
311
+ {
312
+ this.modifiersCount = 0;
313
+ this.typesCount++;
314
+
315
+ if ( this.typesCount > 25 )
316
+ {
317
+ this.save( false, null, false );
318
+ this.typesCount = 1;
319
+ }
320
+ }
321
+
322
+ },
323
+
324
+ reset : function() // Reset the undo stack.
325
+ {
326
+ /**
327
+ * Remember last pressed key.
328
+ */
329
+ this.lastKeystroke = 0;
330
+
331
+ /**
332
+ * Stack for all the undo and redo snapshots, they're always created/removed
333
+ * in consistency.
334
+ */
335
+ this.snapshots = [];
336
+
337
+ /**
338
+ * Current snapshot history index.
339
+ */
340
+ this.index = -1;
341
+
342
+ this.limit = this.editor.config.undoStackSize || 20;
343
+
344
+ this.currentImage = null;
345
+
346
+ this.hasUndo = false;
347
+ this.hasRedo = false;
348
+
349
+ this.resetType();
350
+ },
351
+
352
+ /**
353
+ * Reset all states about typing.
354
+ * @see UndoManager.type
355
+ */
356
+ resetType : function()
357
+ {
358
+ this.typing = false;
359
+ delete this.lastKeystroke;
360
+ this.typesCount = 0;
361
+ this.modifiersCount = 0;
362
+ },
363
+ fireChange : function()
364
+ {
365
+ this.hasUndo = !!this.getNextImage( true );
366
+ this.hasRedo = !!this.getNextImage( false );
367
+ // Reset typing
368
+ this.resetType();
369
+ this.onChange();
370
+ },
371
+
372
+ /**
373
+ * Save a snapshot of document image for later retrieve.
374
+ */
375
+ save : function( onContentOnly, image, autoFireChange )
376
+ {
377
+ var snapshots = this.snapshots;
378
+
379
+ // Get a content image.
380
+ if ( !image )
381
+ image = new Image( this.editor );
382
+
383
+ // Do nothing if it was not possible to retrieve an image.
384
+ if ( image.contents === false )
385
+ return false;
386
+
387
+ // Check if this is a duplicate. In such case, do nothing.
388
+ if ( this.currentImage && image.equals( this.currentImage, onContentOnly ) )
389
+ return false;
390
+
391
+ // Drop future snapshots.
392
+ snapshots.splice( this.index + 1, snapshots.length - this.index - 1 );
393
+
394
+ // If we have reached the limit, remove the oldest one.
395
+ if ( snapshots.length == this.limit )
396
+ snapshots.shift();
397
+
398
+ // Add the new image, updating the current index.
399
+ this.index = snapshots.push( image ) - 1;
400
+
401
+ this.currentImage = image;
402
+
403
+ if ( autoFireChange !== false )
404
+ this.fireChange();
405
+ return true;
406
+ },
407
+
408
+ restoreImage : function( image )
409
+ {
410
+ this.editor.loadSnapshot( image.contents );
411
+
412
+ if ( image.bookmarks )
413
+ this.editor.getSelection().selectBookmarks( image.bookmarks );
414
+ else if ( CKEDITOR.env.ie )
415
+ {
416
+ // IE BUG: If I don't set the selection to *somewhere* after setting
417
+ // document contents, then IE would create an empty paragraph at the bottom
418
+ // the next time the document is modified.
419
+ var $range = this.editor.document.getBody().$.createTextRange();
420
+ $range.collapse( true );
421
+ $range.select();
422
+ }
423
+
424
+ this.index = image.index;
425
+
426
+ // Update current image with the actual editor
427
+ // content, since actualy content may differ from
428
+ // the original snapshot due to dom change. (#4622)
429
+ this.update();
430
+ this.fireChange();
431
+ },
432
+
433
+ // Get the closest available image.
434
+ getNextImage : function( isUndo )
435
+ {
436
+ var snapshots = this.snapshots,
437
+ currentImage = this.currentImage,
438
+ image, i;
439
+
440
+ if ( currentImage )
441
+ {
442
+ if ( isUndo )
443
+ {
444
+ for ( i = this.index - 1 ; i >= 0 ; i-- )
445
+ {
446
+ image = snapshots[ i ];
447
+ if ( !currentImage.equals( image, true ) )
448
+ {
449
+ image.index = i;
450
+ return image;
451
+ }
452
+ }
453
+ }
454
+ else
455
+ {
456
+ for ( i = this.index + 1 ; i < snapshots.length ; i++ )
457
+ {
458
+ image = snapshots[ i ];
459
+ if ( !currentImage.equals( image, true ) )
460
+ {
461
+ image.index = i;
462
+ return image;
463
+ }
464
+ }
465
+ }
466
+ }
467
+
468
+ return null;
469
+ },
470
+
471
+ /**
472
+ * Check the current redo state.
473
+ * @return {Boolean} Whether the document has previous state to
474
+ * retrieve.
475
+ */
476
+ redoable : function()
477
+ {
478
+ return this.enabled && this.hasRedo;
479
+ },
480
+
481
+ /**
482
+ * Check the current undo state.
483
+ * @return {Boolean} Whether the document has future state to restore.
484
+ */
485
+ undoable : function()
486
+ {
487
+ return this.enabled && this.hasUndo;
488
+ },
489
+
490
+ /**
491
+ * Perform undo on current index.
492
+ */
493
+ undo : function()
494
+ {
495
+ if ( this.undoable() )
496
+ {
497
+ this.save( true );
498
+
499
+ var image = this.getNextImage( true );
500
+ if ( image )
501
+ return this.restoreImage( image ), true;
502
+ }
503
+
504
+ return false;
505
+ },
506
+
507
+ /**
508
+ * Perform redo on current index.
509
+ */
510
+ redo : function()
511
+ {
512
+ if ( this.redoable() )
513
+ {
514
+ // Try to save. If no changes have been made, the redo stack
515
+ // will not change, so it will still be redoable.
516
+ this.save( true );
517
+
518
+ // If instead we had changes, we can't redo anymore.
519
+ if ( this.redoable() )
520
+ {
521
+ var image = this.getNextImage( false );
522
+ if ( image )
523
+ return this.restoreImage( image ), true;
524
+ }
525
+ }
526
+
527
+ return false;
528
+ },
529
+
530
+ /**
531
+ * Update the last snapshot of the undo stack with the current editor content.
532
+ */
533
+ update : function()
534
+ {
535
+ this.snapshots.splice( this.index, 1, ( this.currentImage = new Image( this.editor ) ) );
536
+ }
537
+ };
538
+ })();
539
+
540
+ /**
541
+ * The number of undo steps to be saved. The higher this setting value the more
542
+ * memory is used for it.
543
+ * @type Number
544
+ * @default 20
545
+ * @example
546
+ * config.undoStackSize = 50;
547
+ */
548
+
549
+ /**
550
+ * Fired when the editor is about to save an undo snapshot. This event can be
551
+ * fired by plugins and customizations to make the editor saving undo snapshots.
552
+ * @name CKEDITOR.editor#saveSnapshot
553
+ * @event
554
+ */