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