ckeditor 3.5.0 → 3.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (661) hide show
  1. data/README.rdoc +30 -6
  2. data/app/controllers/ckeditor/attachments_controller.rb +1 -1
  3. data/app/controllers/ckeditor/base_controller.rb +1 -1
  4. data/app/controllers/ckeditor/pictures_controller.rb +1 -1
  5. data/app/helpers/ckeditor/base_helper.rb +1 -1
  6. data/app/views/ckeditor/_asset.html.erb +18 -13
  7. data/app/views/ckeditor/_swfupload.html.erb +22 -0
  8. data/app/views/ckeditor/attachments/index.html.erb +2 -40
  9. data/app/views/ckeditor/pictures/index.html.erb +1 -39
  10. data/app/views/layouts/ckeditor.html.erb +5 -2
  11. data/config/locales/en.ckeditor.yml +11 -0
  12. data/config/locales/ru.ckeditor.yml +11 -0
  13. data/config/locales/uk.ckeditor.yml +11 -0
  14. data/lib/ckeditor.rb +5 -1
  15. data/lib/ckeditor/engine.rb +5 -1
  16. data/lib/ckeditor/hooks/formtastic.rb +15 -0
  17. data/lib/ckeditor/hooks/simple_form.rb +28 -0
  18. data/lib/ckeditor/utils.rb +45 -16
  19. data/lib/ckeditor/version.rb +1 -1
  20. data/lib/generators/ckeditor/base/USAGE +3 -1
  21. data/lib/generators/ckeditor/base/base_generator.rb +28 -1
  22. data/lib/generators/ckeditor/base/templates/ckeditor/css/ckfinder.css +17 -0
  23. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/fileprogress.js +114 -123
  24. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/handlers.js +11 -0
  25. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/jquery-1.5.1.min.js +16 -0
  26. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/rails.js +158 -0
  27. data/lib/generators/ckeditor/migration/templates/models/paperclip/asset.rb +2 -0
  28. metadata +17 -643
  29. data/lib/ckeditor/formtastic.rb +0 -12
  30. data/lib/generators/ckeditor/base/templates/ckeditor/CHANGES.html +0 -1063
  31. data/lib/generators/ckeditor/base/templates/ckeditor/INSTALL.html +0 -92
  32. data/lib/generators/ckeditor/base/templates/ckeditor/LICENSE.html +0 -1334
  33. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/application.xml +0 -32
  34. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/run.bat +0 -9
  35. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/run.sh +0 -8
  36. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/adobeair/sample.html +0 -45
  37. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/ajax.html +0 -87
  38. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/api.html +0 -174
  39. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/api_dialog.html +0 -188
  40. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/api_dialog/my_dialog.js +0 -28
  41. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/advanced.asp +0 -105
  42. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/events.asp +0 -136
  43. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/index.html +0 -103
  44. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/replace.asp +0 -72
  45. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/replaceall.asp +0 -77
  46. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/sample_posteddata.asp +0 -46
  47. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/asp/standalone.asp +0 -72
  48. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/assets/output_for_flash.fla +0 -0
  49. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/assets/output_for_flash.swf +0 -0
  50. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/assets/output_xhtml.css +0 -204
  51. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/assets/swfobject.js +0 -18
  52. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/autogrow.html +0 -75
  53. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/divreplace.html +0 -137
  54. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/enterkey.html +0 -88
  55. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/fullpage.html +0 -62
  56. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/index.html +0 -58
  57. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/jqueryadapter.html +0 -73
  58. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/output_for_flash.html +0 -257
  59. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/output_html.html +0 -259
  60. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/output_xhtml.html +0 -159
  61. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/advanced.php +0 -93
  62. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/events.php +0 -130
  63. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/replace.php +0 -63
  64. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/replaceall.php +0 -68
  65. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/php/standalone.php +0 -64
  66. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/placeholder.html +0 -62
  67. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/replacebyclass.html +0 -49
  68. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/replacebycode.html +0 -80
  69. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/sample.css +0 -81
  70. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/sample.js +0 -65
  71. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/sample_posteddata.php +0 -59
  72. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/sharedspaces.html +0 -131
  73. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/skins.html +0 -83
  74. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/ui_color.html +0 -87
  75. data/lib/generators/ckeditor/base/templates/ckeditor/_samples/ui_languages.html +0 -103
  76. data/lib/generators/ckeditor/base/templates/ckeditor/_source/adapters/jquery.js +0 -300
  77. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/_bootstrap.js +0 -96
  78. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ajax.js +0 -142
  79. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ckeditor.js +0 -133
  80. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ckeditor_base.js +0 -196
  81. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ckeditor_basic.js +0 -239
  82. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/command.js +0 -209
  83. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/commanddefinition.js +0 -129
  84. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/config.js +0 -431
  85. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dataprocessor.js +0 -65
  86. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom.js +0 -20
  87. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/comment.js +0 -32
  88. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/document.js +0 -251
  89. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/documentfragment.js +0 -49
  90. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/domobject.js +0 -258
  91. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/element.js +0 -1615
  92. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/elementpath.js +0 -119
  93. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/event.js +0 -142
  94. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/node.js +0 -696
  95. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/nodelist.js +0 -26
  96. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/range.js +0 -1893
  97. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/rangelist.js +0 -213
  98. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/text.js +0 -123
  99. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/walker.js +0 -444
  100. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dom/window.js +0 -96
  101. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/dtd.js +0 -238
  102. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/editor.js +0 -943
  103. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/editor_basic.js +0 -182
  104. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/env.js +0 -272
  105. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/event.js +0 -342
  106. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/eventInfo.js +0 -120
  107. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/focusmanager.js +0 -152
  108. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser.js +0 -224
  109. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/basicwriter.js +0 -145
  110. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/cdata.js +0 -43
  111. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/comment.js +0 -60
  112. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/element.js +0 -240
  113. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/filter.js +0 -288
  114. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/fragment.js +0 -504
  115. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/htmlparser/text.js +0 -55
  116. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/lang.js +0 -156
  117. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/loader.js +0 -242
  118. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/plugindefinition.js +0 -66
  119. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/plugins.js +0 -85
  120. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/resourcemanager.js +0 -238
  121. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/scriptloader.js +0 -200
  122. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/skins.js +0 -184
  123. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/themes.js +0 -19
  124. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/tools.js +0 -734
  125. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/ui.js +0 -118
  126. data/lib/generators/ckeditor/base/templates/ckeditor/_source/core/xml.js +0 -165
  127. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/_languages.js +0 -83
  128. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/_translationstatus.txt +0 -60
  129. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/af.js +0 -752
  130. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ar.js +0 -752
  131. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/bg.js +0 -752
  132. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/bn.js +0 -752
  133. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/bs.js +0 -752
  134. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ca.js +0 -752
  135. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/cs.js +0 -752
  136. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/cy.js +0 -752
  137. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/da.js +0 -752
  138. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/de.js +0 -752
  139. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/el.js +0 -752
  140. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en-au.js +0 -752
  141. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en-ca.js +0 -752
  142. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en-gb.js +0 -752
  143. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/en.js +0 -752
  144. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/eo.js +0 -752
  145. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/es.js +0 -752
  146. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/et.js +0 -752
  147. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/eu.js +0 -752
  148. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fa.js +0 -752
  149. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fi.js +0 -752
  150. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fo.js +0 -752
  151. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fr-ca.js +0 -752
  152. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/fr.js +0 -752
  153. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/gl.js +0 -752
  154. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/gu.js +0 -752
  155. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/he.js +0 -752
  156. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/hi.js +0 -752
  157. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/hr.js +0 -752
  158. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/hu.js +0 -752
  159. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/is.js +0 -752
  160. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/it.js +0 -752
  161. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ja.js +0 -752
  162. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/km.js +0 -752
  163. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ko.js +0 -752
  164. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/lt.js +0 -752
  165. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/lv.js +0 -752
  166. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/mn.js +0 -752
  167. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ms.js +0 -752
  168. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/nb.js +0 -752
  169. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/nl.js +0 -752
  170. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/no.js +0 -752
  171. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/pl.js +0 -752
  172. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/pt-br.js +0 -751
  173. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/pt.js +0 -752
  174. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ro.js +0 -752
  175. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/ru.js +0 -752
  176. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sk.js +0 -752
  177. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sl.js +0 -752
  178. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sr-latn.js +0 -752
  179. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sr.js +0 -752
  180. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/sv.js +0 -752
  181. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/th.js +0 -752
  182. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/tr.js +0 -751
  183. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/uk.js +0 -752
  184. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/vi.js +0 -752
  185. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/zh-cn.js +0 -752
  186. data/lib/generators/ckeditor/base/templates/ckeditor/_source/lang/zh.js +0 -752
  187. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +0 -211
  188. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/a11yhelp/lang/en.js +0 -108
  189. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/a11yhelp/lang/he.js +0 -216
  190. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/a11yhelp/plugin.js +0 -46
  191. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/about/dialogs/about.js +0 -73
  192. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png +0 -0
  193. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/about/plugin.js +0 -23
  194. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/adobeair/plugin.js +0 -228
  195. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/ajax_save/plugin.js +0 -43
  196. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/dialogs/attachment.js +0 -384
  197. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/images/attachment.png +0 -0
  198. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/lang/en.js +0 -10
  199. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/lang/ru.js +0 -10
  200. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/lang/uk.js +0 -10
  201. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/attachment/plugin.js +0 -44
  202. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/autogrow/plugin.js +0 -86
  203. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/basicstyles/plugin.js +0 -101
  204. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/bidi/plugin.js +0 -265
  205. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/blockquote/plugin.js +0 -301
  206. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/button/plugin.js +0 -295
  207. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/clipboard/dialogs/paste.js +0 -212
  208. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/clipboard/plugin.js +0 -412
  209. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/colorbutton/plugin.js +0 -291
  210. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js +0 -340
  211. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/colordialog/plugin.js +0 -13
  212. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/contextmenu/plugin.js +0 -177
  213. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialog/dialogDefinition.js +0 -315
  214. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialog/plugin.js +0 -3067
  215. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialogadvtab/plugin.js +0 -213
  216. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/dialogui/plugin.js +0 -1523
  217. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/div/dialogs/div.js +0 -535
  218. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/div/plugin.js +0 -121
  219. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/domiterator/plugin.js +0 -356
  220. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/editingblock/plugin.js +0 -229
  221. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/elementspath/plugin.js +0 -201
  222. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/dialogs/embed.js +0 -65
  223. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/images/embed.png +0 -0
  224. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/lang/en.js +0 -9
  225. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/lang/ru.js +0 -9
  226. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/lang/uk.js +0 -9
  227. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/embed/plugin.js +0 -43
  228. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/enterkey/plugin.js +0 -381
  229. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/entities/plugin.js +0 -226
  230. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/fakeobjects/plugin.js +0 -126
  231. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/filebrowser/plugin.js +0 -501
  232. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/find/dialogs/find.js +0 -890
  233. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/find/plugin.js +0 -46
  234. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/flash/dialogs/flash.js +0 -698
  235. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/flash/images/placeholder.png +0 -0
  236. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/flash/plugin.js +0 -168
  237. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/floatpanel/plugin.js +0 -405
  238. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/font/plugin.js +0 -234
  239. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/format/plugin.js +0 -194
  240. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/button.js +0 -135
  241. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/checkbox.js +0 -153
  242. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/form.js +0 -177
  243. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js +0 -98
  244. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/radio.js +0 -135
  245. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/select.js +0 -556
  246. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/textarea.js +0 -114
  247. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/dialogs/textfield.js +0 -199
  248. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/images/hiddenfield.gif +0 -0
  249. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/forms/plugin.js +0 -284
  250. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/horizontalrule/plugin.js +0 -36
  251. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/htmldataprocessor/plugin.js +0 -543
  252. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/htmlwriter/plugin.js +0 -319
  253. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframe/dialogs/iframe.js +0 -257
  254. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframe/images/placeholder.png +0 -0
  255. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframe/plugin.js +0 -106
  256. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/iframedialog/plugin.js +0 -136
  257. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/image/dialogs/image.js +0 -1388
  258. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/image/plugin.js +0 -81
  259. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/indent/plugin.js +0 -468
  260. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/justify/plugin.js +0 -239
  261. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/keystrokes/plugin.js +0 -225
  262. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/dialogs/anchor.js +0 -99
  263. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/dialogs/link.js +0 -1426
  264. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/images/anchor.gif +0 -0
  265. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/link/plugin.js +0 -241
  266. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/list/plugin.js +0 -723
  267. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/listblock/plugin.js +0 -257
  268. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +0 -204
  269. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/liststyle/plugin.js +0 -66
  270. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/maximize/plugin.js +0 -340
  271. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/menu/plugin.js +0 -505
  272. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/menubutton/plugin.js +0 -98
  273. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/newpage/plugin.js +0 -53
  274. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif +0 -0
  275. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pagebreak/plugin.js +0 -120
  276. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/panel/plugin.js +0 -395
  277. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/panelbutton/plugin.js +0 -146
  278. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastefromword/filter/default.js +0 -1175
  279. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastefromword/plugin.js +0 -122
  280. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +0 -70
  281. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastetext/plugin.js +0 -85
  282. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/dialogs/placeholder.js +0 -78
  283. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/lang/en.js +0 -16
  284. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/placeholder.gif +0 -0
  285. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/placeholder/plugin.js +0 -160
  286. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/popup/plugin.js +0 -64
  287. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/preview/plugin.js +0 -108
  288. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/print/plugin.js +0 -41
  289. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/removeformat/plugin.js +0 -184
  290. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/resize/plugin.js +0 -157
  291. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/richcombo/plugin.js +0 -371
  292. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/save/plugin.js +0 -55
  293. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/scayt/dialogs/options.js +0 -534
  294. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/scayt/dialogs/toolbar.css +0 -71
  295. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/scayt/plugin.js +0 -947
  296. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/selection/plugin.js +0 -1375
  297. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_address.png +0 -0
  298. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_blockquote.png +0 -0
  299. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_div.png +0 -0
  300. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h1.png +0 -0
  301. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h2.png +0 -0
  302. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h3.png +0 -0
  303. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h4.png +0 -0
  304. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h5.png +0 -0
  305. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_h6.png +0 -0
  306. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_p.png +0 -0
  307. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/images/block_pre.png +0 -0
  308. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showblocks/plugin.js +0 -156
  309. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/showborders/plugin.js +0 -203
  310. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/dialogs/smiley.js +0 -223
  311. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/angel_smile.gif +0 -0
  312. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/angry_smile.gif +0 -0
  313. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/broken_heart.gif +0 -0
  314. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/confused_smile.gif +0 -0
  315. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/cry_smile.gif +0 -0
  316. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/devil_smile.gif +0 -0
  317. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif +0 -0
  318. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/envelope.gif +0 -0
  319. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/heart.gif +0 -0
  320. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/kiss.gif +0 -0
  321. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/lightbulb.gif +0 -0
  322. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/omg_smile.gif +0 -0
  323. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/regular_smile.gif +0 -0
  324. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/sad_smile.gif +0 -0
  325. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/shades_smile.gif +0 -0
  326. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/teeth_smile.gif +0 -0
  327. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/thumbs_down.gif +0 -0
  328. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/thumbs_up.gif +0 -0
  329. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/tounge_smile.gif +0 -0
  330. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  331. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/images/wink_smile.gif +0 -0
  332. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/smiley/plugin.js +0 -94
  333. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/sourcearea/plugin.js +0 -196
  334. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js +0 -347
  335. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/specialchar/lang/en.js +0 -89
  336. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/specialchar/plugin.js +0 -70
  337. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/styles/plugin.js +0 -1564
  338. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/styles/styles/default.js +0 -88
  339. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/stylescombo/plugin.js +0 -206
  340. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tab/plugin.js +0 -367
  341. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/table/dialogs/table.js +0 -672
  342. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/table/plugin.js +0 -78
  343. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tableresize/plugin.js +0 -450
  344. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +0 -525
  345. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/tabletools/plugin.js +0 -1120
  346. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/dialogs/templates.js +0 -233
  347. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/plugin.js +0 -99
  348. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/templates/default.js +0 -94
  349. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/templates/images/template1.gif +0 -0
  350. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/templates/images/template2.gif +0 -0
  351. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/templates/templates/images/template3.gif +0 -0
  352. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/toolbar/plugin.js +0 -482
  353. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js +0 -205
  354. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/lang/en.js +0 -15
  355. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/lang/he.js +0 -15
  356. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/plugin.js +0 -37
  357. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/uicolor.gif +0 -0
  358. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  359. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  360. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  361. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  362. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/assets/yui.css +0 -15
  363. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/uicolor/yui/yui.js +0 -71
  364. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/undo/plugin.js +0 -554
  365. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/dialogs/ciframe.html +0 -49
  366. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html +0 -52
  367. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.css +0 -82
  368. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/dialogs/wsc.js +0 -191
  369. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wsc/plugin.js +0 -33
  370. data/lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/wysiwygarea/plugin.js +0 -1224
  371. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/dialog.css +0 -915
  372. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/editor.css +0 -25
  373. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/elementspath.css +0 -73
  374. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/icons.css +0 -361
  375. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/icons.png +0 -0
  376. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/icons_rtl.png +0 -0
  377. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/dialog_sides.gif +0 -0
  378. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/dialog_sides.png +0 -0
  379. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png +0 -0
  380. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/mini.gif +0 -0
  381. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/noimage.png +0 -0
  382. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/sprites.png +0 -0
  383. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/sprites_ie6.png +0 -0
  384. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/images/toolbar_start.gif +0 -0
  385. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/mainui.css +0 -202
  386. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/menu.css +0 -244
  387. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/panel.css +0 -217
  388. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/presets.css +0 -49
  389. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/reset.css +0 -84
  390. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/richcombo.css +0 -287
  391. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/skin.js +0 -259
  392. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/templates.css +0 -88
  393. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/kama/toolbar.css +0 -448
  394. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/dialog.css +0 -826
  395. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/editor.css +0 -25
  396. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/elementspath.css +0 -74
  397. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/icons.css +0 -358
  398. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/icons.png +0 -0
  399. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/icons_rtl.png +0 -0
  400. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/dialog_sides.gif +0 -0
  401. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/dialog_sides.png +0 -0
  402. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png +0 -0
  403. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/mini.gif +0 -0
  404. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/noimage.png +0 -0
  405. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/sprites.png +0 -0
  406. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/images/sprites_ie6.png +0 -0
  407. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/mainui.css +0 -152
  408. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/menu.css +0 -241
  409. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/panel.css +0 -212
  410. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/presets.css +0 -49
  411. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/reset.css +0 -84
  412. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/richcombo.css +0 -318
  413. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/skin.js +0 -71
  414. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/templates.css +0 -87
  415. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/office2003/toolbar.css +0 -510
  416. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/dialog.css +0 -842
  417. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/editor.css +0 -25
  418. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/elementspath.css +0 -74
  419. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/icons.css +0 -358
  420. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/icons.png +0 -0
  421. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/icons_rtl.png +0 -0
  422. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/dialog_sides.gif +0 -0
  423. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/dialog_sides.png +0 -0
  424. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png +0 -0
  425. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/mini.gif +0 -0
  426. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/noimage.png +0 -0
  427. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/sprites.png +0 -0
  428. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/sprites_ie6.png +0 -0
  429. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/images/toolbar_start.gif +0 -0
  430. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/mainui.css +0 -161
  431. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/menu.css +0 -244
  432. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/panel.css +0 -212
  433. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/presets.css +0 -50
  434. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/reset.css +0 -84
  435. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/richcombo.css +0 -317
  436. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/skin.js +0 -67
  437. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/templates.css +0 -87
  438. data/lib/generators/ckeditor/base/templates/ckeditor/_source/skins/v2/toolbar.css +0 -453
  439. data/lib/generators/ckeditor/base/templates/ckeditor/_source/themes/default/theme.js +0 -368
  440. data/lib/generators/ckeditor/base/templates/ckeditor/adapters/jquery.js +0 -6
  441. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor.js +0 -139
  442. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor.pack +0 -211
  443. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_basic.js +0 -8
  444. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_basic_source.js +0 -20
  445. data/lib/generators/ckeditor/base/templates/ckeditor/ckeditor_source.js +0 -25
  446. data/lib/generators/ckeditor/base/templates/ckeditor/contents.css +0 -39
  447. data/lib/generators/ckeditor/base/templates/ckeditor/lang/_languages.js +0 -6
  448. data/lib/generators/ckeditor/base/templates/ckeditor/lang/_translationstatus.txt +0 -60
  449. data/lib/generators/ckeditor/base/templates/ckeditor/lang/af.js +0 -6
  450. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ar.js +0 -6
  451. data/lib/generators/ckeditor/base/templates/ckeditor/lang/bg.js +0 -6
  452. data/lib/generators/ckeditor/base/templates/ckeditor/lang/bn.js +0 -6
  453. data/lib/generators/ckeditor/base/templates/ckeditor/lang/bs.js +0 -6
  454. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ca.js +0 -6
  455. data/lib/generators/ckeditor/base/templates/ckeditor/lang/cs.js +0 -6
  456. data/lib/generators/ckeditor/base/templates/ckeditor/lang/cy.js +0 -6
  457. data/lib/generators/ckeditor/base/templates/ckeditor/lang/da.js +0 -6
  458. data/lib/generators/ckeditor/base/templates/ckeditor/lang/de.js +0 -6
  459. data/lib/generators/ckeditor/base/templates/ckeditor/lang/el.js +0 -6
  460. data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-au.js +0 -6
  461. data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-ca.js +0 -6
  462. data/lib/generators/ckeditor/base/templates/ckeditor/lang/en-gb.js +0 -6
  463. data/lib/generators/ckeditor/base/templates/ckeditor/lang/en.js +0 -6
  464. data/lib/generators/ckeditor/base/templates/ckeditor/lang/eo.js +0 -6
  465. data/lib/generators/ckeditor/base/templates/ckeditor/lang/es.js +0 -6
  466. data/lib/generators/ckeditor/base/templates/ckeditor/lang/et.js +0 -6
  467. data/lib/generators/ckeditor/base/templates/ckeditor/lang/eu.js +0 -6
  468. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fa.js +0 -6
  469. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fi.js +0 -6
  470. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fo.js +0 -6
  471. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fr-ca.js +0 -6
  472. data/lib/generators/ckeditor/base/templates/ckeditor/lang/fr.js +0 -6
  473. data/lib/generators/ckeditor/base/templates/ckeditor/lang/gl.js +0 -6
  474. data/lib/generators/ckeditor/base/templates/ckeditor/lang/gu.js +0 -6
  475. data/lib/generators/ckeditor/base/templates/ckeditor/lang/he.js +0 -6
  476. data/lib/generators/ckeditor/base/templates/ckeditor/lang/hi.js +0 -6
  477. data/lib/generators/ckeditor/base/templates/ckeditor/lang/hr.js +0 -6
  478. data/lib/generators/ckeditor/base/templates/ckeditor/lang/hu.js +0 -6
  479. data/lib/generators/ckeditor/base/templates/ckeditor/lang/is.js +0 -6
  480. data/lib/generators/ckeditor/base/templates/ckeditor/lang/it.js +0 -6
  481. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ja.js +0 -6
  482. data/lib/generators/ckeditor/base/templates/ckeditor/lang/km.js +0 -6
  483. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ko.js +0 -6
  484. data/lib/generators/ckeditor/base/templates/ckeditor/lang/lt.js +0 -6
  485. data/lib/generators/ckeditor/base/templates/ckeditor/lang/lv.js +0 -6
  486. data/lib/generators/ckeditor/base/templates/ckeditor/lang/mn.js +0 -6
  487. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ms.js +0 -6
  488. data/lib/generators/ckeditor/base/templates/ckeditor/lang/nb.js +0 -6
  489. data/lib/generators/ckeditor/base/templates/ckeditor/lang/nl.js +0 -6
  490. data/lib/generators/ckeditor/base/templates/ckeditor/lang/no.js +0 -6
  491. data/lib/generators/ckeditor/base/templates/ckeditor/lang/pl.js +0 -6
  492. data/lib/generators/ckeditor/base/templates/ckeditor/lang/pt-br.js +0 -6
  493. data/lib/generators/ckeditor/base/templates/ckeditor/lang/pt.js +0 -6
  494. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ro.js +0 -6
  495. data/lib/generators/ckeditor/base/templates/ckeditor/lang/ru.js +0 -6
  496. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sk.js +0 -6
  497. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sl.js +0 -6
  498. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sr-latn.js +0 -6
  499. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sr.js +0 -6
  500. data/lib/generators/ckeditor/base/templates/ckeditor/lang/sv.js +0 -6
  501. data/lib/generators/ckeditor/base/templates/ckeditor/lang/th.js +0 -6
  502. data/lib/generators/ckeditor/base/templates/ckeditor/lang/tr.js +0 -6
  503. data/lib/generators/ckeditor/base/templates/ckeditor/lang/uk.js +0 -6
  504. data/lib/generators/ckeditor/base/templates/ckeditor/lang/vi.js +0 -6
  505. data/lib/generators/ckeditor/base/templates/ckeditor/lang/zh-cn.js +0 -6
  506. data/lib/generators/ckeditor/base/templates/ckeditor/lang/zh.js +0 -6
  507. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -7
  508. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/a11yhelp/lang/en.js +0 -6
  509. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/a11yhelp/lang/he.js +0 -6
  510. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/about/dialogs/about.js +0 -6
  511. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  512. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/adobeair/plugin.js +0 -6
  513. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/ajax_save/plugin.js +0 -1
  514. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/dialogs/attachment.js +0 -1
  515. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/images/attachment.png +0 -0
  516. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/en.js +0 -10
  517. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/ru.js +0 -10
  518. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/lang/uk.js +0 -10
  519. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/attachment/plugin.js +0 -1
  520. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/autogrow/plugin.js +0 -6
  521. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/clipboard/dialogs/paste.js +0 -7
  522. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -7
  523. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
  524. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/div/dialogs/div.js +0 -8
  525. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/dialogs/embed.js +0 -1
  526. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/images/embed.png +0 -0
  527. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/en.js +0 -9
  528. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/ru.js +0 -9
  529. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/lang/uk.js +0 -9
  530. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/embed/plugin.js +0 -1
  531. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/find/dialogs/find.js +0 -9
  532. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/flash/dialogs/flash.js +0 -9
  533. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/flash/images/placeholder.png +0 -0
  534. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/button.js +0 -6
  535. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/checkbox.js +0 -6
  536. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/form.js +0 -6
  537. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -6
  538. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/radio.js +0 -6
  539. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/select.js +0 -9
  540. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/textarea.js +0 -6
  541. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/dialogs/textfield.js +0 -6
  542. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  543. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/iframe/dialogs/iframe.js +0 -7
  544. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  545. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/iframedialog/plugin.js +0 -6
  546. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/image/dialogs/image.js +0 -13
  547. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/link/dialogs/anchor.js +0 -6
  548. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/link/dialogs/link.js +0 -11
  549. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/link/images/anchor.gif +0 -0
  550. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -6
  551. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  552. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/pastefromword/filter/default.js +0 -10
  553. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -6
  554. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/dialogs/placeholder.js +0 -6
  555. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/lang/en.js +0 -6
  556. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/placeholder.gif +0 -0
  557. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/placeholder/plugin.js +0 -6
  558. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/scayt/dialogs/options.js +0 -8
  559. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -6
  560. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  561. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  562. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  563. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  564. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  565. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  566. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  567. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  568. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  569. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  570. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  571. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/dialogs/smiley.js +0 -7
  572. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  573. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  574. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  575. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  576. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  577. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  578. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  579. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  580. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/heart.gif +0 -0
  581. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  582. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  583. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  584. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  585. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  586. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  587. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  588. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  589. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  590. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  591. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  592. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  593. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -7
  594. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/specialchar/lang/en.js +0 -6
  595. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/styles/styles/default.js +0 -6
  596. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/table/dialogs/table.js +0 -9
  597. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/tableresize/plugin.js +0 -7
  598. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -8
  599. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/dialogs/templates.js +0 -7
  600. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/templates/default.js +0 -6
  601. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  602. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  603. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  604. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -7
  605. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/lang/en.js +0 -6
  606. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/lang/he.js +0 -6
  607. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/plugin.js +0 -6
  608. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/uicolor.gif +0 -0
  609. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  610. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  611. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  612. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  613. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -6
  614. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/uicolor/yui/yui.js +0 -76
  615. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -49
  616. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
  617. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/wsc/dialogs/wsc.css +0 -6
  618. data/lib/generators/ckeditor/base/templates/ckeditor/plugins/wsc/dialogs/wsc.js +0 -7
  619. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/dialog.css +0 -9
  620. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/editor.css +0 -13
  621. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/icons.png +0 -0
  622. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/icons_rtl.png +0 -0
  623. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  624. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/dialog_sides.png +0 -0
  625. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  626. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/mini.gif +0 -0
  627. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/noimage.png +0 -0
  628. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/sprites.png +0 -0
  629. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  630. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
  631. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/skin.js +0 -7
  632. data/lib/generators/ckeditor/base/templates/ckeditor/skins/kama/templates.css +0 -6
  633. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/dialog.css +0 -9
  634. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/editor.css +0 -14
  635. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/icons.png +0 -0
  636. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/icons_rtl.png +0 -0
  637. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
  638. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
  639. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
  640. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/mini.gif +0 -0
  641. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/noimage.png +0 -0
  642. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/sprites.png +0 -0
  643. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
  644. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/skin.js +0 -6
  645. data/lib/generators/ckeditor/base/templates/ckeditor/skins/office2003/templates.css +0 -6
  646. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/dialog.css +0 -9
  647. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/editor.css +0 -13
  648. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/icons.png +0 -0
  649. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/icons_rtl.png +0 -0
  650. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
  651. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/dialog_sides.png +0 -0
  652. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
  653. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/mini.gif +0 -0
  654. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/noimage.png +0 -0
  655. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/sprites.png +0 -0
  656. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
  657. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
  658. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/skin.js +0 -6
  659. data/lib/generators/ckeditor/base/templates/ckeditor/skins/v2/templates.css +0 -6
  660. data/lib/generators/ckeditor/base/templates/ckeditor/swfupload/mootools-1.2.3-core-yc.js +0 -356
  661. data/lib/generators/ckeditor/base/templates/ckeditor/themes/default/theme.js +0 -8
@@ -1,146 +0,0 @@
1
- /*
2
- Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
3
- For licensing, see LICENSE.html or http://ckeditor.com/license
4
- */
5
-
6
- CKEDITOR.plugins.add( 'panelbutton',
7
- {
8
- requires : [ 'button' ],
9
- beforeInit : function( editor )
10
- {
11
- editor.ui.addHandler( CKEDITOR.UI_PANELBUTTON, CKEDITOR.ui.panelButton.handler );
12
- }
13
- });
14
-
15
- /**
16
- * Button UI element.
17
- * @constant
18
- * @example
19
- */
20
- CKEDITOR.UI_PANELBUTTON = 4;
21
-
22
- (function()
23
- {
24
- var clickFn = function( editor )
25
- {
26
- var _ = this._;
27
-
28
- if ( _.state == CKEDITOR.TRISTATE_DISABLED )
29
- return;
30
-
31
- this.createPanel( editor );
32
-
33
- if ( _.on )
34
- {
35
- _.panel.hide();
36
- return;
37
- }
38
-
39
- _.panel.showBlock( this._.id, this.document.getById( this._.id ), 4 );
40
- };
41
-
42
-
43
- CKEDITOR.ui.panelButton = CKEDITOR.tools.createClass(
44
- {
45
- base : CKEDITOR.ui.button,
46
-
47
- $ : function( definition )
48
- {
49
- // We don't want the panel definition in this object.
50
- var panelDefinition = definition.panel;
51
- delete definition.panel;
52
-
53
- this.base( definition );
54
-
55
- this.document = ( panelDefinition
56
- && panelDefinition.parent
57
- && panelDefinition.parent.getDocument() )
58
- || CKEDITOR.document;
59
-
60
- panelDefinition.block =
61
- {
62
- attributes : panelDefinition.attributes
63
- };
64
-
65
- this.hasArrow = true;
66
-
67
- this.click = clickFn;
68
-
69
- this._ =
70
- {
71
- panelDefinition : panelDefinition
72
- };
73
- },
74
-
75
- statics :
76
- {
77
- handler :
78
- {
79
- create : function( definition )
80
- {
81
- return new CKEDITOR.ui.panelButton( definition );
82
- }
83
- }
84
- },
85
-
86
- proto :
87
- {
88
- createPanel : function( editor )
89
- {
90
- var _ = this._;
91
-
92
- if ( _.panel )
93
- return;
94
-
95
- var panelDefinition = this._.panelDefinition || {},
96
- panelBlockDefinition = this._.panelDefinition.block,
97
- panelParentElement = panelDefinition.parent || CKEDITOR.document.getBody(),
98
- panel = this._.panel = new CKEDITOR.ui.floatPanel( editor, panelParentElement, panelDefinition ),
99
- block = panel.addBlock( _.id, panelBlockDefinition ),
100
- me = this;
101
-
102
- panel.onShow = function()
103
- {
104
- if ( me.className )
105
- this.element.getFirst().addClass( me.className + '_panel' );
106
-
107
- me.setState( CKEDITOR.TRISTATE_ON );
108
-
109
- _.on = 1;
110
-
111
- if ( me.onOpen )
112
- me.onOpen();
113
- };
114
-
115
- panel.onHide = function( preventOnClose )
116
- {
117
- if ( me.className )
118
- this.element.getFirst().removeClass( me.className + '_panel' );
119
-
120
- me.setState( me.modes && me.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
121
-
122
- _.on = 0;
123
-
124
- if ( !preventOnClose && me.onClose )
125
- me.onClose();
126
- };
127
-
128
- panel.onEscape = function()
129
- {
130
- panel.hide();
131
- me.document.getById( _.id ).focus();
132
- };
133
-
134
- if ( this.onBlock )
135
- this.onBlock( panel, block );
136
-
137
- block.onHide = function()
138
- {
139
- _.on = 0;
140
- me.setState( CKEDITOR.TRISTATE_OFF );
141
- };
142
- }
143
- }
144
- });
145
-
146
- })();
@@ -1,1175 +0,0 @@
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
- (function()
7
- {
8
- var fragmentPrototype = CKEDITOR.htmlParser.fragment.prototype,
9
- elementPrototype = CKEDITOR.htmlParser.element.prototype;
10
-
11
- fragmentPrototype.onlyChild = elementPrototype.onlyChild = function()
12
- {
13
- var children = this.children,
14
- count = children.length,
15
- firstChild = ( count == 1 ) && children[ 0 ];
16
- return firstChild || null;
17
- };
18
-
19
- elementPrototype.removeAnyChildWithName = function( tagName )
20
- {
21
- var children = this.children,
22
- childs = [],
23
- child;
24
-
25
- for ( var i = 0; i < children.length; i++ )
26
- {
27
- child = children[ i ];
28
- if ( !child.name )
29
- continue;
30
-
31
- if ( child.name == tagName )
32
- {
33
- childs.push( child );
34
- children.splice( i--, 1 );
35
- }
36
- childs = childs.concat( child.removeAnyChildWithName( tagName ) );
37
- }
38
- return childs;
39
- };
40
-
41
- elementPrototype.getAncestor = function( tagNameRegex )
42
- {
43
- var parent = this.parent;
44
- while ( parent && !( parent.name && parent.name.match( tagNameRegex ) ) )
45
- parent = parent.parent;
46
- return parent;
47
- };
48
-
49
- fragmentPrototype.firstChild = elementPrototype.firstChild = function( evaluator )
50
- {
51
- var child;
52
-
53
- for ( var i = 0 ; i < this.children.length ; i++ )
54
- {
55
- child = this.children[ i ];
56
- if ( evaluator( child ) )
57
- return child;
58
- else if ( child.name )
59
- {
60
- child = child.firstChild( evaluator );
61
- if ( child )
62
- return child;
63
- }
64
- }
65
-
66
- return null;
67
- };
68
-
69
- // Adding a (set) of styles to the element's 'style' attributes.
70
- elementPrototype.addStyle = function( name, value, isPrepend )
71
- {
72
- var styleText, addingStyleText = '';
73
- // name/value pair.
74
- if ( typeof value == 'string' )
75
- addingStyleText += name + ':' + value + ';';
76
- else
77
- {
78
- // style literal.
79
- if ( typeof name == 'object' )
80
- {
81
- for ( var style in name )
82
- {
83
- if ( name.hasOwnProperty( style ) )
84
- addingStyleText += style + ':' + name[ style ] + ';';
85
- }
86
- }
87
- // raw style text form.
88
- else
89
- addingStyleText += name;
90
-
91
- isPrepend = value;
92
- }
93
-
94
- if ( !this.attributes )
95
- this.attributes = {};
96
-
97
- styleText = this.attributes.style || '';
98
-
99
- styleText = ( isPrepend ?
100
- [ addingStyleText, styleText ]
101
- : [ styleText, addingStyleText ] ).join( ';' );
102
-
103
- this.attributes.style = styleText.replace( /^;|;(?=;)/, '' );
104
- };
105
-
106
- /**
107
- * Return the DTD-valid parent tag names of the specified one.
108
- * @param tagName
109
- */
110
- CKEDITOR.dtd.parentOf = function( tagName )
111
- {
112
- var result = {};
113
- for ( var tag in this )
114
- {
115
- if ( tag.indexOf( '$' ) == -1 && this[ tag ][ tagName ] )
116
- result[ tag ] = 1;
117
- }
118
- return result;
119
- };
120
-
121
- var cssLengthRelativeUnit = /^([.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz){1}?/i;
122
- var emptyMarginRegex = /^(?:\b0[^\s]*\s*){1,4}$/; // e.g. 0px 0pt 0px
123
- var romanLiternalPattern = '^m{0,4}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3})$',
124
- lowerRomanLiteralRegex = new RegExp( romanLiternalPattern ),
125
- upperRomanLiteralRegex = new RegExp( romanLiternalPattern.toUpperCase() );
126
-
127
- var listBaseIndent = 0,
128
- previousListItemMargin;
129
-
130
- CKEDITOR.plugins.pastefromword =
131
- {
132
- utils :
133
- {
134
- // Create a <cke:listbullet> which indicate an list item type.
135
- createListBulletMarker : function ( bulletStyle, bulletText )
136
- {
137
- var marker = new CKEDITOR.htmlParser.element( 'cke:listbullet' ),
138
- listType;
139
-
140
- // TODO: Support more list style type from MS-Word.
141
- if ( !bulletStyle )
142
- {
143
- bulletStyle = 'decimal';
144
- listType = 'ol';
145
- }
146
- else if ( bulletStyle[ 2 ] )
147
- {
148
- if ( !isNaN( bulletStyle[ 1 ] ) )
149
- bulletStyle = 'decimal';
150
- else if ( lowerRomanLiteralRegex.test( bulletStyle[ 1 ] ) )
151
- bulletStyle = 'lower-roman';
152
- else if ( upperRomanLiteralRegex.test( bulletStyle[ 1 ] ) )
153
- bulletStyle = 'upper-roman';
154
- else if ( /^[a-z]+$/.test( bulletStyle[ 1 ] ) )
155
- bulletStyle = 'lower-alpha';
156
- else if ( /^[A-Z]+$/.test( bulletStyle[ 1 ] ) )
157
- bulletStyle = 'upper-alpha';
158
- // Simply use decimal for the rest forms of unrepresentable
159
- // numerals, e.g. Chinese...
160
- else
161
- bulletStyle = 'decimal';
162
-
163
- listType = 'ol';
164
- }
165
- else
166
- {
167
- if ( /[l\u00B7\u2002]/.test( bulletStyle[ 1 ] ) )
168
- bulletStyle = 'disc';
169
- else if ( /[\u006F\u00D8]/.test( bulletStyle[ 1 ] ) )
170
- bulletStyle = 'circle';
171
- else if ( /[\u006E\u25C6]/.test( bulletStyle[ 1 ] ) )
172
- bulletStyle = 'square';
173
- else
174
- bulletStyle = 'disc';
175
-
176
- listType = 'ul';
177
- }
178
-
179
- // Represent list type as CSS style.
180
- marker.attributes =
181
- {
182
- 'cke:listtype' : listType,
183
- 'style' : 'list-style-type:' + bulletStyle + ';'
184
- };
185
- marker.add( new CKEDITOR.htmlParser.text( bulletText ) );
186
- return marker;
187
- },
188
-
189
- isListBulletIndicator : function( element )
190
- {
191
- var styleText = element.attributes && element.attributes.style;
192
- if ( /mso-list\s*:\s*Ignore/i.test( styleText ) )
193
- return true;
194
- },
195
-
196
- isContainingOnlySpaces : function( element )
197
- {
198
- var text;
199
- return ( ( text = element.onlyChild() )
200
- && ( /^(:?\s|&nbsp;)+$/ ).test( text.value ) );
201
- },
202
-
203
- resolveList : function( element )
204
- {
205
- // <cke:listbullet> indicate a list item.
206
- var attrs = element.attributes,
207
- listMarker;
208
-
209
- if ( ( listMarker = element.removeAnyChildWithName( 'cke:listbullet' ) )
210
- && listMarker.length
211
- && ( listMarker = listMarker[ 0 ] ) )
212
- {
213
- element.name = 'cke:li';
214
-
215
- if ( attrs.style )
216
- {
217
- attrs.style = CKEDITOR.plugins.pastefromword.filters.stylesFilter(
218
- [
219
- // Text-indent is not representing list item level any more.
220
- [ 'text-indent' ],
221
- [ 'line-height' ],
222
- // Resolve indent level from 'margin-left' value.
223
- [ ( /^margin(:?-left)?$/ ), null, function( margin )
224
- {
225
- // Be able to deal with component/short-hand form style.
226
- var values = margin.split( ' ' );
227
- margin = CKEDITOR.plugins.pastefromword.utils.convertToPx( values[ 3 ] || values[ 1 ] || values [ 0 ] );
228
- margin = parseInt( margin, 10 );
229
-
230
- // Figure out the indent unit by looking at the first increament.
231
- if ( !listBaseIndent && previousListItemMargin && margin > previousListItemMargin )
232
- listBaseIndent = margin - previousListItemMargin;
233
-
234
- attrs[ 'cke:margin' ] = previousListItemMargin = margin;
235
- } ]
236
- ] )( attrs.style, element ) || '' ;
237
- }
238
-
239
- // Inherit list-type-style from bullet.
240
- var listBulletAttrs = listMarker.attributes,
241
- listBulletStyle = listBulletAttrs.style;
242
-
243
- element.addStyle( listBulletStyle );
244
- CKEDITOR.tools.extend( attrs, listBulletAttrs );
245
- return true;
246
- }
247
-
248
- return false;
249
- },
250
-
251
- // Convert various length units to 'px' in ignorance of DPI.
252
- convertToPx : ( function ()
253
- {
254
- var calculator = CKEDITOR.dom.element.createFromHtml(
255
- '<div style="position:absolute;left:-9999px;' +
256
- 'top:-9999px;margin:0px;padding:0px;border:0px;"' +
257
- '></div>', CKEDITOR.document );
258
- CKEDITOR.document.getBody().append( calculator );
259
-
260
- return function( cssLength )
261
- {
262
- if ( cssLengthRelativeUnit.test( cssLength ) )
263
- {
264
- calculator.setStyle( 'width', cssLength );
265
- return calculator.$.clientWidth + 'px';
266
- }
267
-
268
- return cssLength;
269
- };
270
- } )(),
271
-
272
- // Providing a shorthand style then retrieve one or more style component values.
273
- getStyleComponents : ( function()
274
- {
275
- var calculator = CKEDITOR.dom.element.createFromHtml(
276
- '<div style="position:absolute;left:-9999px;top:-9999px;"></div>',
277
- CKEDITOR.document );
278
- CKEDITOR.document.getBody().append( calculator );
279
-
280
- return function( name, styleValue, fetchList )
281
- {
282
- calculator.setStyle( name, styleValue );
283
- var styles = {},
284
- count = fetchList.length;
285
- for ( var i = 0; i < count; i++ )
286
- styles[ fetchList[ i ] ] = calculator.getStyle( fetchList[ i ] );
287
-
288
- return styles;
289
- };
290
- } )(),
291
-
292
- listDtdParents : CKEDITOR.dtd.parentOf( 'ol' )
293
- },
294
-
295
- filters :
296
- {
297
- // Transform a normal list into flat list items only presentation.
298
- // E.g. <ul><li>level1<ol><li>level2</li></ol></li> =>
299
- // <cke:li cke:listtype="ul" cke:indent="1">level1</cke:li>
300
- // <cke:li cke:listtype="ol" cke:indent="2">level2</cke:li>
301
- flattenList : function( element )
302
- {
303
- var attrs = element.attributes,
304
- parent = element.parent;
305
-
306
- var listStyleType,
307
- indentLevel = 1;
308
-
309
- // Resolve how many level nested.
310
- while ( parent )
311
- {
312
- parent.attributes && parent.attributes[ 'cke:list'] && indentLevel++;
313
- parent = parent.parent;
314
- }
315
-
316
- // All list items are of the same type.
317
- switch ( attrs.type )
318
- {
319
- case 'a' :
320
- listStyleType = 'lower-alpha';
321
- break;
322
- // TODO: Support more list style type from MS-Word.
323
- }
324
-
325
- var children = element.children,
326
- child;
327
-
328
- for ( var i = 0; i < children.length; i++ )
329
- {
330
- child = children[ i ];
331
- var attributes = child.attributes;
332
-
333
- if ( child.name in CKEDITOR.dtd.$listItem )
334
- {
335
- var listItemChildren = child.children,
336
- count = listItemChildren.length,
337
- last = listItemChildren[ count - 1 ];
338
-
339
- // Move out nested list.
340
- if ( last.name in CKEDITOR.dtd.$list )
341
- {
342
- children.splice( i + 1, 0, last );
343
- last.parent = element;
344
-
345
- // Remove the parent list item if it's just a holder.
346
- if ( !--listItemChildren.length )
347
- children.splice( i, 1 );
348
- }
349
-
350
- child.name = 'cke:li';
351
- attributes[ 'cke:indent' ] = indentLevel;
352
- previousListItemMargin = 0;
353
- attributes[ 'cke:listtype' ] = element.name;
354
- listStyleType && child.addStyle( 'list-style-type', listStyleType, true );
355
- }
356
- }
357
-
358
- delete element.name;
359
-
360
- // We're loosing tag name here, signalize this element as a list.
361
- attrs[ 'cke:list' ] = 1;
362
- },
363
-
364
- /**
365
- * Try to collect all list items among the children and establish one
366
- * or more HTML list structures for them.
367
- * @param element
368
- */
369
- assembleList : function( element )
370
- {
371
- var children = element.children, child,
372
- listItem, // The current processing cke:li element.
373
- listItemAttrs,
374
- listType, // Determine the root type of the list.
375
- listItemIndent, // Indent level of current list item.
376
- lastListItem, // The previous one just been added to the list.
377
- list, parentList, // Current staging list and it's parent list if any.
378
- indent;
379
-
380
- for ( var i = 0; i < children.length; i++ )
381
- {
382
- child = children[ i ];
383
-
384
- if ( 'cke:li' == child.name )
385
- {
386
- child.name = 'li';
387
- listItem = child;
388
- listItemAttrs = listItem.attributes;
389
- listType = listItem.attributes[ 'cke:listtype' ];
390
-
391
- // List item indent level might come from a real list indentation or
392
- // been resolved from a pseudo list item's margin value, even get
393
- // no indentation at all.
394
- listItemIndent = parseInt( listItemAttrs[ 'cke:indent' ], 10 )
395
- || listBaseIndent && ( Math.ceil( listItemAttrs[ 'cke:margin' ] / listBaseIndent ) )
396
- || 1;
397
-
398
- // Ignore the 'list-style-type' attribute if it's matched with
399
- // the list root element's default style type.
400
- listItemAttrs.style && ( listItemAttrs.style =
401
- CKEDITOR.plugins.pastefromword.filters.stylesFilter(
402
- [
403
- [ 'list-style-type', listType == 'ol' ? 'decimal' : 'disc' ]
404
- ] )( listItemAttrs.style )
405
- || '' );
406
-
407
- if ( !list )
408
- {
409
- list = new CKEDITOR.htmlParser.element( listType );
410
- list.add( listItem );
411
- children[ i ] = list;
412
- }
413
- else
414
- {
415
- if ( listItemIndent > indent )
416
- {
417
- list = new CKEDITOR.htmlParser.element( listType );
418
- list.add( listItem );
419
- lastListItem.add( list );
420
- }
421
- else if ( listItemIndent < indent )
422
- {
423
- // There might be a negative gap between two list levels. (#4944)
424
- var diff = indent - listItemIndent,
425
- parent;
426
- while ( diff-- && ( parent = list.parent ) )
427
- list = parent.parent;
428
-
429
- list.add( listItem );
430
- }
431
- else
432
- list.add( listItem );
433
-
434
- children.splice( i--, 1 );
435
- }
436
-
437
- lastListItem = listItem;
438
- indent = listItemIndent;
439
- }
440
- else
441
- list = null;
442
- }
443
-
444
- listBaseIndent = 0;
445
- },
446
-
447
- /**
448
- * A simple filter which always rejecting.
449
- */
450
- falsyFilter : function( value )
451
- {
452
- return false;
453
- },
454
-
455
- /**
456
- * A filter dedicated on the 'style' attribute filtering, e.g. dropping/replacing style properties.
457
- * @param styles {Array} in form of [ styleNameRegexp, styleValueRegexp,
458
- * newStyleValue/newStyleGenerator, newStyleName ] where only the first
459
- * parameter is mandatory.
460
- * @param whitelist {Boolean} Whether the {@param styles} will be considered as a white-list.
461
- */
462
- stylesFilter : function( styles, whitelist )
463
- {
464
- return function( styleText, element )
465
- {
466
- var rules = [];
467
- // html-encoded quote might be introduced by 'font-family'
468
- // from MS-Word which confused the following regexp. e.g.
469
- //'font-family: &quot;Lucida, Console&quot;'
470
- styleText
471
- .replace( /&quot;/g, '"' )
472
- .replace( /\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,
473
- function( match, name, value )
474
- {
475
- name = name.toLowerCase();
476
- name == 'font-family' && ( value = value.replace( /["']/g, '' ) );
477
-
478
- var namePattern,
479
- valuePattern,
480
- newValue,
481
- newName;
482
- for ( var i = 0 ; i < styles.length; i++ )
483
- {
484
- if ( styles[ i ] )
485
- {
486
- namePattern = styles[ i ][ 0 ];
487
- valuePattern = styles[ i ][ 1 ];
488
- newValue = styles[ i ][ 2 ];
489
- newName = styles[ i ][ 3 ];
490
-
491
- if ( name.match( namePattern )
492
- && ( !valuePattern || value.match( valuePattern ) ) )
493
- {
494
- name = newName || name;
495
- whitelist && ( newValue = newValue || value );
496
-
497
- if ( typeof newValue == 'function' )
498
- newValue = newValue( value, element, name );
499
-
500
- // Return an couple indicate both name and value
501
- // changed.
502
- if ( newValue && newValue.push )
503
- name = newValue[ 0 ], newValue = newValue[ 1 ];
504
-
505
- if ( typeof newValue == 'string' )
506
- rules.push( [ name, newValue ] );
507
- return;
508
- }
509
- }
510
- }
511
-
512
- !whitelist && rules.push( [ name, value ] );
513
-
514
- });
515
-
516
- for ( var i = 0 ; i < rules.length ; i++ )
517
- rules[ i ] = rules[ i ].join( ':' );
518
- return rules.length ?
519
- ( rules.join( ';' ) + ';' ) : false;
520
- };
521
- },
522
-
523
- /**
524
- * Migrate the element by decorate styles on it.
525
- * @param styleDefiniton
526
- * @param variables
527
- */
528
- elementMigrateFilter : function ( styleDefiniton, variables )
529
- {
530
- return function( element )
531
- {
532
- var styleDef =
533
- variables ?
534
- new CKEDITOR.style( styleDefiniton, variables )._.definition
535
- : styleDefiniton;
536
- element.name = styleDef.element;
537
- CKEDITOR.tools.extend( element.attributes, CKEDITOR.tools.clone( styleDef.attributes ) );
538
- element.addStyle( CKEDITOR.style.getStyleText( styleDef ) );
539
- };
540
- },
541
-
542
- /**
543
- * Migrate styles by creating a new nested stylish element.
544
- * @param styleDefinition
545
- */
546
- styleMigrateFilter : function( styleDefinition, variableName )
547
- {
548
-
549
- var elementMigrateFilter = this.elementMigrateFilter;
550
- return function( value, element )
551
- {
552
- // Build an stylish element first.
553
- var styleElement = new CKEDITOR.htmlParser.element( null ),
554
- variables = {};
555
-
556
- variables[ variableName ] = value;
557
- elementMigrateFilter( styleDefinition, variables )( styleElement );
558
- // Place the new element inside the existing span.
559
- styleElement.children = element.children;
560
- element.children = [ styleElement ];
561
- };
562
- },
563
-
564
- /**
565
- * A filter which remove cke-namespaced-attribute on
566
- * all none-cke-namespaced elements.
567
- * @param value
568
- * @param element
569
- */
570
- bogusAttrFilter : function( value, element )
571
- {
572
- if ( element.name.indexOf( 'cke:' ) == -1 )
573
- return false;
574
- },
575
-
576
- /**
577
- * A filter which will be used to apply inline css style according the stylesheet
578
- * definition rules, is generated lazily when filtering.
579
- */
580
- applyStyleFilter : null
581
-
582
- },
583
-
584
- getRules : function( editor )
585
- {
586
- var dtd = CKEDITOR.dtd,
587
- blockLike = CKEDITOR.tools.extend( {}, dtd.$block, dtd.$listItem, dtd.$tableContent ),
588
- config = editor.config,
589
- filters = this.filters,
590
- falsyFilter = filters.falsyFilter,
591
- stylesFilter = filters.stylesFilter,
592
- elementMigrateFilter = filters.elementMigrateFilter,
593
- styleMigrateFilter = CKEDITOR.tools.bind( this.filters.styleMigrateFilter, this.filters ),
594
- createListBulletMarker = this.utils.createListBulletMarker,
595
- flattenList = filters.flattenList,
596
- assembleList = filters.assembleList,
597
- isListBulletIndicator = this.utils.isListBulletIndicator,
598
- containsNothingButSpaces = this.utils.isContainingOnlySpaces,
599
- resolveListItem = this.utils.resolveList,
600
- convertToPx = this.utils.convertToPx,
601
- getStyleComponents = this.utils.getStyleComponents,
602
- listDtdParents = this.utils.listDtdParents,
603
- removeFontStyles = config.pasteFromWordRemoveFontStyles !== false,
604
- removeStyles = config.pasteFromWordRemoveStyles !== false;
605
-
606
- return {
607
-
608
- elementNames :
609
- [
610
- // Remove script, meta and link elements.
611
- [ ( /meta|link|script/ ), '' ]
612
- ],
613
-
614
- root : function( element )
615
- {
616
- element.filterChildren();
617
- assembleList( element );
618
- },
619
-
620
- elements :
621
- {
622
- '^' : function( element )
623
- {
624
- // Transform CSS style declaration to inline style.
625
- var applyStyleFilter;
626
- if ( CKEDITOR.env.gecko && ( applyStyleFilter = filters.applyStyleFilter ) )
627
- applyStyleFilter( element );
628
- },
629
-
630
- $ : function( element )
631
- {
632
- var tagName = element.name || '',
633
- attrs = element.attributes;
634
-
635
- // Convert length unit of width/height on blocks to
636
- // a more editor-friendly way (px).
637
- if ( tagName in blockLike
638
- && attrs.style )
639
- {
640
- attrs.style = stylesFilter(
641
- [ [ ( /^(:?width|height)$/ ), null, convertToPx ] ] )( attrs.style ) || '';
642
- }
643
-
644
- // Processing headings.
645
- if ( tagName.match( /h\d/ ) )
646
- {
647
- element.filterChildren();
648
- // Is the heading actually a list item?
649
- if ( resolveListItem( element ) )
650
- return;
651
-
652
- // Adapt heading styles to editor's convention.
653
- elementMigrateFilter( config[ 'format_' + tagName ] )( element );
654
- }
655
- // Remove inline elements which contain only empty spaces.
656
- else if ( tagName in dtd.$inline )
657
- {
658
- element.filterChildren();
659
- if ( containsNothingButSpaces( element ) )
660
- delete element.name;
661
- }
662
- // Remove element with ms-office namespace,
663
- // with it's content preserved, e.g. 'o:p'.
664
- else if ( tagName.indexOf( ':' ) != -1
665
- && tagName.indexOf( 'cke' ) == -1 )
666
- {
667
- element.filterChildren();
668
-
669
- // Restore image real link from vml.
670
- if ( tagName == 'v:imagedata' )
671
- {
672
- var href = element.attributes[ 'o:href' ];
673
- if ( href )
674
- element.attributes.src = href;
675
- element.name = 'img';
676
- return;
677
- }
678
- delete element.name;
679
- }
680
-
681
- // Assembling list items into a whole list.
682
- if ( tagName in listDtdParents )
683
- {
684
- element.filterChildren();
685
- assembleList( element );
686
- }
687
- },
688
-
689
- // We'll drop any style sheet, but Firefox conclude
690
- // certain styles in a single style element, which are
691
- // required to be changed into inline ones.
692
- 'style' : function( element )
693
- {
694
- if ( CKEDITOR.env.gecko )
695
- {
696
- // Grab only the style definition section.
697
- var styleDefSection = element.onlyChild().value.match( /\/\* Style Definitions \*\/([\s\S]*?)\/\*/ ),
698
- styleDefText = styleDefSection && styleDefSection[ 1 ],
699
- rules = {}; // Storing the parsed result.
700
-
701
- if ( styleDefText )
702
- {
703
- styleDefText
704
- // Remove line-breaks.
705
- .replace(/[\n\r]/g,'')
706
- // Extract selectors and style properties.
707
- .replace( /(.+?)\{(.+?)\}/g,
708
- function( rule, selectors, styleBlock )
709
- {
710
- selectors = selectors.split( ',' );
711
- var length = selectors.length, selector;
712
- for ( var i = 0; i < length; i++ )
713
- {
714
- // Assume MS-Word mostly generate only simple
715
- // selector( [Type selector][Class selector]).
716
- CKEDITOR.tools.trim( selectors[ i ] )
717
- .replace( /^(\w+)(\.[\w-]+)?$/g,
718
- function( match, tagName, className )
719
- {
720
- tagName = tagName || '*';
721
- className = className.substring( 1, className.length );
722
-
723
- // Reject MS-Word Normal styles.
724
- if ( className.match( /MsoNormal/ ) )
725
- return;
726
-
727
- if ( !rules[ tagName ] )
728
- rules[ tagName ] = {};
729
- if ( className )
730
- rules[ tagName ][ className ] = styleBlock;
731
- else
732
- rules[ tagName ] = styleBlock;
733
- } );
734
- }
735
- });
736
-
737
- filters.applyStyleFilter = function( element )
738
- {
739
- var name = rules[ '*' ] ? '*' : element.name,
740
- className = element.attributes && element.attributes[ 'class' ],
741
- style;
742
- if ( name in rules )
743
- {
744
- style = rules[ name ];
745
- if ( typeof style == 'object' )
746
- style = style[ className ];
747
- // Maintain style rules priorities.
748
- style && element.addStyle( style, true );
749
- }
750
- };
751
- }
752
- }
753
- return false;
754
- },
755
-
756
- 'p' : function( element )
757
- {
758
- element.filterChildren();
759
-
760
- // Is the paragraph actually a list item?
761
- if ( resolveListItem( element ) )
762
- return;
763
-
764
- // Adapt paragraph formatting to editor's convention
765
- // according to enter-mode.
766
- if ( config.enterMode == CKEDITOR.ENTER_BR )
767
- {
768
- // We suffer from attribute/style lost in this situation.
769
- delete element.name;
770
- element.add( new CKEDITOR.htmlParser.element( 'br' ) );
771
- }
772
- else
773
- elementMigrateFilter( config[ 'format_' + ( config.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ] )( element );
774
- },
775
-
776
- 'div' : function( element )
777
- {
778
- // Aligned table with no text surrounded is represented by a wrapper div, from which
779
- // table cells inherit as text-align styles, which is wrong.
780
- // Instead we use a clear-float div after the table to properly achieve the same layout.
781
- var singleChild = element.onlyChild();
782
- if ( singleChild && singleChild.name == 'table' )
783
- {
784
- var attrs = element.attributes;
785
- singleChild.attributes = CKEDITOR.tools.extend( singleChild.attributes, attrs );
786
- attrs.style && singleChild.addStyle( attrs.style );
787
-
788
- var clearFloatDiv = new CKEDITOR.htmlParser.element( 'div' );
789
- clearFloatDiv.addStyle( 'clear' ,'both' );
790
- element.add( clearFloatDiv );
791
- delete element.name;
792
- }
793
- },
794
-
795
- 'td' : function ( element )
796
- {
797
- // 'td' in 'thead' is actually <th>.
798
- if ( element.getAncestor( 'thead') )
799
- element.name = 'th';
800
- },
801
-
802
- // MS-Word sometimes present list as a mixing of normal list
803
- // and pseudo-list, normalize the previous ones into pseudo form.
804
- 'ol' : flattenList,
805
- 'ul' : flattenList,
806
- 'dl' : flattenList,
807
-
808
- 'font' : function( element )
809
- {
810
- // IE/Safari: drop the font tag if it comes from list bullet text.
811
- if ( !CKEDITOR.env.gecko && isListBulletIndicator( element.parent ) )
812
- {
813
- delete element.name;
814
- return;
815
- }
816
-
817
- element.filterChildren();
818
-
819
- var attrs = element.attributes,
820
- styleText = attrs.style,
821
- parent = element.parent;
822
-
823
- if ( 'font' == parent.name ) // Merge nested <font> tags.
824
- {
825
- CKEDITOR.tools.extend( parent.attributes,
826
- element.attributes );
827
- styleText && parent.addStyle( styleText );
828
- delete element.name;
829
- }
830
- // Convert the merged into a span with all attributes preserved.
831
- else
832
- {
833
- styleText = styleText || '';
834
- // IE's having those deprecated attributes, normalize them.
835
- if ( attrs.color )
836
- {
837
- attrs.color != '#000000' && ( styleText += 'color:' + attrs.color + ';' );
838
- delete attrs.color;
839
- }
840
- if ( attrs.face )
841
- {
842
- styleText += 'font-family:' + attrs.face + ';';
843
- delete attrs.face;
844
- }
845
- // TODO: Mapping size in ranges of xx-small,
846
- // x-small, small, medium, large, x-large, xx-large.
847
- if ( attrs.size )
848
- {
849
- styleText += 'font-size:' +
850
- ( attrs.size > 3 ? 'large'
851
- : ( attrs.size < 3 ? 'small' : 'medium' ) ) + ';';
852
- delete attrs.size;
853
- }
854
-
855
- element.name = 'span';
856
- element.addStyle( styleText );
857
- }
858
- },
859
-
860
- 'span' : function( element )
861
- {
862
- // IE/Safari: remove the span if it comes from list bullet text.
863
- if ( !CKEDITOR.env.gecko && isListBulletIndicator( element.parent ) )
864
- return false;
865
-
866
- element.filterChildren();
867
- if ( containsNothingButSpaces( element ) )
868
- {
869
- delete element.name;
870
- return null;
871
- }
872
-
873
- // For IE/Safari: List item bullet type is supposed to be indicated by
874
- // the text of a span with style 'mso-list : Ignore' or an image.
875
- if ( !CKEDITOR.env.gecko && isListBulletIndicator( element ) )
876
- {
877
- var listSymbolNode = element.firstChild( function( node )
878
- {
879
- return node.value || node.name == 'img';
880
- });
881
-
882
- var listSymbol = listSymbolNode && ( listSymbolNode.value || 'l.' ),
883
- listType = listSymbol.match( /^([^\s]+?)([.)]?)$/ );
884
- return createListBulletMarker( listType, listSymbol );
885
- }
886
-
887
- // Update the src attribute of image element with href.
888
- var children = element.children,
889
- attrs = element.attributes,
890
- styleText = attrs && attrs.style,
891
- firstChild = children && children[ 0 ];
892
-
893
- // Assume MS-Word mostly carry font related styles on <span>,
894
- // adapting them to editor's convention.
895
- if ( styleText )
896
- {
897
- attrs.style = stylesFilter(
898
- [
899
- // Drop 'inline-height' style which make lines overlapping.
900
- [ 'line-height' ],
901
- [ ( /^font-family$/ ), null, !removeFontStyles ? styleMigrateFilter( config[ 'font_style' ], 'family' ) : null ] ,
902
- [ ( /^font-size$/ ), null, !removeFontStyles ? styleMigrateFilter( config[ 'fontSize_style' ], 'size' ) : null ] ,
903
- [ ( /^color$/ ), null, !removeFontStyles ? styleMigrateFilter( config[ 'colorButton_foreStyle' ], 'color' ) : null ] ,
904
- [ ( /^background-color$/ ), null, !removeFontStyles ? styleMigrateFilter( config[ 'colorButton_backStyle' ], 'color' ) : null ]
905
- ] )( styleText, element ) || '';
906
- }
907
-
908
- return null;
909
- },
910
-
911
- // Migrate basic style formats to editor configured ones.
912
- 'b' : elementMigrateFilter( config[ 'coreStyles_bold' ] ),
913
- 'i' : elementMigrateFilter( config[ 'coreStyles_italic' ] ),
914
- 'u' : elementMigrateFilter( config[ 'coreStyles_underline' ] ),
915
- 's' : elementMigrateFilter( config[ 'coreStyles_strike' ] ),
916
- 'sup' : elementMigrateFilter( config[ 'coreStyles_superscript' ] ),
917
- 'sub' : elementMigrateFilter( config[ 'coreStyles_subscript' ] ),
918
- // Editor doesn't support anchor with content currently (#3582),
919
- // drop such anchors with content preserved.
920
- 'a' : function( element )
921
- {
922
- var attrs = element.attributes;
923
- if ( attrs && !attrs.href && attrs.name )
924
- delete element.name;
925
- },
926
- 'cke:listbullet' : function( element )
927
- {
928
- if ( element.getAncestor( /h\d/ ) && !config.pasteFromWordNumberedHeadingToList )
929
- delete element.name;
930
- }
931
- },
932
-
933
- attributeNames :
934
- [
935
- // Remove onmouseover and onmouseout events (from MS Word comments effect)
936
- [ ( /^onmouse(:?out|over)/ ), '' ],
937
- // Onload on image element.
938
- [ ( /^onload$/ ), '' ],
939
- // Remove office and vml attribute from elements.
940
- [ ( /(?:v|o):\w+/ ), '' ],
941
- // Remove lang/language attributes.
942
- [ ( /^lang/ ), '' ]
943
- ],
944
-
945
- attributes :
946
- {
947
- 'style' : stylesFilter(
948
- removeStyles ?
949
- // Provide a white-list of styles that we preserve, those should
950
- // be the ones that could later be altered with editor tools.
951
- [
952
- // Preserve margin-left/right which used as default indent style in the editor.
953
- [ ( /^margin$|^margin-(?!bottom|top)/ ), null, function( value, element, name )
954
- {
955
- if ( element.name in { p : 1, div : 1 } )
956
- {
957
- var indentStyleName = config.contentsLangDirection == 'ltr' ?
958
- 'margin-left' : 'margin-right';
959
-
960
- // Extract component value from 'margin' shorthand.
961
- if ( name == 'margin' )
962
- {
963
- value = getStyleComponents( name, value,
964
- [ indentStyleName ] )[ indentStyleName ];
965
- }
966
- else if ( name != indentStyleName )
967
- return null;
968
-
969
- if ( value && !emptyMarginRegex.test( value ) )
970
- return [ indentStyleName, value ];
971
- }
972
-
973
- return null;
974
- } ],
975
-
976
- // Preserve clear float style.
977
- [ ( /^clear$/ ) ],
978
-
979
- [ ( /^border.*|margin.*|vertical-align|float$/ ), null,
980
- function( value, element )
981
- {
982
- if ( element.name == 'img' )
983
- return value;
984
- } ],
985
-
986
- [ (/^width|height$/ ), null,
987
- function( value, element )
988
- {
989
- if ( element.name in { table : 1, td : 1, th : 1, img : 1 } )
990
- return value;
991
- } ]
992
- ] :
993
- // Otherwise provide a black-list of styles that we remove.
994
- [
995
- [ ( /^mso-/ ) ],
996
- // Fixing color values.
997
- [ ( /-color$/ ), null, function( value )
998
- {
999
- if ( value == 'transparent' )
1000
- return false;
1001
- if ( CKEDITOR.env.gecko )
1002
- return value.replace( /-moz-use-text-color/g, 'transparent' );
1003
- } ],
1004
- // Remove empty margin values, e.g. 0.00001pt 0em 0pt
1005
- [ ( /^margin$/ ), emptyMarginRegex ],
1006
- [ 'text-indent', '0cm' ],
1007
- [ 'page-break-before' ],
1008
- [ 'tab-stops' ],
1009
- [ 'display', 'none' ],
1010
- removeFontStyles ? [ ( /font-?/ ) ] : null
1011
- ], removeStyles ),
1012
-
1013
- // Prefer width styles over 'width' attributes.
1014
- 'width' : function( value, element )
1015
- {
1016
- if ( element.name in dtd.$tableContent )
1017
- return false;
1018
- },
1019
- // Prefer border styles over table 'border' attributes.
1020
- 'border' : function( value, element )
1021
- {
1022
- if ( element.name in dtd.$tableContent )
1023
- return false;
1024
- },
1025
-
1026
- // Only Firefox carry style sheet from MS-Word, which
1027
- // will be applied by us manually. For other browsers
1028
- // the css className is useless.
1029
- 'class' : falsyFilter,
1030
-
1031
- // MS-Word always generate 'background-color' along with 'bgcolor',
1032
- // simply drop the deprecated attributes.
1033
- 'bgcolor' : falsyFilter,
1034
-
1035
- // Deprecate 'valign' attribute in favor of 'vertical-align'.
1036
- 'valign' : removeStyles ? falsyFilter : function( value, element )
1037
- {
1038
- element.addStyle( 'vertical-align', value );
1039
- return false;
1040
- }
1041
- },
1042
-
1043
- // Fore none-IE, some useful data might be buried under these IE-conditional
1044
- // comments where RegExp were the right approach to dig them out where usual approach
1045
- // is transform it into a fake element node which hold the desired data.
1046
- comment :
1047
- !CKEDITOR.env.ie ?
1048
- function( value, node )
1049
- {
1050
- var imageInfo = value.match( /<img.*?>/ ),
1051
- listInfo = value.match( /^\[if !supportLists\]([\s\S]*?)\[endif\]$/ );
1052
-
1053
- // Seek for list bullet indicator.
1054
- if ( listInfo )
1055
- {
1056
- // Bullet symbol could be either text or an image.
1057
- var listSymbol = listInfo[ 1 ] || ( imageInfo && 'l.' ),
1058
- listType = listSymbol && listSymbol.match( />([^\s]+?)([.)]?)</ );
1059
- return createListBulletMarker( listType, listSymbol );
1060
- }
1061
-
1062
- // Reveal the <img> element in conditional comments for Firefox.
1063
- if ( CKEDITOR.env.gecko && imageInfo )
1064
- {
1065
- var img = CKEDITOR.htmlParser.fragment.fromHtml( imageInfo[ 0 ] ).children[ 0 ],
1066
- previousComment = node.previous,
1067
- // Try to dig the real image link from vml markup from previous comment text.
1068
- imgSrcInfo = previousComment && previousComment.value.match( /<v:imagedata[^>]*o:href=['"](.*?)['"]/ ),
1069
- imgSrc = imgSrcInfo && imgSrcInfo[ 1 ];
1070
-
1071
- // Is there a real 'src' url to be used?
1072
- imgSrc && ( img.attributes.src = imgSrc );
1073
- return img;
1074
- }
1075
-
1076
- return false;
1077
- }
1078
- : falsyFilter
1079
- };
1080
- }
1081
- };
1082
-
1083
- // The paste processor here is just a reduced copy of html data processor.
1084
- var pasteProcessor = function()
1085
- {
1086
- this.dataFilter = new CKEDITOR.htmlParser.filter();
1087
- };
1088
-
1089
- pasteProcessor.prototype =
1090
- {
1091
- toHtml : function( data )
1092
- {
1093
- var fragment = CKEDITOR.htmlParser.fragment.fromHtml( data, false ),
1094
- writer = new CKEDITOR.htmlParser.basicWriter();
1095
-
1096
- fragment.writeHtml( writer, this.dataFilter );
1097
- return writer.getHtml( true );
1098
- }
1099
- };
1100
-
1101
- CKEDITOR.cleanWord = function( data, editor )
1102
- {
1103
- // Firefox will be confused by those downlevel-revealed IE conditional
1104
- // comments, fixing them first( convert it to upperlevel-revealed one ).
1105
- // e.g. <![if !vml]>...<![endif]>
1106
- if ( CKEDITOR.env.gecko )
1107
- data = data.replace( /(<!--\[if[^<]*?\])-->([\S\s]*?)<!--(\[endif\]-->)/gi, '$1$2$3' );
1108
-
1109
- var dataProcessor = new pasteProcessor(),
1110
- dataFilter = dataProcessor.dataFilter;
1111
-
1112
- // These rules will have higher priorities than default ones.
1113
- dataFilter.addRules( CKEDITOR.plugins.pastefromword.getRules( editor ) );
1114
-
1115
- // Allow extending data filter rules.
1116
- editor.fire( 'beforeCleanWord', { filter : dataFilter } );
1117
-
1118
- try
1119
- {
1120
- data = dataProcessor.toHtml( data, false );
1121
- }
1122
- catch ( e )
1123
- {
1124
- alert( editor.lang.pastefromword.error );
1125
- }
1126
-
1127
- /* Below post processing those things that are unable to delivered by filter rules. */
1128
-
1129
- // Remove 'cke' namespaced attribute used in filter rules as marker.
1130
- data = data.replace( /cke:.*?".*?"/g, '' );
1131
-
1132
- // Remove empty style attribute.
1133
- data = data.replace( /style=""/g, '' );
1134
-
1135
- // Remove the dummy spans ( having no inline style ).
1136
- data = data.replace( /<span>/g, '' );
1137
-
1138
- return data;
1139
- };
1140
- })();
1141
-
1142
- /**
1143
- * Whether to ignore all font related formatting styles, including:
1144
- * <ul> <li>font size;</li>
1145
- * <li>font family;</li>
1146
- * <li>font foreground/background color.</li></ul>
1147
- * @name CKEDITOR.config.pasteFromWordRemoveFontStyles
1148
- * @since 3.1
1149
- * @type Boolean
1150
- * @default true
1151
- * @example
1152
- * config.pasteFromWordRemoveFontStyles = false;
1153
- */
1154
-
1155
- /**
1156
- * Whether to transform MS Word outline numbered headings into lists.
1157
- * @name CKEDITOR.config.pasteFromWordNumberedHeadingToList
1158
- * @since 3.1
1159
- * @type Boolean
1160
- * @default false
1161
- * @example
1162
- * config.pasteFromWordNumberedHeadingToList = true;
1163
- */
1164
-
1165
- /**
1166
- * Whether to remove element styles that can't be managed with the editor. Note
1167
- * that this doesn't handle the font specific styles, which depends on the
1168
- * {@link CKEDITOR.config.pasteFromWordRemoveFontStyles} setting instead.
1169
- * @name CKEDITOR.config.pasteFromWordRemoveStyles
1170
- * @since 3.1
1171
- * @type Boolean
1172
- * @default true
1173
- * @example
1174
- * config.pasteFromWordRemoveStyles = false;
1175
- */