esp-ckeditor 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +32 -0
  3. data/Rakefile +28 -0
  4. data/app/assets/javascripts/esp-ckeditor/_source/core/_bootstrap.js +87 -0
  5. data/app/assets/javascripts/esp-ckeditor/_source/core/ckeditor.js +141 -0
  6. data/app/assets/javascripts/esp-ckeditor/_source/core/ckeditor_base.js +227 -0
  7. data/app/assets/javascripts/esp-ckeditor/_source/core/ckeditor_basic.js +238 -0
  8. data/app/assets/javascripts/esp-ckeditor/_source/core/command.js +209 -0
  9. data/app/assets/javascripts/esp-ckeditor/_source/core/commanddefinition.js +129 -0
  10. data/app/assets/javascripts/esp-ckeditor/_source/core/config.js +423 -0
  11. data/app/assets/javascripts/esp-ckeditor/_source/core/dataprocessor.js +65 -0
  12. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/comment.js +32 -0
  13. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/document.js +251 -0
  14. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/documentfragment.js +49 -0
  15. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/domobject.js +258 -0
  16. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/element.js +1691 -0
  17. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/elementpath.js +119 -0
  18. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/event.js +145 -0
  19. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/node.js +696 -0
  20. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/nodelist.js +26 -0
  21. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/range.js +2054 -0
  22. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/rangelist.js +213 -0
  23. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/text.js +128 -0
  24. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/walker.js +462 -0
  25. data/app/assets/javascripts/esp-ckeditor/_source/core/dom/window.js +96 -0
  26. data/app/assets/javascripts/esp-ckeditor/_source/core/dom.js +20 -0
  27. data/app/assets/javascripts/esp-ckeditor/_source/core/dtd.js +266 -0
  28. data/app/assets/javascripts/esp-ckeditor/_source/core/editor.js +1060 -0
  29. data/app/assets/javascripts/esp-ckeditor/_source/core/editor_basic.js +186 -0
  30. data/app/assets/javascripts/esp-ckeditor/_source/core/env.js +305 -0
  31. data/app/assets/javascripts/esp-ckeditor/_source/core/event.js +342 -0
  32. data/app/assets/javascripts/esp-ckeditor/_source/core/eventInfo.js +120 -0
  33. data/app/assets/javascripts/esp-ckeditor/_source/core/focusmanager.js +152 -0
  34. data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/basicwriter.js +145 -0
  35. data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/cdata.js +43 -0
  36. data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/comment.js +60 -0
  37. data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/element.js +308 -0
  38. data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/filter.js +288 -0
  39. data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/fragment.js +518 -0
  40. data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser/text.js +53 -0
  41. data/app/assets/javascripts/esp-ckeditor/_source/core/htmlparser.js +224 -0
  42. data/app/assets/javascripts/esp-ckeditor/_source/core/lang.js +157 -0
  43. data/app/assets/javascripts/esp-ckeditor/_source/core/loader.js +240 -0
  44. data/app/assets/javascripts/esp-ckeditor/_source/core/plugindefinition.js +83 -0
  45. data/app/assets/javascripts/esp-ckeditor/_source/core/plugins.js +103 -0
  46. data/app/assets/javascripts/esp-ckeditor/_source/core/resourcemanager.js +238 -0
  47. data/app/assets/javascripts/esp-ckeditor/_source/core/scriptloader.js +180 -0
  48. data/app/assets/javascripts/esp-ckeditor/_source/core/skins.js +184 -0
  49. data/app/assets/javascripts/esp-ckeditor/_source/core/themes.js +19 -0
  50. data/app/assets/javascripts/esp-ckeditor/_source/core/tools.js +763 -0
  51. data/app/assets/javascripts/esp-ckeditor/_source/core/ui.js +128 -0
  52. data/app/assets/javascripts/esp-ckeditor/_source/lang/_languages.js +27 -0
  53. data/app/assets/javascripts/esp-ckeditor/_source/lang/en.js +815 -0
  54. data/app/assets/javascripts/esp-ckeditor/_source/lang/ru.js +815 -0
  55. data/app/assets/javascripts/esp-ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js +222 -0
  56. data/app/assets/javascripts/esp-ckeditor/_source/plugins/a11yhelp/lang/en.js +108 -0
  57. data/app/assets/javascripts/esp-ckeditor/_source/plugins/a11yhelp/lang/he.js +216 -0
  58. data/app/assets/javascripts/esp-ckeditor/_source/plugins/a11yhelp/plugin.js +47 -0
  59. data/app/assets/javascripts/esp-ckeditor/_source/plugins/basicstyles/plugin.js +129 -0
  60. data/app/assets/javascripts/esp-ckeditor/_source/plugins/button/plugin.js +290 -0
  61. data/app/assets/javascripts/esp-ckeditor/_source/plugins/clipboard/dialogs/paste.js +223 -0
  62. data/app/assets/javascripts/esp-ckeditor/_source/plugins/clipboard/plugin.js +453 -0
  63. data/app/assets/javascripts/esp-ckeditor/_source/plugins/contextmenu/plugin.js +179 -0
  64. data/app/assets/javascripts/esp-ckeditor/_source/plugins/dialog/dialogDefinition.js +1166 -0
  65. data/app/assets/javascripts/esp-ckeditor/_source/plugins/dialog/plugin.js +3308 -0
  66. data/app/assets/javascripts/esp-ckeditor/_source/plugins/dialogadvtab/plugin.js +208 -0
  67. data/app/assets/javascripts/esp-ckeditor/_source/plugins/dialogui/plugin.js +1541 -0
  68. data/app/assets/javascripts/esp-ckeditor/_source/plugins/domiterator/plugin.js +361 -0
  69. data/app/assets/javascripts/esp-ckeditor/_source/plugins/editingblock/plugin.js +278 -0
  70. data/app/assets/javascripts/esp-ckeditor/_source/plugins/elementspath/plugin.js +218 -0
  71. data/app/assets/javascripts/esp-ckeditor/_source/plugins/enterkey/plugin.js +433 -0
  72. data/app/assets/javascripts/esp-ckeditor/_source/plugins/entities/plugin.js +250 -0
  73. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/dialogs/esp_attachment.js +234 -0
  74. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/images/esp_attachment.png +0 -0
  75. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/lang/en.js +22 -0
  76. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/lang/ru.js +22 -0
  77. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/lang/uk.js +22 -0
  78. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/plugin.js +23 -0
  79. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/dialogs/esp_audio.js +207 -0
  80. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/images/esp_audio.png +0 -0
  81. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/images/placeholder.png +0 -0
  82. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/lang/en.js +18 -0
  83. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/lang/ru.js +18 -0
  84. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/lang/uk.js +18 -0
  85. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_audio/plugin.js +182 -0
  86. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_blockquote/dialogs/esp_blockquote.js +132 -0
  87. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_blockquote/plugin.js +235 -0
  88. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_image/dialogs/esp_image.js +1414 -0
  89. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_image/images/esp_image.png +0 -0
  90. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_image/lang/en.js +9 -0
  91. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_image/lang/ru.js +9 -0
  92. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_image/lang/uk.js +9 -0
  93. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_image/plugin.js +80 -0
  94. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/dialogs/esp_anchor.js +145 -0
  95. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/dialogs/esp_link.js +1396 -0
  96. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/images/anchor.png +0 -0
  97. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/images/esp_anchor.png +0 -0
  98. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/images/esp_link.png +0 -0
  99. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/images/esp_unlink.png +0 -0
  100. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/lang/en.js +8 -0
  101. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/lang/ru.js +8 -0
  102. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/lang/uk.js +8 -0
  103. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_link/plugin.js +379 -0
  104. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_address.png +0 -0
  105. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_blockquote.png +0 -0
  106. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_div.png +0 -0
  107. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_h1.png +0 -0
  108. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_h2.png +0 -0
  109. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_h3.png +0 -0
  110. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_h4.png +0 -0
  111. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_h5.png +0 -0
  112. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_h6.png +0 -0
  113. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_p.png +0 -0
  114. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/block_pre.png +0 -0
  115. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/images/esp_showblocks.png +0 -0
  116. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_showblocks/plugin.js +163 -0
  117. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/dialogs/esp_video.js +277 -0
  118. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/images/esp_video.png +0 -0
  119. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/images/placeholder.png +0 -0
  120. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/lang/en.js +19 -0
  121. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/lang/ru.js +19 -0
  122. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/lang/uk.js +19 -0
  123. data/app/assets/javascripts/esp-ckeditor/_source/plugins/esp_video/plugin.js +182 -0
  124. data/app/assets/javascripts/esp-ckeditor/_source/plugins/fakeobjects/plugin.js +175 -0
  125. data/app/assets/javascripts/esp-ckeditor/_source/plugins/filebrowser/plugin.js +534 -0
  126. data/app/assets/javascripts/esp-ckeditor/_source/plugins/find/dialogs/find.js +915 -0
  127. data/app/assets/javascripts/esp-ckeditor/_source/plugins/find/plugin.js +47 -0
  128. data/app/assets/javascripts/esp-ckeditor/_source/plugins/floatpanel/plugin.js +428 -0
  129. data/app/assets/javascripts/esp-ckeditor/_source/plugins/format/plugin.js +197 -0
  130. data/app/assets/javascripts/esp-ckeditor/_source/plugins/htmldataprocessor/plugin.js +596 -0
  131. data/app/assets/javascripts/esp-ckeditor/_source/plugins/htmlwriter/plugin.js +319 -0
  132. data/app/assets/javascripts/esp-ckeditor/_source/plugins/image/dialogs/image.js +1407 -0
  133. data/app/assets/javascripts/esp-ckeditor/_source/plugins/image/plugin.js +81 -0
  134. data/app/assets/javascripts/esp-ckeditor/_source/plugins/indent/plugin.js +461 -0
  135. data/app/assets/javascripts/esp-ckeditor/_source/plugins/justify/plugin.js +253 -0
  136. data/app/assets/javascripts/esp-ckeditor/_source/plugins/keystrokes/plugin.js +225 -0
  137. data/app/assets/javascripts/esp-ckeditor/_source/plugins/list/plugin.js +774 -0
  138. data/app/assets/javascripts/esp-ckeditor/_source/plugins/listblock/plugin.js +266 -0
  139. data/app/assets/javascripts/esp-ckeditor/_source/plugins/liststyle/dialogs/liststyle.js +225 -0
  140. data/app/assets/javascripts/esp-ckeditor/_source/plugins/liststyle/plugin.js +66 -0
  141. data/app/assets/javascripts/esp-ckeditor/_source/plugins/maximize/plugin.js +353 -0
  142. data/app/assets/javascripts/esp-ckeditor/_source/plugins/menu/plugin.js +541 -0
  143. data/app/assets/javascripts/esp-ckeditor/_source/plugins/panel/plugin.js +400 -0
  144. data/app/assets/javascripts/esp-ckeditor/_source/plugins/pastefromword/filter/default.js +1367 -0
  145. data/app/assets/javascripts/esp-ckeditor/_source/plugins/pastefromword/plugin.js +141 -0
  146. data/app/assets/javascripts/esp-ckeditor/_source/plugins/pastetext/dialogs/pastetext.js +67 -0
  147. data/app/assets/javascripts/esp-ckeditor/_source/plugins/pastetext/plugin.js +98 -0
  148. data/app/assets/javascripts/esp-ckeditor/_source/plugins/popup/plugin.js +64 -0
  149. data/app/assets/javascripts/esp-ckeditor/_source/plugins/removeformat/plugin.js +185 -0
  150. data/app/assets/javascripts/esp-ckeditor/_source/plugins/resize/plugin.js +168 -0
  151. data/app/assets/javascripts/esp-ckeditor/_source/plugins/richcombo/plugin.js +381 -0
  152. data/app/assets/javascripts/esp-ckeditor/_source/plugins/selection/plugin.js +1729 -0
  153. data/app/assets/javascripts/esp-ckeditor/_source/plugins/showborders/plugin.js +207 -0
  154. data/app/assets/javascripts/esp-ckeditor/_source/plugins/sourcearea/plugin.js +209 -0
  155. data/app/assets/javascripts/esp-ckeditor/_source/plugins/styles/plugin.js +1700 -0
  156. data/app/assets/javascripts/esp-ckeditor/_source/plugins/styles/styles/default.js +88 -0
  157. data/app/assets/javascripts/esp-ckeditor/_source/plugins/stylescombo/plugin.js +218 -0
  158. data/app/assets/javascripts/esp-ckeditor/_source/plugins/tab/plugin.js +367 -0
  159. data/app/assets/javascripts/esp-ckeditor/_source/plugins/table/dialogs/table.js +623 -0
  160. data/app/assets/javascripts/esp-ckeditor/_source/plugins/table/plugin.js +78 -0
  161. data/app/assets/javascripts/esp-ckeditor/_source/plugins/tabletools/dialogs/tableCell.js +525 -0
  162. data/app/assets/javascripts/esp-ckeditor/_source/plugins/tabletools/plugin.js +1194 -0
  163. data/app/assets/javascripts/esp-ckeditor/_source/plugins/toolbar/plugin.js +545 -0
  164. data/app/assets/javascripts/esp-ckeditor/_source/plugins/undo/plugin.js +578 -0
  165. data/app/assets/javascripts/esp-ckeditor/_source/plugins/wysiwygarea/plugin.js +1347 -0
  166. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/dialog.css +988 -0
  167. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/editor.css +25 -0
  168. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/elementspath.css +73 -0
  169. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/icons.css +367 -0
  170. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/icons.png +0 -0
  171. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/icons_rtl.png +0 -0
  172. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/dialog_sides.gif +0 -0
  173. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/dialog_sides.png +0 -0
  174. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/dialog_sides_rtl.png +0 -0
  175. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/mini.gif +0 -0
  176. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/noimage.png +0 -0
  177. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/sprites.png +0 -0
  178. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/sprites_ie6.png +0 -0
  179. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/images/toolbar_start.gif +0 -0
  180. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/mainui.css +209 -0
  181. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/menu.css +232 -0
  182. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/panel.css +227 -0
  183. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/presets.css +49 -0
  184. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/reset.css +85 -0
  185. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/richcombo.css +287 -0
  186. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/skin.js +236 -0
  187. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/templates.css +88 -0
  188. data/app/assets/javascripts/esp-ckeditor/_source/skins/kama/toolbar.css +412 -0
  189. data/app/assets/javascripts/esp-ckeditor/_source/themes/default/theme.js +407 -0
  190. data/app/assets/javascripts/esp-ckeditor/application.js +8 -0
  191. data/app/assets/javascripts/esp-ckeditor/ckeditor.js +137 -0
  192. data/app/assets/javascripts/esp-ckeditor/ckeditor.pack +194 -0
  193. data/app/assets/javascripts/esp-ckeditor/ckeditor_source.js +35 -0
  194. data/app/assets/javascripts/esp-ckeditor/ckpackager.jar +0 -0
  195. data/app/assets/javascripts/esp-ckeditor/ckpackager.txt +2 -0
  196. data/app/assets/javascripts/esp-ckeditor/config.js +147 -0
  197. data/app/assets/javascripts/esp-ckeditor/contents.css +38 -0
  198. data/app/assets/javascripts/esp-ckeditor/images/spacer.gif +0 -0
  199. data/app/assets/javascripts/esp-ckeditor/init_ckeditor.js +1 -0
  200. data/app/assets/javascripts/esp-ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +1 -0
  201. data/app/assets/javascripts/esp-ckeditor/plugins/a11yhelp/lang/en.js +1 -0
  202. data/app/assets/javascripts/esp-ckeditor/plugins/a11yhelp/lang/he.js +1 -0
  203. data/app/assets/javascripts/esp-ckeditor/plugins/a11yhelp/plugin.js +1 -0
  204. data/app/assets/javascripts/esp-ckeditor/plugins/basicstyles/plugin.js +1 -0
  205. data/app/assets/javascripts/esp-ckeditor/plugins/button/plugin.js +1 -0
  206. data/app/assets/javascripts/esp-ckeditor/plugins/clipboard/dialogs/paste.js +1 -0
  207. data/app/assets/javascripts/esp-ckeditor/plugins/clipboard/plugin.js +1 -0
  208. data/app/assets/javascripts/esp-ckeditor/plugins/contextmenu/plugin.js +1 -0
  209. data/app/assets/javascripts/esp-ckeditor/plugins/dialog/dialogDefinition.js +0 -0
  210. data/app/assets/javascripts/esp-ckeditor/plugins/dialog/plugin.js +1 -0
  211. data/app/assets/javascripts/esp-ckeditor/plugins/dialogadvtab/plugin.js +1 -0
  212. data/app/assets/javascripts/esp-ckeditor/plugins/dialogui/plugin.js +1 -0
  213. data/app/assets/javascripts/esp-ckeditor/plugins/domiterator/plugin.js +1 -0
  214. data/app/assets/javascripts/esp-ckeditor/plugins/editingblock/plugin.js +1 -0
  215. data/app/assets/javascripts/esp-ckeditor/plugins/elementspath/plugin.js +1 -0
  216. data/app/assets/javascripts/esp-ckeditor/plugins/enterkey/plugin.js +1 -0
  217. data/app/assets/javascripts/esp-ckeditor/plugins/entities/plugin.js +1 -0
  218. data/app/assets/javascripts/esp-ckeditor/plugins/esp_attachment/dialogs/esp_attachment.js +1 -0
  219. data/app/assets/javascripts/esp-ckeditor/plugins/esp_attachment/images/esp_attachment.png +0 -0
  220. data/app/assets/javascripts/esp-ckeditor/plugins/esp_attachment/lang/en.js +1 -0
  221. data/app/assets/javascripts/esp-ckeditor/plugins/esp_attachment/lang/ru.js +1 -0
  222. data/app/assets/javascripts/esp-ckeditor/plugins/esp_attachment/lang/uk.js +1 -0
  223. data/app/assets/javascripts/esp-ckeditor/plugins/esp_attachment/plugin.js +1 -0
  224. data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/dialogs/esp_audio.js +1 -0
  225. data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/images/esp_audio.png +0 -0
  226. data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/images/placeholder.png +0 -0
  227. data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/lang/en.js +1 -0
  228. data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/lang/ru.js +1 -0
  229. data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/lang/uk.js +1 -0
  230. data/app/assets/javascripts/esp-ckeditor/plugins/esp_audio/plugin.js +1 -0
  231. data/app/assets/javascripts/esp-ckeditor/plugins/esp_blockquote/dialogs/esp_blockquote.js +1 -0
  232. data/app/assets/javascripts/esp-ckeditor/plugins/esp_blockquote/plugin.js +1 -0
  233. data/app/assets/javascripts/esp-ckeditor/plugins/esp_image/dialogs/esp_image.js +1 -0
  234. data/app/assets/javascripts/esp-ckeditor/plugins/esp_image/images/esp_image.png +0 -0
  235. data/app/assets/javascripts/esp-ckeditor/plugins/esp_image/lang/en.js +1 -0
  236. data/app/assets/javascripts/esp-ckeditor/plugins/esp_image/lang/ru.js +1 -0
  237. data/app/assets/javascripts/esp-ckeditor/plugins/esp_image/lang/uk.js +1 -0
  238. data/app/assets/javascripts/esp-ckeditor/plugins/esp_image/plugin.js +1 -0
  239. data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/dialogs/esp_anchor.js +1 -0
  240. data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/dialogs/esp_link.js +1 -0
  241. data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/images/anchor.png +0 -0
  242. data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/images/esp_anchor.png +0 -0
  243. data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/images/esp_link.png +0 -0
  244. data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/images/esp_unlink.png +0 -0
  245. data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/lang/en.js +1 -0
  246. data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/lang/ru.js +1 -0
  247. data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/lang/uk.js +1 -0
  248. data/app/assets/javascripts/esp-ckeditor/plugins/esp_link/plugin.js +1 -0
  249. data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_address.png +0 -0
  250. data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_blockquote.png +0 -0
  251. data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_div.png +0 -0
  252. data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_h1.png +0 -0
  253. data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_h2.png +0 -0
  254. data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_h3.png +0 -0
  255. data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_h4.png +0 -0
  256. data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_h5.png +0 -0
  257. data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_h6.png +0 -0
  258. data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_p.png +0 -0
  259. data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/block_pre.png +0 -0
  260. data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/images/esp_showblocks.png +0 -0
  261. data/app/assets/javascripts/esp-ckeditor/plugins/esp_showblocks/plugin.js +1 -0
  262. data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/dialogs/esp_video.js +1 -0
  263. data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/images/esp_video.png +0 -0
  264. data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/images/placeholder.png +0 -0
  265. data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/lang/en.js +1 -0
  266. data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/lang/ru.js +1 -0
  267. data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/lang/uk.js +1 -0
  268. data/app/assets/javascripts/esp-ckeditor/plugins/esp_video/plugin.js +1 -0
  269. data/app/assets/javascripts/esp-ckeditor/plugins/fakeobjects/plugin.js +1 -0
  270. data/app/assets/javascripts/esp-ckeditor/plugins/filebrowser/plugin.js +1 -0
  271. data/app/assets/javascripts/esp-ckeditor/plugins/find/dialogs/find.js +1 -0
  272. data/app/assets/javascripts/esp-ckeditor/plugins/find/plugin.js +1 -0
  273. data/app/assets/javascripts/esp-ckeditor/plugins/floatpanel/plugin.js +1 -0
  274. data/app/assets/javascripts/esp-ckeditor/plugins/format/plugin.js +1 -0
  275. data/app/assets/javascripts/esp-ckeditor/plugins/htmldataprocessor/plugin.js +1 -0
  276. data/app/assets/javascripts/esp-ckeditor/plugins/htmlwriter/plugin.js +1 -0
  277. data/app/assets/javascripts/esp-ckeditor/plugins/image/dialogs/image.js +1 -0
  278. data/app/assets/javascripts/esp-ckeditor/plugins/image/plugin.js +1 -0
  279. data/app/assets/javascripts/esp-ckeditor/plugins/indent/plugin.js +1 -0
  280. data/app/assets/javascripts/esp-ckeditor/plugins/justify/plugin.js +1 -0
  281. data/app/assets/javascripts/esp-ckeditor/plugins/keystrokes/plugin.js +1 -0
  282. data/app/assets/javascripts/esp-ckeditor/plugins/list/plugin.js +1 -0
  283. data/app/assets/javascripts/esp-ckeditor/plugins/listblock/plugin.js +1 -0
  284. data/app/assets/javascripts/esp-ckeditor/plugins/liststyle/dialogs/liststyle.js +1 -0
  285. data/app/assets/javascripts/esp-ckeditor/plugins/liststyle/plugin.js +1 -0
  286. data/app/assets/javascripts/esp-ckeditor/plugins/maximize/plugin.js +1 -0
  287. data/app/assets/javascripts/esp-ckeditor/plugins/menu/plugin.js +1 -0
  288. data/app/assets/javascripts/esp-ckeditor/plugins/panel/plugin.js +1 -0
  289. data/app/assets/javascripts/esp-ckeditor/plugins/pastefromword/filter/default.js +1 -0
  290. data/app/assets/javascripts/esp-ckeditor/plugins/pastefromword/plugin.js +1 -0
  291. data/app/assets/javascripts/esp-ckeditor/plugins/pastetext/dialogs/pastetext.js +1 -0
  292. data/app/assets/javascripts/esp-ckeditor/plugins/pastetext/plugin.js +1 -0
  293. data/app/assets/javascripts/esp-ckeditor/plugins/popup/plugin.js +1 -0
  294. data/app/assets/javascripts/esp-ckeditor/plugins/removeformat/plugin.js +1 -0
  295. data/app/assets/javascripts/esp-ckeditor/plugins/resize/plugin.js +1 -0
  296. data/app/assets/javascripts/esp-ckeditor/plugins/richcombo/plugin.js +1 -0
  297. data/app/assets/javascripts/esp-ckeditor/plugins/selection/plugin.js +1 -0
  298. data/app/assets/javascripts/esp-ckeditor/plugins/showborders/plugin.js +1 -0
  299. data/app/assets/javascripts/esp-ckeditor/plugins/sourcearea/plugin.js +1 -0
  300. data/app/assets/javascripts/esp-ckeditor/plugins/styles/plugin.js +1 -0
  301. data/app/assets/javascripts/esp-ckeditor/plugins/styles/styles/default.js +1 -0
  302. data/app/assets/javascripts/esp-ckeditor/plugins/stylescombo/plugin.js +1 -0
  303. data/app/assets/javascripts/esp-ckeditor/plugins/tab/plugin.js +1 -0
  304. data/app/assets/javascripts/esp-ckeditor/plugins/table/dialogs/table.js +1 -0
  305. data/app/assets/javascripts/esp-ckeditor/plugins/table/plugin.js +1 -0
  306. data/app/assets/javascripts/esp-ckeditor/plugins/tabletools/dialogs/tableCell.js +1 -0
  307. data/app/assets/javascripts/esp-ckeditor/plugins/tabletools/plugin.js +1 -0
  308. data/app/assets/javascripts/esp-ckeditor/plugins/toolbar/plugin.js +1 -0
  309. data/app/assets/javascripts/esp-ckeditor/plugins/undo/plugin.js +1 -0
  310. data/app/assets/javascripts/esp-ckeditor/plugins/wysiwygarea/plugin.js +1 -0
  311. data/app/assets/javascripts/esp-ckeditor/skins/kama/dialog.css +988 -0
  312. data/app/assets/javascripts/esp-ckeditor/skins/kama/editor.css +25 -0
  313. data/app/assets/javascripts/esp-ckeditor/skins/kama/elementspath.css +73 -0
  314. data/app/assets/javascripts/esp-ckeditor/skins/kama/icons.css +367 -0
  315. data/app/assets/javascripts/esp-ckeditor/skins/kama/icons.png +0 -0
  316. data/app/assets/javascripts/esp-ckeditor/skins/kama/icons_rtl.png +0 -0
  317. data/app/assets/javascripts/esp-ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  318. data/app/assets/javascripts/esp-ckeditor/skins/kama/images/dialog_sides.png +0 -0
  319. data/app/assets/javascripts/esp-ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  320. data/app/assets/javascripts/esp-ckeditor/skins/kama/images/mini.gif +0 -0
  321. data/app/assets/javascripts/esp-ckeditor/skins/kama/images/noimage.png +0 -0
  322. data/app/assets/javascripts/esp-ckeditor/skins/kama/images/sprites.png +0 -0
  323. data/app/assets/javascripts/esp-ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  324. data/app/assets/javascripts/esp-ckeditor/skins/kama/images/toolbar_start.gif +0 -0
  325. data/app/assets/javascripts/esp-ckeditor/skins/kama/mainui.css +209 -0
  326. data/app/assets/javascripts/esp-ckeditor/skins/kama/menu.css +232 -0
  327. data/app/assets/javascripts/esp-ckeditor/skins/kama/panel.css +227 -0
  328. data/app/assets/javascripts/esp-ckeditor/skins/kama/presets.css +49 -0
  329. data/app/assets/javascripts/esp-ckeditor/skins/kama/reset.css +85 -0
  330. data/app/assets/javascripts/esp-ckeditor/skins/kama/richcombo.css +287 -0
  331. data/app/assets/javascripts/esp-ckeditor/skins/kama/skin.js +236 -0
  332. data/app/assets/javascripts/esp-ckeditor/skins/kama/templates.css +88 -0
  333. data/app/assets/javascripts/esp-ckeditor/skins/kama/toolbar.css +412 -0
  334. data/app/inputs/ckeditor_input.rb +42 -0
  335. data/config/routes.rb +2 -0
  336. data/lib/esp-ckeditor/engine.rb +9 -0
  337. data/lib/esp-ckeditor/version.rb +3 -0
  338. data/lib/esp-ckeditor.rb +17 -0
  339. data/lib/tasks/esp-ckeditor_tasks.rake +4 -0
  340. metadata +434 -0
@@ -0,0 +1,545 @@
1
+ /*
2
+ Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ /**
7
+ * @fileOverview The "toolbar" plugin. Renders the default toolbar interface in
8
+ * the editor.
9
+ */
10
+
11
+ (function()
12
+ {
13
+ var toolbox = function()
14
+ {
15
+ this.toolbars = [];
16
+ this.focusCommandExecuted = false;
17
+ };
18
+
19
+ toolbox.prototype.focus = function()
20
+ {
21
+ for ( var t = 0, toolbar ; toolbar = this.toolbars[ t++ ] ; )
22
+ {
23
+ for ( var i = 0, item ; item = toolbar.items[ i++ ] ; )
24
+ {
25
+ if ( item.focus )
26
+ {
27
+ item.focus();
28
+ return;
29
+ }
30
+ }
31
+ }
32
+ };
33
+
34
+ var commands =
35
+ {
36
+ toolbarFocus :
37
+ {
38
+ modes : { wysiwyg : 1, source : 1 },
39
+ readOnly : 1,
40
+
41
+ exec : function( editor )
42
+ {
43
+ if ( editor.toolbox )
44
+ {
45
+ editor.toolbox.focusCommandExecuted = true;
46
+
47
+ // Make the first button focus accessible for IE. (#3417)
48
+ // Adobe AIR instead need while of delay.
49
+ if ( CKEDITOR.env.ie || CKEDITOR.env.air )
50
+ setTimeout( function(){ editor.toolbox.focus(); }, 100 );
51
+ else
52
+ editor.toolbox.focus();
53
+ }
54
+ }
55
+ }
56
+ };
57
+
58
+ CKEDITOR.plugins.add( 'toolbar',
59
+ {
60
+ init : function( editor )
61
+ {
62
+ var endFlag;
63
+
64
+ var itemKeystroke = function( item, keystroke )
65
+ {
66
+ var next, toolbar;
67
+ var rtl = editor.lang.dir == 'rtl',
68
+ toolbarGroupCycling = editor.config.toolbarGroupCycling;
69
+
70
+ toolbarGroupCycling = toolbarGroupCycling === undefined || toolbarGroupCycling;
71
+
72
+ switch ( keystroke )
73
+ {
74
+ case 9 : // TAB
75
+ case CKEDITOR.SHIFT + 9 : // SHIFT + TAB
76
+ // Cycle through the toolbars, starting from the one
77
+ // closest to the current item.
78
+ while ( !toolbar || !toolbar.items.length )
79
+ {
80
+ toolbar = keystroke == 9 ?
81
+ ( ( toolbar ? toolbar.next : item.toolbar.next ) || editor.toolbox.toolbars[ 0 ] ) :
82
+ ( ( toolbar ? toolbar.previous : item.toolbar.previous ) || editor.toolbox.toolbars[ editor.toolbox.toolbars.length - 1 ] );
83
+
84
+ // Look for the first item that accepts focus.
85
+ if ( toolbar.items.length )
86
+ {
87
+ item = toolbar.items[ endFlag ? ( toolbar.items.length - 1 ) : 0 ];
88
+ while ( item && !item.focus )
89
+ {
90
+ item = endFlag ? item.previous : item.next;
91
+
92
+ if ( !item )
93
+ toolbar = 0;
94
+ }
95
+ }
96
+ }
97
+
98
+ if ( item )
99
+ item.focus();
100
+
101
+ return false;
102
+
103
+ case rtl ? 37 : 39 : // RIGHT-ARROW
104
+ case 40 : // DOWN-ARROW
105
+ next = item;
106
+ do
107
+ {
108
+ // Look for the next item in the toolbar.
109
+ next = next.next;
110
+
111
+ // If it's the last item, cycle to the first one.
112
+ if ( !next && toolbarGroupCycling )
113
+ next = item.toolbar.items[ 0 ];
114
+ }
115
+ while ( next && !next.focus )
116
+
117
+ // If available, just focus it, otherwise focus the
118
+ // first one.
119
+ if ( next )
120
+ next.focus();
121
+ else
122
+ // Send a TAB.
123
+ itemKeystroke( item, 9 );
124
+
125
+ return false;
126
+
127
+ case rtl ? 39 : 37 : // LEFT-ARROW
128
+ case 38 : // UP-ARROW
129
+ next = item;
130
+ do
131
+ {
132
+ // Look for the previous item in the toolbar.
133
+ next = next.previous;
134
+
135
+ // If it's the first item, cycle to the last one.
136
+ if ( !next && toolbarGroupCycling )
137
+ next = item.toolbar.items[ item.toolbar.items.length - 1 ];
138
+ }
139
+ while ( next && !next.focus )
140
+
141
+ // If available, just focus it, otherwise focus the
142
+ // last one.
143
+ if ( next )
144
+ next.focus();
145
+ else
146
+ {
147
+ endFlag = 1;
148
+ // Send a SHIFT + TAB.
149
+ itemKeystroke( item, CKEDITOR.SHIFT + 9 );
150
+ endFlag = 0;
151
+ }
152
+
153
+ return false;
154
+
155
+ case 27 : // ESC
156
+ editor.focus();
157
+ return false;
158
+
159
+ case 13 : // ENTER
160
+ case 32 : // SPACE
161
+ item.execute();
162
+ return false;
163
+ }
164
+ return true;
165
+ };
166
+
167
+ editor.on( 'themeSpace', function( event )
168
+ {
169
+ if ( event.data.space == editor.config.toolbarLocation )
170
+ {
171
+ editor.toolbox = new toolbox();
172
+
173
+ var labelId = CKEDITOR.tools.getNextId();
174
+
175
+ var output = [ '<div class="cke_toolbox" role="group" aria-labelledby="', labelId, '" onmousedown="return false;"' ],
176
+ expanded = editor.config.toolbarStartupExpanded !== false,
177
+ groupStarted;
178
+
179
+ output.push( expanded ? '>' : ' style="display:none">' );
180
+
181
+ // Sends the ARIA label.
182
+ output.push( '<span id="', labelId, '" class="cke_voice_label">', editor.lang.toolbars, '</span>' );
183
+
184
+ var toolbars = editor.toolbox.toolbars,
185
+ toolbar =
186
+ ( editor.config.toolbar instanceof Array ) ?
187
+ editor.config.toolbar
188
+ :
189
+ editor.config[ 'toolbar_' + editor.config.toolbar ];
190
+
191
+ for ( var r = 0 ; r < toolbar.length ; r++ )
192
+ {
193
+ var toolbarId,
194
+ toolbarObj = 0,
195
+ toolbarName,
196
+ row = toolbar[ r ],
197
+ items;
198
+
199
+ // It's better to check if the row object is really
200
+ // available because it's a common mistake to leave
201
+ // an extra comma in the toolbar definition
202
+ // settings, which leads on the editor not loading
203
+ // at all in IE. (#3983)
204
+ if ( !row )
205
+ continue;
206
+
207
+ if ( groupStarted )
208
+ {
209
+ output.push( '</div>' );
210
+ groupStarted = 0;
211
+ }
212
+
213
+ if ( row === '/' )
214
+ {
215
+ output.push( '<div class="cke_break"></div>' );
216
+ continue;
217
+ }
218
+
219
+ items = row.items || row;
220
+
221
+ // Create all items defined for this toolbar.
222
+ for ( var i = 0 ; i < items.length ; i++ )
223
+ {
224
+ var item,
225
+ itemName = items[ i ],
226
+ canGroup;
227
+
228
+ item = editor.ui.create( itemName );
229
+
230
+ if ( item )
231
+ {
232
+ canGroup = item.canGroup !== false;
233
+
234
+ // Initialize the toolbar first, if needed.
235
+ if ( !toolbarObj )
236
+ {
237
+ // Create the basic toolbar object.
238
+ toolbarId = CKEDITOR.tools.getNextId();
239
+ toolbarObj = { id : toolbarId, items : [] };
240
+ toolbarName = row.name && ( editor.lang.toolbarGroups[ row.name ] || row.name );
241
+
242
+ // Output the toolbar opener.
243
+ output.push( '<span id="', toolbarId, '" class="cke_toolbar"',
244
+ ( toolbarName ? ' aria-labelledby="'+ toolbarId + '_label"' : '' ),
245
+ ' role="toolbar">' );
246
+
247
+ // If a toolbar name is available, send the voice label.
248
+ toolbarName && output.push( '<span id="', toolbarId, '_label" class="cke_voice_label">', toolbarName, '</span>' );
249
+
250
+ output.push( '<span class="cke_toolbar_start"></span>' );
251
+
252
+ // Add the toolbar to the "editor.toolbox.toolbars"
253
+ // array.
254
+ var index = toolbars.push( toolbarObj ) - 1;
255
+
256
+ // Create the next/previous reference.
257
+ if ( index > 0 )
258
+ {
259
+ toolbarObj.previous = toolbars[ index - 1 ];
260
+ toolbarObj.previous.next = toolbarObj;
261
+ }
262
+ }
263
+
264
+ if ( canGroup )
265
+ {
266
+ if ( !groupStarted )
267
+ {
268
+ output.push( '<span class="cke_toolgroup" role="presentation">' );
269
+ groupStarted = 1;
270
+ }
271
+ }
272
+ else if ( groupStarted )
273
+ {
274
+ output.push( '</span>' );
275
+ groupStarted = 0;
276
+ }
277
+
278
+ var itemObj = item.render( editor, output );
279
+ index = toolbarObj.items.push( itemObj ) - 1;
280
+
281
+ if ( index > 0 )
282
+ {
283
+ itemObj.previous = toolbarObj.items[ index - 1 ];
284
+ itemObj.previous.next = itemObj;
285
+ }
286
+
287
+ itemObj.toolbar = toolbarObj;
288
+ itemObj.onkey = itemKeystroke;
289
+
290
+ /*
291
+ * Fix for #3052:
292
+ * Prevent JAWS from focusing the toolbar after document load.
293
+ */
294
+ itemObj.onfocus = function()
295
+ {
296
+ if ( !editor.toolbox.focusCommandExecuted )
297
+ editor.focus();
298
+ };
299
+ }
300
+ }
301
+
302
+ if ( groupStarted )
303
+ {
304
+ output.push( '</span>' );
305
+ groupStarted = 0;
306
+ }
307
+
308
+ if ( toolbarObj )
309
+ output.push( '<span class="cke_toolbar_end"></span></span>' );
310
+ }
311
+
312
+ output.push( '</div>' );
313
+
314
+ if ( editor.config.toolbarCanCollapse )
315
+ {
316
+ var collapserFn = CKEDITOR.tools.addFunction(
317
+ function()
318
+ {
319
+ editor.execCommand( 'toolbarCollapse' );
320
+ });
321
+
322
+ editor.on( 'destroy', function () {
323
+ CKEDITOR.tools.removeFunction( collapserFn );
324
+ });
325
+
326
+ var collapserId = CKEDITOR.tools.getNextId();
327
+
328
+ editor.addCommand( 'toolbarCollapse',
329
+ {
330
+ readOnly : 1,
331
+ exec : function( editor )
332
+ {
333
+ var collapser = CKEDITOR.document.getById( collapserId ),
334
+ toolbox = collapser.getPrevious(),
335
+ contents = editor.getThemeSpace( 'contents' ),
336
+ toolboxContainer = toolbox.getParent(),
337
+ contentHeight = parseInt( contents.$.style.height, 10 ),
338
+ previousHeight = toolboxContainer.$.offsetHeight,
339
+ collapsed = !toolbox.isVisible();
340
+
341
+ if ( !collapsed )
342
+ {
343
+ toolbox.hide();
344
+ collapser.addClass( 'cke_toolbox_collapser_min' );
345
+ collapser.setAttribute( 'title', editor.lang.toolbarExpand );
346
+ }
347
+ else
348
+ {
349
+ toolbox.show();
350
+ collapser.removeClass( 'cke_toolbox_collapser_min' );
351
+ collapser.setAttribute( 'title', editor.lang.toolbarCollapse );
352
+ }
353
+
354
+ // Update collapser symbol.
355
+ collapser.getFirst().setText( collapsed ?
356
+ '\u25B2' : // BLACK UP-POINTING TRIANGLE
357
+ '\u25C0' ); // BLACK LEFT-POINTING TRIANGLE
358
+
359
+ var dy = toolboxContainer.$.offsetHeight - previousHeight;
360
+ contents.setStyle( 'height', ( contentHeight - dy ) + 'px' );
361
+
362
+ editor.fire( 'resize' );
363
+ },
364
+
365
+ modes : { wysiwyg : 1, source : 1 }
366
+ } );
367
+
368
+ output.push( '<a title="' + ( expanded ? editor.lang.toolbarCollapse : editor.lang.toolbarExpand )
369
+ + '" id="' + collapserId + '" tabIndex="-1" class="cke_toolbox_collapser' );
370
+
371
+ if ( !expanded )
372
+ output.push( ' cke_toolbox_collapser_min' );
373
+
374
+ output.push( '" onclick="CKEDITOR.tools.callFunction(' + collapserFn + ')">',
375
+ '<span>&#9650;</span>', // BLACK UP-POINTING TRIANGLE
376
+ '</a>' );
377
+ }
378
+
379
+ event.data.html += output.join( '' );
380
+ }
381
+ });
382
+
383
+ editor.on( 'destroy', function()
384
+ {
385
+ var toolbars, index = 0, i,
386
+ items, instance;
387
+ toolbars = this.toolbox.toolbars;
388
+ for ( ; index < toolbars.length; index++ )
389
+ {
390
+ items = toolbars[ index ].items;
391
+ for ( i = 0; i < items.length; i++ )
392
+ {
393
+ instance = items[ i ];
394
+ if ( instance.clickFn ) CKEDITOR.tools.removeFunction( instance.clickFn );
395
+ if ( instance.keyDownFn ) CKEDITOR.tools.removeFunction( instance.keyDownFn );
396
+ }
397
+ }
398
+ });
399
+
400
+ editor.addCommand( 'toolbarFocus', commands.toolbarFocus );
401
+
402
+ editor.ui.add( '-', CKEDITOR.UI_SEPARATOR, {} );
403
+ editor.ui.addHandler( CKEDITOR.UI_SEPARATOR,
404
+ {
405
+ create: function()
406
+ {
407
+ return {
408
+ render : function( editor, output )
409
+ {
410
+ output.push( '<span class="cke_separator" role="separator"></span>' );
411
+ return {};
412
+ }
413
+ };
414
+ }
415
+ });
416
+ }
417
+ });
418
+ })();
419
+
420
+ CKEDITOR.UI_SEPARATOR = 'separator';
421
+
422
+ /**
423
+ * The "theme space" to which rendering the toolbar. For the default theme,
424
+ * the recommended options are "top" and "bottom".
425
+ * @type String
426
+ * @default 'top'
427
+ * @see CKEDITOR.config.theme
428
+ * @example
429
+ * config.toolbarLocation = 'bottom';
430
+ */
431
+ CKEDITOR.config.toolbarLocation = 'top';
432
+
433
+ /**
434
+ * The toolbar definition. It is an array of toolbars (strips),
435
+ * each one being also an array, containing a list of UI items.
436
+ * Note that this setting is composed by "toolbar_" added by the toolbar name,
437
+ * which in this case is called "Basic". This second part of the setting name
438
+ * can be anything. You must use this name in the
439
+ * {@link CKEDITOR.config.toolbar} setting, so you instruct the editor which
440
+ * toolbar_(name) setting to you.
441
+ * @type Array
442
+ * @example
443
+ * // Defines a toolbar with only one strip containing the "Source" button, a
444
+ * // separator and the "Bold" and "Italic" buttons.
445
+ * <b>config.toolbar_Basic =
446
+ * [
447
+ * [ 'Source', '-', 'Bold', 'Italic' ]
448
+ * ]</b>;
449
+ * config.toolbar = 'Basic';
450
+ */
451
+ CKEDITOR.config.toolbar_Basic =
452
+ [
453
+ ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About']
454
+ ];
455
+
456
+ /**
457
+ * This is the default toolbar definition used by the editor. It contains all
458
+ * editor features.
459
+ * @type Array
460
+ * @default (see example)
461
+ * @example
462
+ * // This is actually the default value.
463
+ * config.toolbar_Full =
464
+ * [
465
+ * { name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
466
+ * { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
467
+ * { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
468
+ * { name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },
469
+ * '/',
470
+ * { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
471
+ * { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
472
+ * { name: 'links', items : [ 'Link','Unlink','Anchor' ] },
473
+ * { name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak' ] },
474
+ * '/',
475
+ * { name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
476
+ * { name: 'colors', items : [ 'TextColor','BGColor' ] },
477
+ * { name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }
478
+ * ];
479
+ */
480
+ CKEDITOR.config.toolbar_Full =
481
+ [
482
+ { name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
483
+ { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
484
+ { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
485
+ { name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },
486
+ '/',
487
+ { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
488
+ { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
489
+ { name: 'links', items : [ 'Link','Unlink','Anchor' ] },
490
+ { name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ] },
491
+ '/',
492
+ { name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
493
+ { name: 'colors', items : [ 'TextColor','BGColor' ] },
494
+ { name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }
495
+ ];
496
+
497
+ /**
498
+ * The toolbox (alias toolbar) definition. It is a toolbar name or an array of
499
+ * toolbars (strips), each one being also an array, containing a list of UI items.
500
+ * @type Array|String
501
+ * @default 'Full'
502
+ * @example
503
+ * // Defines a toolbar with only one strip containing the "Source" button, a
504
+ * // separator and the "Bold" and "Italic" buttons.
505
+ * config.toolbar =
506
+ * [
507
+ * [ 'Source', '-', 'Bold', 'Italic' ]
508
+ * ];
509
+ * @example
510
+ * // Load toolbar_Name where Name = Basic.
511
+ * config.toolbar = 'Basic';
512
+ */
513
+ CKEDITOR.config.toolbar = 'Full';
514
+
515
+ /**
516
+ * Whether the toolbar can be collapsed by the user. If disabled, the collapser
517
+ * button will not be displayed.
518
+ * @type Boolean
519
+ * @default true
520
+ * @example
521
+ * config.toolbarCanCollapse = false;
522
+ */
523
+ CKEDITOR.config.toolbarCanCollapse = true;
524
+
525
+ /**
526
+ * Whether the toolbar must start expanded when the editor is loaded.
527
+ * @name CKEDITOR.config.toolbarStartupExpanded
528
+ * @type Boolean
529
+ * @default true
530
+ * @example
531
+ * config.toolbarStartupExpanded = false;
532
+ */
533
+
534
+ /**
535
+ * When enabled, makes the arrow keys navigation cycle within the current
536
+ * toolbar group. Otherwise the arrows will move trought all items available in
537
+ * the toolbar. The TAB key will still be used to quickly jump among the
538
+ * toolbar groups.
539
+ * @name CKEDITOR.config.toolbarGroupCycling
540
+ * @since 3.6
541
+ * @type Boolean
542
+ * @default true
543
+ * @example
544
+ * config.toolbarGroupCycling = false;
545
+ */