forge-cli 0.1.1 → 0.1.2

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