aloha-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1045) hide show
  1. data/.gitignore +18 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/README.md +34 -0
  5. data/Rakefile +9 -0
  6. data/aloha-rails.gemspec +22 -0
  7. data/lib/aloha-rails.rb +13 -0
  8. data/lib/aloha-rails/engine.rb +9 -0
  9. data/lib/aloha-rails/helpers.rb +45 -0
  10. data/lib/aloha-rails/railtie.rb +9 -0
  11. data/lib/aloha-rails/version.rb +5 -0
  12. data/lib/generators/aloha/install/USAGE +9 -0
  13. data/lib/generators/aloha/install/install_generator.rb +25 -0
  14. data/lib/generators/aloha/install/templates/aloha-config.coffee +88 -0
  15. data/lib/generators/aloha/install/templates/aloha-config.js +108 -0
  16. data/lib/generators/aloha/install/templates/aloha.rb +21 -0
  17. data/lib/generators/aloha/install/templates/application.js +16 -0
  18. data/spec/aloha_spec.rb +20 -0
  19. data/spec/helpers/aloha_helpers_spec.rb +69 -0
  20. data/spec/spec_helper.rb +17 -0
  21. data/vendor/assets/javascripts/aloha/css/aloha-core.css +44 -0
  22. data/vendor/assets/javascripts/aloha/css/aloha-sidebar.css +284 -0
  23. data/vendor/assets/javascripts/aloha/css/aloha.css +7774 -0
  24. data/vendor/assets/javascripts/aloha/css/ext-aloha-reset.css +33 -0
  25. data/vendor/assets/javascripts/aloha/css/ext-aloha.css +357 -0
  26. data/vendor/assets/javascripts/aloha/img/arrow-down.png +0 -0
  27. data/vendor/assets/javascripts/aloha/img/arrow-left.png +0 -0
  28. data/vendor/assets/javascripts/aloha/img/arrow.png +0 -0
  29. data/vendor/assets/javascripts/aloha/img/base-big.png +0 -0
  30. data/vendor/assets/javascripts/aloha/img/base-multi.png +0 -0
  31. data/vendor/assets/javascripts/aloha/img/base.png +0 -0
  32. data/vendor/assets/javascripts/aloha/img/bg.png +0 -0
  33. data/vendor/assets/javascripts/aloha/img/breadcrumb-divider.png +0 -0
  34. data/vendor/assets/javascripts/aloha/img/fade-in.png +0 -0
  35. data/vendor/assets/javascripts/aloha/img/fade-out.png +0 -0
  36. data/vendor/assets/javascripts/aloha/img/gentics-logo.png +0 -0
  37. data/vendor/assets/javascripts/aloha/img/grabhandle.png +0 -0
  38. data/vendor/assets/javascripts/aloha/img/maximize.png +0 -0
  39. data/vendor/assets/javascripts/aloha/img/multisplit-base.jpg +0 -0
  40. data/vendor/assets/javascripts/aloha/img/multisplit-close.gif +0 -0
  41. data/vendor/assets/javascripts/aloha/img/multisplit-open.gif +0 -0
  42. data/vendor/assets/javascripts/aloha/img/pin.png +0 -0
  43. data/vendor/assets/javascripts/aloha/img/removeformat.png +0 -0
  44. data/vendor/assets/javascripts/aloha/img/text_indent.png +0 -0
  45. data/vendor/assets/javascripts/aloha/img/text_indent_remove.png +0 -0
  46. data/vendor/assets/javascripts/aloha/lib/aloha-bootstrap.js +27645 -0
  47. data/vendor/assets/javascripts/aloha/lib/aloha.js +88750 -0
  48. data/vendor/assets/javascripts/aloha/lib/aloha/command.js +246 -0
  49. data/vendor/assets/javascripts/aloha/lib/aloha/console.js +330 -0
  50. data/vendor/assets/javascripts/aloha/lib/aloha/contenthandlermanager.js +65 -0
  51. data/vendor/assets/javascripts/aloha/lib/aloha/core.js +560 -0
  52. data/vendor/assets/javascripts/aloha/lib/aloha/ecma5.js +194 -0
  53. data/vendor/assets/javascripts/aloha/lib/aloha/ecma5shims.js +280 -0
  54. data/vendor/assets/javascripts/aloha/lib/aloha/editable.js +854 -0
  55. data/vendor/assets/javascripts/aloha/lib/aloha/engine.js +8306 -0
  56. data/vendor/assets/javascripts/aloha/lib/aloha/ext-alohaproxy.js +86 -0
  57. data/vendor/assets/javascripts/aloha/lib/aloha/ext-alohareader.js +50 -0
  58. data/vendor/assets/javascripts/aloha/lib/aloha/ext-alohatreeloader.js +77 -0
  59. data/vendor/assets/javascripts/aloha/lib/aloha/ext.js +32 -0
  60. data/vendor/assets/javascripts/aloha/lib/aloha/floatingmenu.js +1304 -0
  61. data/vendor/assets/javascripts/aloha/lib/aloha/ierange-m2.js +546 -0
  62. data/vendor/assets/javascripts/aloha/lib/aloha/jquery.aloha.js +324 -0
  63. data/vendor/assets/javascripts/aloha/lib/aloha/jquery.js +24 -0
  64. data/vendor/assets/javascripts/aloha/lib/aloha/jquery.patch.js +115 -0
  65. data/vendor/assets/javascripts/aloha/lib/aloha/markup.js +977 -0
  66. data/vendor/assets/javascripts/aloha/lib/aloha/message.js +115 -0
  67. data/vendor/assets/javascripts/aloha/lib/aloha/nls/de/i18n.js +10 -0
  68. data/vendor/assets/javascripts/aloha/lib/aloha/nls/i18n.js +20 -0
  69. data/vendor/assets/javascripts/aloha/lib/aloha/observable.js +106 -0
  70. data/vendor/assets/javascripts/aloha/lib/aloha/plugin.js +276 -0
  71. data/vendor/assets/javascripts/aloha/lib/aloha/pluginmanager.js +146 -0
  72. data/vendor/assets/javascripts/aloha/lib/aloha/rangy-core.js +3242 -0
  73. data/vendor/assets/javascripts/aloha/lib/aloha/registry.js +59 -0
  74. data/vendor/assets/javascripts/aloha/lib/aloha/repository.js +241 -0
  75. data/vendor/assets/javascripts/aloha/lib/aloha/repositorymanager.js +570 -0
  76. data/vendor/assets/javascripts/aloha/lib/aloha/repositoryobjects.js +146 -0
  77. data/vendor/assets/javascripts/aloha/lib/aloha/selection.js +2083 -0
  78. data/vendor/assets/javascripts/aloha/lib/aloha/sidebar.js +1133 -0
  79. data/vendor/assets/javascripts/aloha/lib/aloha/ui-attributefield.js +530 -0
  80. data/vendor/assets/javascripts/aloha/lib/aloha/ui-browser.js +214 -0
  81. data/vendor/assets/javascripts/aloha/lib/aloha/ui.js +889 -0
  82. data/vendor/assets/javascripts/aloha/lib/css.js +313 -0
  83. data/vendor/assets/javascripts/aloha/lib/i18n.js +153 -0
  84. data/vendor/assets/javascripts/aloha/lib/jquery-plugin.js +46 -0
  85. data/vendor/assets/javascripts/aloha/lib/order.js +140 -0
  86. data/vendor/assets/javascripts/aloha/lib/require.js +2013 -0
  87. data/vendor/assets/javascripts/aloha/lib/text.js +262 -0
  88. data/vendor/assets/javascripts/aloha/lib/util/class.js +80 -0
  89. data/vendor/assets/javascripts/aloha/lib/util/dom.js +1673 -0
  90. data/vendor/assets/javascripts/aloha/lib/util/json2.js +481 -0
  91. data/vendor/assets/javascripts/aloha/lib/util/lang.js +66 -0
  92. data/vendor/assets/javascripts/aloha/lib/util/position.js +158 -0
  93. data/vendor/assets/javascripts/aloha/lib/util/range.js +923 -0
  94. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/adapter/jquery/ext-jquery-adapter-debug.js +2470 -0
  95. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/adapter/jquery/ext-jquery-adapter.js +7 -0
  96. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/ext-all-debug.js +47684 -0
  97. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/ext-all.js +13 -0
  98. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/gpl-3.0.txt +674 -0
  99. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/license.txt +42 -0
  100. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/charts.swf +0 -0
  101. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/css/ext-all.css +5903 -0
  102. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/css/ext-all.less +6795 -0
  103. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/css/xtheme-gray.css +1692 -0
  104. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/expressinstall.swf +0 -0
  105. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/corners-blue.gif +0 -0
  106. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/corners.gif +0 -0
  107. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/l-blue.gif +0 -0
  108. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/l.gif +0 -0
  109. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/r-blue.gif +0 -0
  110. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/r.gif +0 -0
  111. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/tb-blue.gif +0 -0
  112. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/tb.gif +0 -0
  113. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/arrow.gif +0 -0
  114. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/btn.gif +0 -0
  115. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/group-cs.gif +0 -0
  116. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/group-lr.gif +0 -0
  117. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/group-tb.gif +0 -0
  118. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-b-noline.gif +0 -0
  119. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-b.gif +0 -0
  120. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-bo.gif +0 -0
  121. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-noline.gif +0 -0
  122. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-o.gif +0 -0
  123. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow.gif +0 -0
  124. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/dd/drop-add.gif +0 -0
  125. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/dd/drop-no.gif +0 -0
  126. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/dd/drop-yes.gif +0 -0
  127. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/editor/tb-sprite.gif +0 -0
  128. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/checkbox.gif +0 -0
  129. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/clear-trigger.gif +0 -0
  130. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/clear-trigger.psd +0 -0
  131. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/date-trigger.gif +0 -0
  132. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/date-trigger.psd +0 -0
  133. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/error-tip-corners.gif +0 -0
  134. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/exclamation.gif +0 -0
  135. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/radio.gif +0 -0
  136. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/search-trigger.gif +0 -0
  137. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/search-trigger.psd +0 -0
  138. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/text-bg.gif +0 -0
  139. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger-square.gif +0 -0
  140. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger-square.psd +0 -0
  141. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger-tpl.gif +0 -0
  142. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger.gif +0 -0
  143. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger.psd +0 -0
  144. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/gradient-bg.gif +0 -0
  145. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/arrow-left-white.gif +0 -0
  146. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/arrow-right-white.gif +0 -0
  147. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/col-move-bottom.gif +0 -0
  148. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/col-move-top.gif +0 -0
  149. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/columns.gif +0 -0
  150. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/dirty.gif +0 -0
  151. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/done.gif +0 -0
  152. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/drop-no.gif +0 -0
  153. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/drop-yes.gif +0 -0
  154. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/footer-bg.gif +0 -0
  155. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-blue-hd.gif +0 -0
  156. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-blue-split.gif +0 -0
  157. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-hrow.gif +0 -0
  158. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-loading.gif +0 -0
  159. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-split.gif +0 -0
  160. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-vista-hd.gif +0 -0
  161. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-hd-btn.gif +0 -0
  162. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-hrow-over.gif +0 -0
  163. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-hrow.gif +0 -0
  164. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-special-col-bg.gif +0 -0
  165. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-special-col-sel-bg.gif +0 -0
  166. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-by.gif +0 -0
  167. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-collapse.gif +0 -0
  168. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-expand-sprite.gif +0 -0
  169. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-expand.gif +0 -0
  170. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hd-pop.gif +0 -0
  171. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-asc.gif +0 -0
  172. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-desc.gif +0 -0
  173. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-lock.gif +0 -0
  174. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-lock.png +0 -0
  175. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-unlock.gif +0 -0
  176. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-unlock.png +0 -0
  177. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/invalid_line.gif +0 -0
  178. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/loading.gif +0 -0
  179. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/mso-hd.gif +0 -0
  180. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/nowait.gif +0 -0
  181. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-first-disabled.gif +0 -0
  182. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-first.gif +0 -0
  183. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-last-disabled.gif +0 -0
  184. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-last.gif +0 -0
  185. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-next-disabled.gif +0 -0
  186. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-next.gif +0 -0
  187. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-prev-disabled.gif +0 -0
  188. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-prev.gif +0 -0
  189. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/pick-button.gif +0 -0
  190. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/refresh.gif +0 -0
  191. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-check-sprite.gif +0 -0
  192. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-expand-sprite.gif +0 -0
  193. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-over.gif +0 -0
  194. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-sel.gif +0 -0
  195. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/sort-hd.gif +0 -0
  196. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/sort_asc.gif +0 -0
  197. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/sort_desc.gif +0 -0
  198. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/wait.gif +0 -0
  199. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/collapse.gif +0 -0
  200. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/expand.gif +0 -0
  201. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/gradient-bg.gif +0 -0
  202. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-bottom.gif +0 -0
  203. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-left.gif +0 -0
  204. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-right.gif +0 -0
  205. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-top.gif +0 -0
  206. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/ns-collapse.gif +0 -0
  207. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/ns-expand.gif +0 -0
  208. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/panel-close.gif +0 -0
  209. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/panel-title-bg.gif +0 -0
  210. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/panel-title-light-bg.gif +0 -0
  211. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/stick.gif +0 -0
  212. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/stuck.gif +0 -0
  213. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/tab-close-on.gif +0 -0
  214. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/tab-close.gif +0 -0
  215. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/checked.gif +0 -0
  216. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/group-checked.gif +0 -0
  217. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/item-over.gif +0 -0
  218. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/menu-parent.gif +0 -0
  219. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/menu.gif +0 -0
  220. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/unchecked.gif +0 -0
  221. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/corners-sprite.gif +0 -0
  222. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/left-right.gif +0 -0
  223. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/light-hd.gif +0 -0
  224. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/tool-sprite-tpl.gif +0 -0
  225. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/tool-sprites.gif +0 -0
  226. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/tools-sprites-trans.gif +0 -0
  227. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/top-bottom.gif +0 -0
  228. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/top-bottom.png +0 -0
  229. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/white-corners-sprite.gif +0 -0
  230. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/white-left-right.gif +0 -0
  231. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/white-top-bottom.gif +0 -0
  232. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/progress/progress-bg.gif +0 -0
  233. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/bg.gif +0 -0
  234. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/close.gif +0 -0
  235. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/tip-anchor-sprite.gif +0 -0
  236. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/tip-sprite.gif +0 -0
  237. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/s.gif +0 -0
  238. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shadow-c.png +0 -0
  239. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shadow-lr.png +0 -0
  240. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shadow.png +0 -0
  241. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/blue-loading.gif +0 -0
  242. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/calendar.gif +0 -0
  243. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/glass-bg.gif +0 -0
  244. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/hd-sprite.gif +0 -0
  245. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/large-loading.gif +0 -0
  246. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/left-btn.gif +0 -0
  247. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/loading-balls.gif +0 -0
  248. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/right-btn.gif +0 -0
  249. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/warning.gif +0 -0
  250. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/e-handle-dark.gif +0 -0
  251. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/e-handle.gif +0 -0
  252. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/ne-handle-dark.gif +0 -0
  253. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/ne-handle.gif +0 -0
  254. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/nw-handle-dark.gif +0 -0
  255. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/nw-handle.gif +0 -0
  256. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/s-handle-dark.gif +0 -0
  257. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/s-handle.gif +0 -0
  258. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/se-handle-dark.gif +0 -0
  259. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/se-handle.gif +0 -0
  260. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/square.gif +0 -0
  261. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/sw-handle-dark.gif +0 -0
  262. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/sw-handle.gif +0 -0
  263. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-bg.png +0 -0
  264. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-thumb.png +0 -0
  265. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-v-bg.png +0 -0
  266. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-v-thumb.png +0 -0
  267. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/scroll-left.gif +0 -0
  268. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/scroll-right.gif +0 -0
  269. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/scroller-bg.gif +0 -0
  270. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
  271. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
  272. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-left-bg.gif +0 -0
  273. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-over-left-bg.gif +0 -0
  274. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-over-right-bg.gif +0 -0
  275. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-right-bg.gif +0 -0
  276. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-close.gif +0 -0
  277. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-strip-bg.gif +0 -0
  278. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-strip-bg.png +0 -0
  279. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-strip-btm-bg.gif +0 -0
  280. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tabs-sprite.gif +0 -0
  281. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/bg.gif +0 -0
  282. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/btn-arrow-light.gif +0 -0
  283. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/btn-arrow.gif +0 -0
  284. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/btn-over-bg.gif +0 -0
  285. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/gray-bg.gif +0 -0
  286. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/more.gif +0 -0
  287. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-bg.gif +0 -0
  288. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-btn-sprite.gif +0 -0
  289. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-xl-btn-sprite.gif +0 -0
  290. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-xl-sep.gif +0 -0
  291. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/arrows.gif +0 -0
  292. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-add.gif +0 -0
  293. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-between.gif +0 -0
  294. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-no.gif +0 -0
  295. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-over.gif +0 -0
  296. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-under.gif +0 -0
  297. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-yes.gif +0 -0
  298. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-minus-nl.gif +0 -0
  299. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-minus.gif +0 -0
  300. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-plus-nl.gif +0 -0
  301. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-plus.gif +0 -0
  302. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end.gif +0 -0
  303. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-line.gif +0 -0
  304. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-minus-nl.gif +0 -0
  305. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-minus.gif +0 -0
  306. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-plus-nl.gif +0 -0
  307. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-plus.gif +0 -0
  308. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow.gif +0 -0
  309. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/folder-open.gif +0 -0
  310. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/folder.gif +0 -0
  311. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/leaf.gif +0 -0
  312. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/loading.gif +0 -0
  313. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/s.gif +0 -0
  314. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/icon-error.gif +0 -0
  315. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/icon-info.gif +0 -0
  316. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/icon-question.gif +0 -0
  317. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/icon-warning.gif +0 -0
  318. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/left-corners.png +0 -0
  319. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/left-corners.psd +0 -0
  320. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/left-right.png +0 -0
  321. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/left-right.psd +0 -0
  322. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/right-corners.png +0 -0
  323. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/right-corners.psd +0 -0
  324. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/top-bottom.png +0 -0
  325. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/top-bottom.psd +0 -0
  326. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/btn-arrow.gif +0 -0
  327. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/btn-sprite.gif +0 -0
  328. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/btn.gif +0 -0
  329. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/group-cs.gif +0 -0
  330. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/group-lr.gif +0 -0
  331. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/group-tb.gif +0 -0
  332. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/s-arrow-bo.gif +0 -0
  333. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/s-arrow-o.gif +0 -0
  334. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/clear-trigger.gif +0 -0
  335. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/date-trigger.gif +0 -0
  336. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/search-trigger.gif +0 -0
  337. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/trigger-square.gif +0 -0
  338. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/trigger.gif +0 -0
  339. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/gradient-bg.gif +0 -0
  340. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/col-move-bottom.gif +0 -0
  341. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/col-move-top.gif +0 -0
  342. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hd-btn.gif +0 -0
  343. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hrow-over.gif +0 -0
  344. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hrow-over2.gif +0 -0
  345. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hrow.gif +0 -0
  346. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hrow2.gif +0 -0
  347. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-special-col-bg.gif +0 -0
  348. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-special-col-bg2.gif +0 -0
  349. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-special-col-sel-bg.gif +0 -0
  350. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/group-collapse.gif +0 -0
  351. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/group-expand-sprite.gif +0 -0
  352. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/group-expand.gif +0 -0
  353. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/page-first.gif +0 -0
  354. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/page-last.gif +0 -0
  355. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/page-next.gif +0 -0
  356. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/page-prev.gif +0 -0
  357. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/refresh.gif +0 -0
  358. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/row-expand-sprite.gif +0 -0
  359. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/sort_asc.gif +0 -0
  360. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/sort_desc.gif +0 -0
  361. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/menu/group-checked.gif +0 -0
  362. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/menu/item-over-disabled.gif +0 -0
  363. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/menu/item-over.gif +0 -0
  364. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/menu/menu-parent.gif +0 -0
  365. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/corners-sprite.gif +0 -0
  366. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/left-right.gif +0 -0
  367. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/light-hd.gif +0 -0
  368. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/tool-sprite-tpl.gif +0 -0
  369. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/tool-sprites.gif +0 -0
  370. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/tools-sprites-trans.gif +0 -0
  371. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/top-bottom.gif +0 -0
  372. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/top-bottom.png +0 -0
  373. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/white-corners-sprite.gif +0 -0
  374. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/white-left-right.gif +0 -0
  375. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/white-top-bottom.gif +0 -0
  376. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/progress/progress-bg.gif +0 -0
  377. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/qtip/bg.gif +0 -0
  378. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/qtip/close.gif +0 -0
  379. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/qtip/tip-anchor-sprite.gif +0 -0
  380. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/qtip/tip-sprite.gif +0 -0
  381. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/s.gif +0 -0
  382. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/shared/hd-sprite.gif +0 -0
  383. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/shared/left-btn.gif +0 -0
  384. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/shared/right-btn.gif +0 -0
  385. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/e-handle.gif +0 -0
  386. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/ne-handle.gif +0 -0
  387. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/nw-handle.gif +0 -0
  388. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/s-handle.gif +0 -0
  389. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/se-handle.gif +0 -0
  390. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/square.gif +0 -0
  391. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/sw-handle.gif +0 -0
  392. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/slider/slider-thumb.png +0 -0
  393. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/slider/slider-v-thumb.png +0 -0
  394. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/scroll-left.gif +0 -0
  395. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/scroll-right.gif +0 -0
  396. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/scroller-bg.gif +0 -0
  397. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-inactive-left-bg.gif +0 -0
  398. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-inactive-right-bg.gif +0 -0
  399. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-left-bg.gif +0 -0
  400. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-over-left-bg.gif +0 -0
  401. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-over-right-bg.gif +0 -0
  402. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-right-bg.gif +0 -0
  403. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-close.gif +0 -0
  404. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-strip-bg.gif +0 -0
  405. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-strip-bg.png +0 -0
  406. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-strip-btm-bg.gif +0 -0
  407. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tabs-sprite.gif +0 -0
  408. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/bg.gif +0 -0
  409. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/btn-arrow-light.gif +0 -0
  410. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/btn-arrow.gif +0 -0
  411. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/btn-over-bg.gif +0 -0
  412. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/gray-bg.gif +0 -0
  413. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/more.gif +0 -0
  414. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/tb-bg.gif +0 -0
  415. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/tb-btn-sprite.gif +0 -0
  416. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/arrows.gif +0 -0
  417. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/elbow-end-minus-nl.gif +0 -0
  418. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/elbow-end-minus.gif +0 -0
  419. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/elbow-end-plus-nl.gif +0 -0
  420. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/elbow-end-plus.gif +0 -0
  421. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/icon-error.gif +0 -0
  422. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/icon-info.gif +0 -0
  423. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/icon-question.gif +0 -0
  424. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/icon-warning.gif +0 -0
  425. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/left-corners.png +0 -0
  426. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/left-corners.pspimage +0 -0
  427. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/left-right.png +0 -0
  428. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/right-corners.png +0 -0
  429. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/top-bottom.png +0 -0
  430. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/resources.jsb +507 -0
  431. data/vendor/assets/javascripts/aloha/lib/vendor/jquery-1.6.1.js +8936 -0
  432. data/vendor/assets/javascripts/aloha/lib/vendor/jquery.json-2.2.min.js +33 -0
  433. data/vendor/assets/javascripts/aloha/lib/vendor/jquery.store.js +446 -0
  434. data/vendor/assets/javascripts/aloha/lib/vendor/sanitize.js +267 -0
  435. data/vendor/assets/javascripts/aloha/plugins/common/abbr/css/abbr.css +0 -0
  436. data/vendor/assets/javascripts/aloha/plugins/common/abbr/lib/abbr-plugin.js +293 -0
  437. data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/de/i18n.js +1 -0
  438. data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/i18n.js +4 -0
  439. data/vendor/assets/javascripts/aloha/plugins/common/abbr/package.json +1 -0
  440. data/vendor/assets/javascripts/aloha/plugins/common/align/LICENSE +166 -0
  441. data/vendor/assets/javascripts/aloha/plugins/common/align/README +12 -0
  442. data/vendor/assets/javascripts/aloha/plugins/common/align/css/align.css +19 -0
  443. data/vendor/assets/javascripts/aloha/plugins/common/align/img/align.png +0 -0
  444. data/vendor/assets/javascripts/aloha/plugins/common/align/lib/align-plugin.js +345 -0
  445. data/vendor/assets/javascripts/aloha/plugins/common/align/nls/en/i18n.js +1 -0
  446. data/vendor/assets/javascripts/aloha/plugins/common/align/nls/fr/i18n.js +1 -0
  447. data/vendor/assets/javascripts/aloha/plugins/common/align/nls/i18n.js +6 -0
  448. data/vendor/assets/javascripts/aloha/plugins/common/align/package.json +2 -0
  449. data/vendor/assets/javascripts/aloha/plugins/common/block/README +0 -0
  450. data/vendor/assets/javascripts/aloha/plugins/common/block/css/block.css +51 -0
  451. data/vendor/assets/javascripts/aloha/plugins/common/block/img/toolbar-draghandle.gif +0 -0
  452. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/block-plugin.js +104 -0
  453. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/block.js +442 -0
  454. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/blockcontenthandler.js +58 -0
  455. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/blockmanager.js +242 -0
  456. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/editor.js +209 -0
  457. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/editormanager.js +34 -0
  458. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/sidebarattributeeditor.js +119 -0
  459. data/vendor/assets/javascripts/aloha/plugins/common/block/package.json +11 -0
  460. data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/css/characterpicker.css +38 -0
  461. data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/img/icon.png +0 -0
  462. data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/lib/characterpicker-plugin.js +227 -0
  463. data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/de/i18n.js +1 -0
  464. data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/i18n.js +4 -0
  465. data/vendor/assets/javascripts/aloha/plugins/common/commands/css/abbr.css +0 -0
  466. data/vendor/assets/javascripts/aloha/plugins/common/commands/lib/commands-plugin.js +15 -0
  467. data/vendor/assets/javascripts/aloha/plugins/common/commands/lib/inserthtml.js +107 -0
  468. data/vendor/assets/javascripts/aloha/plugins/common/commands/package.json +1 -0
  469. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/README.md +0 -0
  470. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/contenthandler-plugin.js +54 -0
  471. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/genericcontenthandler.js +255 -0
  472. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/oembedcontenthandler.js +276 -0
  473. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/sanitizecontenthandler.js +136 -0
  474. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/wordcontenthandler.js +279 -0
  475. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/package.json +1 -0
  476. data/vendor/assets/javascripts/aloha/plugins/common/format/css/format.css +8 -0
  477. data/vendor/assets/javascripts/aloha/plugins/common/format/img/em.png +0 -0
  478. data/vendor/assets/javascripts/aloha/plugins/common/format/img/strong.png +0 -0
  479. data/vendor/assets/javascripts/aloha/plugins/common/format/lib/format-plugin.js +303 -0
  480. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/de/i18n.js +1 -0
  481. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/eo/i18n.js +1 -0
  482. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/fi/i18n.js +1 -0
  483. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/fr/i18n.js +1 -0
  484. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/i18n.js +10 -0
  485. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/it/i18n.js +1 -0
  486. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/pl/i18n.js +1 -0
  487. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/ru/i18n.js +1 -0
  488. data/vendor/assets/javascripts/aloha/plugins/common/highlighteditables/css/highlighteditables.css +14 -0
  489. data/vendor/assets/javascripts/aloha/plugins/common/highlighteditables/lib/highlighteditables-plugin.js +72 -0
  490. data/vendor/assets/javascripts/aloha/plugins/common/highlighteditables/package.json +1 -0
  491. data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/css/horizontalruler.css +4 -0
  492. data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/img/icon.png +0 -0
  493. data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/lib/horizontalruler-plugin.js +55 -0
  494. data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/de/i18n.js +1 -0
  495. data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/i18n.js +4 -0
  496. data/vendor/assets/javascripts/aloha/plugins/common/image/AGPL3 +661 -0
  497. data/vendor/assets/javascripts/aloha/plugins/common/image/LICENSE +25 -0
  498. data/vendor/assets/javascripts/aloha/plugins/common/image/README.md +83 -0
  499. data/vendor/assets/javascripts/aloha/plugins/common/image/css/image.css +124 -0
  500. data/vendor/assets/javascripts/aloha/plugins/common/image/demo/crop.html +76 -0
  501. data/vendor/assets/javascripts/aloha/plugins/common/image/demo/crop.php +21 -0
  502. data/vendor/assets/javascripts/aloha/plugins/common/image/demo/cropnresize.jpg +0 -0
  503. data/vendor/assets/javascripts/aloha/plugins/common/image/demo/index.html +120 -0
  504. data/vendor/assets/javascripts/aloha/plugins/common/image/img/blank.jpg +0 -0
  505. data/vendor/assets/javascripts/aloha/plugins/common/image/img/cropnresize.png +0 -0
  506. data/vendor/assets/javascripts/aloha/plugins/common/image/img/handle-sw.png +0 -0
  507. data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-align-left.png +0 -0
  508. data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-align-none.png +0 -0
  509. data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-align-right.png +0 -0
  510. data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-border.png +0 -0
  511. data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-title.png +0 -0
  512. data/vendor/assets/javascripts/aloha/plugins/common/image/img/image.gif +0 -0
  513. data/vendor/assets/javascripts/aloha/plugins/common/image/img/padding-decrease.gif +0 -0
  514. data/vendor/assets/javascripts/aloha/plugins/common/image/img/padding-increase.gif +0 -0
  515. data/vendor/assets/javascripts/aloha/plugins/common/image/img/page.png +0 -0
  516. data/vendor/assets/javascripts/aloha/plugins/common/image/img/size-decrease.gif +0 -0
  517. data/vendor/assets/javascripts/aloha/plugins/common/image/img/size-increase.gif +0 -0
  518. data/vendor/assets/javascripts/aloha/plugins/common/image/lib/image-plugin.js +1615 -0
  519. data/vendor/assets/javascripts/aloha/plugins/common/image/nls/cz/i18n.js +16 -0
  520. data/vendor/assets/javascripts/aloha/plugins/common/image/nls/de/i18n.js +1 -0
  521. data/vendor/assets/javascripts/aloha/plugins/common/image/nls/fr/i18n.js +1 -0
  522. data/vendor/assets/javascripts/aloha/plugins/common/image/nls/i18n.js +7 -0
  523. data/vendor/assets/javascripts/aloha/plugins/common/image/nls/ru/i18n.js +16 -0
  524. data/vendor/assets/javascripts/aloha/plugins/common/image/package.json +1 -0
  525. data/vendor/assets/javascripts/aloha/plugins/common/image/test/test.css +12 -0
  526. data/vendor/assets/javascripts/aloha/plugins/common/image/test/test.html +40 -0
  527. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/jcrop/jcrop.gif +0 -0
  528. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/jcrop/jquery.jcrop.css +35 -0
  529. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/jcrop/jquery.jcrop.min.js +163 -0
  530. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/mousewheel/mousewheel.js +60 -0
  531. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/jquery-ui-1.8.10.custom.min.js +97 -0
  532. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  533. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  534. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  535. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  536. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  537. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  538. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  539. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  540. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  541. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  542. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  543. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  544. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  545. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  546. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/jquery-ui-1.8.10.cropnresize.css +33 -0
  547. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/jquery-ui-1.8.10.custom.css +314 -0
  548. data/vendor/assets/javascripts/aloha/plugins/common/link/css/link.css +55 -0
  549. data/vendor/assets/javascripts/aloha/plugins/common/link/demo/background.png +0 -0
  550. data/vendor/assets/javascripts/aloha/plugins/common/link/demo/external-link-ltr-icon.png +0 -0
  551. data/vendor/assets/javascripts/aloha/plugins/common/link/demo/index.css +91 -0
  552. data/vendor/assets/javascripts/aloha/plugins/common/link/demo/index.html +91 -0
  553. data/vendor/assets/javascripts/aloha/plugins/common/link/extra/delicious.js +246 -0
  554. data/vendor/assets/javascripts/aloha/plugins/common/link/extra/linklist.js +227 -0
  555. data/vendor/assets/javascripts/aloha/plugins/common/link/extra/slowlinklist.js +228 -0
  556. data/vendor/assets/javascripts/aloha/plugins/common/link/lib/link-plugin.js +759 -0
  557. data/vendor/assets/javascripts/aloha/plugins/common/link/nls/de/i18n.js +13 -0
  558. data/vendor/assets/javascripts/aloha/plugins/common/link/nls/fr/i18n.js +6 -0
  559. data/vendor/assets/javascripts/aloha/plugins/common/link/nls/i18n.js +9 -0
  560. data/vendor/assets/javascripts/aloha/plugins/common/link/nls/pl/i18n.js +6 -0
  561. data/vendor/assets/javascripts/aloha/plugins/common/link/nls/ru/i18n.js +6 -0
  562. data/vendor/assets/javascripts/aloha/plugins/common/list/lib/list-plugin.js +849 -0
  563. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/de/i18n.js +1 -0
  564. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/eo/i18n.js +1 -0
  565. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/fi/i18n.js +1 -0
  566. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/fr/i18n.js +1 -0
  567. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/i18n.js +9 -0
  568. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/it/i18n.js +1 -0
  569. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/ru/i18n.js +1 -0
  570. data/vendor/assets/javascripts/aloha/plugins/common/list/package.json +1 -0
  571. data/vendor/assets/javascripts/aloha/plugins/common/paste/README.md +3 -0
  572. data/vendor/assets/javascripts/aloha/plugins/common/paste/lib/paste-plugin.js +221 -0
  573. data/vendor/assets/javascripts/aloha/plugins/common/paste/package.json +8 -0
  574. data/vendor/assets/javascripts/aloha/plugins/common/table/css/table.css +160 -0
  575. data/vendor/assets/javascripts/aloha/plugins/common/table/img/down.cur +0 -0
  576. data/vendor/assets/javascripts/aloha/plugins/common/table/img/left.cur +0 -0
  577. data/vendor/assets/javascripts/aloha/plugins/common/table/img/table_layout.png +0 -0
  578. data/vendor/assets/javascripts/aloha/plugins/common/table/img/wai-green.png +0 -0
  579. data/vendor/assets/javascripts/aloha/plugins/common/table/img/wai-red.png +0 -0
  580. data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-cell.js +463 -0
  581. data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-create-layer.js +210 -0
  582. data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-plugin-utils.js +355 -0
  583. data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-plugin.js +1498 -0
  584. data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-selection.js +374 -0
  585. data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table.js +1529 -0
  586. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/de/i18n.js +1 -0
  587. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/eo/i18n.js +1 -0
  588. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/fi/i18n.js +1 -0
  589. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/fr/i18n.js +1 -0
  590. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/i18n.js +11 -0
  591. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/it/i18n.js +1 -0
  592. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/pl/i18n.js +1 -0
  593. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/ru/i18n.js +1 -0
  594. data/vendor/assets/javascripts/aloha/plugins/common/table/package.json +1 -0
  595. data/vendor/assets/javascripts/aloha/plugins/common/undo/demo/index.css +49 -0
  596. data/vendor/assets/javascripts/aloha/plugins/common/undo/demo/index.html +85 -0
  597. data/vendor/assets/javascripts/aloha/plugins/common/undo/lib/undo-plugin.js +134 -0
  598. data/vendor/assets/javascripts/aloha/plugins/common/undo/package.json +7 -0
  599. data/vendor/assets/javascripts/aloha/plugins/common/undo/vendor/diff_match_patch_uncompressed.js +2155 -0
  600. data/vendor/assets/javascripts/aloha/plugins/common/undo/vendor/undo.js +119 -0
  601. data/vendor/assets/javascripts/aloha/plugins/extra/attributes/README +0 -0
  602. data/vendor/assets/javascripts/aloha/plugins/extra/attributes/css/attributes.css +12 -0
  603. data/vendor/assets/javascripts/aloha/plugins/extra/attributes/lib/attributes-plugin.js +217 -0
  604. data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/de/i18n.js +1 -0
  605. data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/en/i18n.js +1 -0
  606. data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/i18n.js +5 -0
  607. data/vendor/assets/javascripts/aloha/plugins/extra/browser/README +0 -0
  608. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/browser.css +360 -0
  609. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/browser.jqgrid.css +374 -0
  610. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/browsercombined.css +752 -0
  611. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  612. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  613. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  614. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  615. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  616. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  617. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  618. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  619. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_222222_256x240.png +0 -0
  620. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_2e83ff_256x240.png +0 -0
  621. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_454545_256x240.png +0 -0
  622. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_888888_256x240.png +0 -0
  623. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_cd0a0a_256x240.png +0 -0
  624. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/jquery-ui-1.8.13.custom.css +319 -0
  625. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/jstree.css +88 -0
  626. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/throbber.gif +0 -0
  627. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/ui.jqgrid.css +148 -0
  628. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-000-medium.png +0 -0
  629. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-180.png +0 -0
  630. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-315-medium.png +0 -0
  631. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-stop-180.png +0 -0
  632. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-stop.png +0 -0
  633. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow.png +0 -0
  634. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/control-stop-square-small.png +0 -0
  635. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/folder-horizontal-open.png +0 -0
  636. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/folder-open.png +0 -0
  637. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/gcn-icons/gcn-icon-file.gif +0 -0
  638. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/gcn-icons/gcn-icon-image.gif +0 -0
  639. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/gcn-icons/gcn-icon-page.gif +0 -0
  640. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/magnifier-left.png +0 -0
  641. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/page.png +0 -0
  642. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/picture.png +0 -0
  643. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/sort-alphabet-descending.png +0 -0
  644. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/sort-alphabet.png +0 -0
  645. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/throbber.gif +0 -0
  646. data/vendor/assets/javascripts/aloha/plugins/extra/browser/lib/browser-plugin.js +10 -0
  647. data/vendor/assets/javascripts/aloha/plugins/extra/browser/lib/browser.js +1103 -0
  648. data/vendor/assets/javascripts/aloha/plugins/extra/browser/lib/locale.js +26 -0
  649. data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/de.json +1 -0
  650. data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/de/i18n.js +18 -0
  651. data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/en.json +1 -0
  652. data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/en/i18n.js +18 -0
  653. data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/i18n.js +4 -0
  654. data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/grid.locale.de.js +134 -0
  655. data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/grid.locale.en.js +129 -0
  656. data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/jquery.jqGrid.js +467 -0
  657. data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/jquery.jstree.js +4544 -0
  658. data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/jquery.ui.js +756 -0
  659. data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/ui-layout.js +108 -0
  660. data/vendor/assets/javascripts/aloha/plugins/extra/cite/README +0 -0
  661. data/vendor/assets/javascripts/aloha/plugins/extra/cite/css/cite.css +49 -0
  662. data/vendor/assets/javascripts/aloha/plugins/extra/cite/img/blockquote.png +0 -0
  663. data/vendor/assets/javascripts/aloha/plugins/extra/cite/img/icon_cite.png +0 -0
  664. data/vendor/assets/javascripts/aloha/plugins/extra/cite/lib/cite-plugin.js +539 -0
  665. data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/de/i18n.js +1 -0
  666. data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/en/i18n.js +1 -0
  667. data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/i18n.js +4 -0
  668. data/vendor/assets/javascripts/aloha/plugins/extra/cite/package.json +1 -0
  669. data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/add-icon.png +0 -0
  670. data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/add.png +0 -0
  671. data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/comments.png +0 -0
  672. data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/hr.png +0 -0
  673. data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/textbox.png +0 -0
  674. data/vendor/assets/javascripts/aloha/plugins/extra/comments/package.json +1 -0
  675. data/vendor/assets/javascripts/aloha/plugins/extra/comments/src/comments.css +442 -0
  676. data/vendor/assets/javascripts/aloha/plugins/extra/comments/src/comments.js +669 -0
  677. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/AGPL3 +661 -0
  678. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/LICENSE +25 -0
  679. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/README.md +5 -0
  680. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/TODO.md +2 -0
  681. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/index.css +47 -0
  682. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/index.html +101 -0
  683. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/migration/index.css +189 -0
  684. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/migration/index.html +321 -0
  685. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/specs/DragnDropnImage.graphml +677 -0
  686. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/style.css +47 -0
  687. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/upload.php +26 -0
  688. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/i18n/en.json +1 -0
  689. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/i18n/fr.json +1 -0
  690. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/cross.png +0 -0
  691. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/hourglass.png +0 -0
  692. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/loading.gif +0 -0
  693. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/page.png +0 -0
  694. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/tick.png +0 -0
  695. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/draganddropfiles-plugin.js +4 -0
  696. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/dragndropfiles.css +110 -0
  697. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/dragndropfiles.js +349 -0
  698. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/dropfilesrepository.js +365 -0
  699. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/package.json +1 -0
  700. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/README.md +3 -0
  701. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/css/formatless.css +7 -0
  702. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/img/button.png +0 -0
  703. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/lib/formatlesshandler.js +67 -0
  704. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/lib/formatlesspaste-plugin.js +103 -0
  705. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/de/i18n.js +1 -0
  706. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/i18n.js +7 -0
  707. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/package.json +8 -0
  708. data/vendor/assets/javascripts/aloha/plugins/extra/headerids/README +0 -0
  709. data/vendor/assets/javascripts/aloha/plugins/extra/headerids/css/headerids.css +8 -0
  710. data/vendor/assets/javascripts/aloha/plugins/extra/headerids/lib/headerids-plugin.js +127 -0
  711. data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/de/i18n.js +1 -0
  712. data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/en/i18n.js +1 -0
  713. data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/i18n.js +5 -0
  714. data/vendor/assets/javascripts/aloha/plugins/extra/hints/dep/jquery.poshytip.js +470 -0
  715. data/vendor/assets/javascripts/aloha/plugins/extra/hints/i18n/de.json +1 -0
  716. data/vendor/assets/javascripts/aloha/plugins/extra/hints/i18n/en.json +1 -0
  717. data/vendor/assets/javascripts/aloha/plugins/extra/hints/img/tip-twitter_arrows.gif +0 -0
  718. data/vendor/assets/javascripts/aloha/plugins/extra/hints/package.json +9 -0
  719. data/vendor/assets/javascripts/aloha/plugins/extra/hints/src/hints.css +61 -0
  720. data/vendor/assets/javascripts/aloha/plugins/extra/hints/src/hints.js +49 -0
  721. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/README +0 -0
  722. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ad.png +0 -0
  723. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ae.png +0 -0
  724. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/af.png +0 -0
  725. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ag.png +0 -0
  726. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ai.png +0 -0
  727. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/al.png +0 -0
  728. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/am.png +0 -0
  729. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/an.png +0 -0
  730. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ao.png +0 -0
  731. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ar.png +0 -0
  732. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/as.png +0 -0
  733. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/at.png +0 -0
  734. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/au.png +0 -0
  735. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/aw.png +0 -0
  736. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ax.png +0 -0
  737. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/az.png +0 -0
  738. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ba.png +0 -0
  739. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bb.png +0 -0
  740. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bd.png +0 -0
  741. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/be.png +0 -0
  742. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bf.png +0 -0
  743. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bg.png +0 -0
  744. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bh.png +0 -0
  745. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bi.png +0 -0
  746. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bj.png +0 -0
  747. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bm.png +0 -0
  748. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bn.png +0 -0
  749. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bo.png +0 -0
  750. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/br.png +0 -0
  751. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bs.png +0 -0
  752. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bt.png +0 -0
  753. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bv.png +0 -0
  754. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bw.png +0 -0
  755. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/by.png +0 -0
  756. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bz.png +0 -0
  757. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ca.png +0 -0
  758. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/catalonia.png +0 -0
  759. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cc.png +0 -0
  760. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cd.png +0 -0
  761. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cf.png +0 -0
  762. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cg.png +0 -0
  763. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ch.png +0 -0
  764. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ci.png +0 -0
  765. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ck.png +0 -0
  766. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cl.png +0 -0
  767. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cm.png +0 -0
  768. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cn.png +0 -0
  769. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/co.png +0 -0
  770. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cr.png +0 -0
  771. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cs.png +0 -0
  772. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cu.png +0 -0
  773. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cv.png +0 -0
  774. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cx.png +0 -0
  775. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cy.png +0 -0
  776. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cz.png +0 -0
  777. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/de.png +0 -0
  778. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dj.png +0 -0
  779. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dk.png +0 -0
  780. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dm.png +0 -0
  781. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/do.png +0 -0
  782. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dz.png +0 -0
  783. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ec.png +0 -0
  784. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ee.png +0 -0
  785. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/eg.png +0 -0
  786. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/eh.png +0 -0
  787. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/en.png +0 -0
  788. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/er.png +0 -0
  789. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/es.png +0 -0
  790. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/et.png +0 -0
  791. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/europeanunion.png +0 -0
  792. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fam.png +0 -0
  793. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fi.png +0 -0
  794. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fj.png +0 -0
  795. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fk.png +0 -0
  796. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fm.png +0 -0
  797. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fo.png +0 -0
  798. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fr.png +0 -0
  799. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ga.png +0 -0
  800. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gb.png +0 -0
  801. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gd.png +0 -0
  802. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ge.png +0 -0
  803. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gf.png +0 -0
  804. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gh.png +0 -0
  805. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gi.png +0 -0
  806. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gl.png +0 -0
  807. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gm.png +0 -0
  808. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gn.png +0 -0
  809. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gp.png +0 -0
  810. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gq.png +0 -0
  811. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gr.png +0 -0
  812. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gs.png +0 -0
  813. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gt.png +0 -0
  814. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gu.png +0 -0
  815. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gw.png +0 -0
  816. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gy.png +0 -0
  817. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hk.png +0 -0
  818. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hm.png +0 -0
  819. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hn.png +0 -0
  820. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hr.png +0 -0
  821. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ht.png +0 -0
  822. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hu.png +0 -0
  823. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/id.png +0 -0
  824. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ie.png +0 -0
  825. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/il.png +0 -0
  826. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/in.png +0 -0
  827. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/io.png +0 -0
  828. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/iq.png +0 -0
  829. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ir.png +0 -0
  830. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/is.png +0 -0
  831. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/it.png +0 -0
  832. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/jm.png +0 -0
  833. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/jo.png +0 -0
  834. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/jp.png +0 -0
  835. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ke.png +0 -0
  836. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kg.png +0 -0
  837. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kh.png +0 -0
  838. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ki.png +0 -0
  839. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/km.png +0 -0
  840. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kn.png +0 -0
  841. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kp.png +0 -0
  842. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kr.png +0 -0
  843. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kw.png +0 -0
  844. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ky.png +0 -0
  845. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kz.png +0 -0
  846. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/la.png +0 -0
  847. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lb.png +0 -0
  848. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lc.png +0 -0
  849. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/li.png +0 -0
  850. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lk.png +0 -0
  851. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lr.png +0 -0
  852. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ls.png +0 -0
  853. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lt.png +0 -0
  854. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lu.png +0 -0
  855. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lv.png +0 -0
  856. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ly.png +0 -0
  857. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ma.png +0 -0
  858. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mc.png +0 -0
  859. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/md.png +0 -0
  860. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/me.png +0 -0
  861. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mg.png +0 -0
  862. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mh.png +0 -0
  863. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mk.png +0 -0
  864. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ml.png +0 -0
  865. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mm.png +0 -0
  866. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mn.png +0 -0
  867. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mo.png +0 -0
  868. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mp.png +0 -0
  869. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mq.png +0 -0
  870. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mr.png +0 -0
  871. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ms.png +0 -0
  872. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mt.png +0 -0
  873. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mu.png +0 -0
  874. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mv.png +0 -0
  875. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mw.png +0 -0
  876. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mx.png +0 -0
  877. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/my.png +0 -0
  878. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mz.png +0 -0
  879. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/na.png +0 -0
  880. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nc.png +0 -0
  881. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ne.png +0 -0
  882. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nf.png +0 -0
  883. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ng.png +0 -0
  884. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ni.png +0 -0
  885. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nl.png +0 -0
  886. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/no.png +0 -0
  887. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/np.png +0 -0
  888. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nr.png +0 -0
  889. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nu.png +0 -0
  890. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nz.png +0 -0
  891. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/om.png +0 -0
  892. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pa.png +0 -0
  893. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pe.png +0 -0
  894. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pf.png +0 -0
  895. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pg.png +0 -0
  896. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ph.png +0 -0
  897. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pk.png +0 -0
  898. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pl.png +0 -0
  899. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pm.png +0 -0
  900. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pn.png +0 -0
  901. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pr.png +0 -0
  902. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ps.png +0 -0
  903. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pt.png +0 -0
  904. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pw.png +0 -0
  905. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/py.png +0 -0
  906. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/qa.png +0 -0
  907. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/re.png +0 -0
  908. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ro.png +0 -0
  909. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/rs.png +0 -0
  910. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ru.png +0 -0
  911. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/rw.png +0 -0
  912. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sa.png +0 -0
  913. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sb.png +0 -0
  914. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sc.png +0 -0
  915. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/scotland.png +0 -0
  916. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sd.png +0 -0
  917. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/se.png +0 -0
  918. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sg.png +0 -0
  919. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sh.png +0 -0
  920. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/si.png +0 -0
  921. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sj.png +0 -0
  922. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sk.png +0 -0
  923. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sl.png +0 -0
  924. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sm.png +0 -0
  925. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sn.png +0 -0
  926. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/so.png +0 -0
  927. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sr.png +0 -0
  928. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/st.png +0 -0
  929. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sv.png +0 -0
  930. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sy.png +0 -0
  931. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sz.png +0 -0
  932. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tc.png +0 -0
  933. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/td.png +0 -0
  934. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tf.png +0 -0
  935. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tg.png +0 -0
  936. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/th.png +0 -0
  937. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tj.png +0 -0
  938. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tk.png +0 -0
  939. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tl.png +0 -0
  940. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tm.png +0 -0
  941. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tn.png +0 -0
  942. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/to.png +0 -0
  943. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tr.png +0 -0
  944. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tt.png +0 -0
  945. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tv.png +0 -0
  946. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tw.png +0 -0
  947. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tz.png +0 -0
  948. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ua.png +0 -0
  949. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ug.png +0 -0
  950. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/um.png +0 -0
  951. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/us.png +0 -0
  952. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/uy.png +0 -0
  953. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/uz.png +0 -0
  954. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/va.png +0 -0
  955. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vc.png +0 -0
  956. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ve.png +0 -0
  957. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vg.png +0 -0
  958. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vi.png +0 -0
  959. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vn.png +0 -0
  960. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vu.png +0 -0
  961. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/wales.png +0 -0
  962. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/wf.png +0 -0
  963. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ws.png +0 -0
  964. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ye.png +0 -0
  965. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/yt.png +0 -0
  966. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/za.png +0 -0
  967. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/zm.png +0 -0
  968. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/zw.png +0 -0
  969. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/lib/linkbrowser-plugin.js +153 -0
  970. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/de/i18n.js +1 -0
  971. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/fr/i18n.js +1 -0
  972. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/i18n.js +7 -0
  973. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/pl/i18n.js +1 -0
  974. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/ru/i18n.js +1 -0
  975. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/demo/index.css +49 -0
  976. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/demo/index.html +82 -0
  977. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/i18n/en.json +1 -0
  978. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/package.json +1 -0
  979. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/proxy.php +244 -0
  980. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/src/linkchecker.css +14 -0
  981. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/src/linkchecker.js +256 -0
  982. data/vendor/assets/javascripts/aloha/plugins/extra/listenforcer/lib/listenforcer-plugin.js +165 -0
  983. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/README +0 -0
  984. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/css/metaview.css +86 -0
  985. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/anchor.png +0 -0
  986. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/blockquote.png +0 -0
  987. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/button.png +0 -0
  988. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/caption.png +0 -0
  989. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/cite.png +0 -0
  990. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/dd.png +0 -0
  991. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/div.png +0 -0
  992. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/dl.png +0 -0
  993. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/dt.png +0 -0
  994. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h1.png +0 -0
  995. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h2.png +0 -0
  996. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h3.png +0 -0
  997. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h4.png +0 -0
  998. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h5.png +0 -0
  999. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h6.png +0 -0
  1000. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/icon_cite.png +0 -0
  1001. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/p.png +0 -0
  1002. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/pre.png +0 -0
  1003. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/table.png +0 -0
  1004. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/td.png +0 -0
  1005. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/th.png +0 -0
  1006. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/lib/metaview-plugin.js +82 -0
  1007. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/de.json +1 -0
  1008. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/de/i18n.js +1 -0
  1009. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/en.json +1 -0
  1010. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/en/i18n.js +1 -0
  1011. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/i18n.js +5 -0
  1012. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/README +0 -0
  1013. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/css/numerated-headers.css +7 -0
  1014. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/demo/index.css +189 -0
  1015. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/demo/index.html +139 -0
  1016. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/demo/js/aloha-config.js +115 -0
  1017. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/img/headers.png +0 -0
  1018. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/lib/numerated-headers-plugin.js +233 -0
  1019. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/de/i18n.js +1 -0
  1020. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/en/i18n.js +1 -0
  1021. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/i18n.js +5 -0
  1022. data/vendor/assets/javascripts/aloha/plugins/extra/profiler/css/profiler.css +34 -0
  1023. data/vendor/assets/javascripts/aloha/plugins/extra/profiler/lib/profiler-plugin.js +285 -0
  1024. data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/LICENSE.md +662 -0
  1025. data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/README.md +8 -0
  1026. data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/css/ribbon.css +10 -0
  1027. data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/lib/ribbon-plugin.js +186 -0
  1028. data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/package.json +1 -0
  1029. data/vendor/assets/javascripts/aloha/plugins/extra/toc/i18n/de.json +1 -0
  1030. data/vendor/assets/javascripts/aloha/plugins/extra/toc/i18n/en.json +1 -0
  1031. data/vendor/assets/javascripts/aloha/plugins/extra/toc/package.json +1 -0
  1032. data/vendor/assets/javascripts/aloha/plugins/extra/toc/src/toc.js +350 -0
  1033. data/vendor/assets/javascripts/aloha/plugins/extra/vie/LICENSE +22 -0
  1034. data/vendor/assets/javascripts/aloha/plugins/extra/vie/README.markdown +65 -0
  1035. data/vendor/assets/javascripts/aloha/plugins/extra/vie/demo/index.html +93 -0
  1036. data/vendor/assets/javascripts/aloha/plugins/extra/vie/img/cms-decoupled-communications.png +0 -0
  1037. data/vendor/assets/javascripts/aloha/plugins/extra/vie/package.json +1 -0
  1038. data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/backbone-min.js +27 -0
  1039. data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/underscore-min.js +25 -0
  1040. data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/vie-aloha.js +74 -0
  1041. data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/vie-collectionmanager.js +70 -0
  1042. data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/vie-containermanager.js +263 -0
  1043. data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/vie.js +20 -0
  1044. data/vendor/assets/stylesheets/aloha.css +1 -0
  1045. metadata +1133 -0
@@ -0,0 +1,1498 @@
1
+ /*!
2
+ * Aloha Editor
3
+ * Author & Copyright (c) 2010 Gentics Software GmbH
4
+ * aloha-sales@gentics.com - way to over-lawyer it up Andrew :/
5
+ * Licensed unter the terms of http://www.aloha-editor.com/license.html
6
+ */
7
+
8
+ define( [
9
+ 'aloha',
10
+ 'aloha/jquery',
11
+ 'aloha/plugin',
12
+ 'aloha/pluginmanager',
13
+ 'aloha/floatingmenu',
14
+ 'i18n!table/nls/i18n',
15
+ 'i18n!aloha/nls/i18n',
16
+ 'table/table-create-layer',
17
+ 'table/table',
18
+ 'table/table-plugin-utils',
19
+ 'css!table/css/table.css'
20
+ ], function( Aloha,
21
+ jQuery,
22
+ Plugin,
23
+ PluginManager,
24
+ FloatingMenu,
25
+ i18n,
26
+ i18nCore,
27
+ CreateLayer,
28
+ Table,
29
+ Utils ) {
30
+
31
+ var GENTICS = window.GENTICS;
32
+
33
+ /**
34
+ * Register the TablePlugin as Aloha.Plugin
35
+ */
36
+ var TablePlugin = new Plugin('table');
37
+
38
+ /**
39
+ * The Create-Layer Object of the TablePlugin
40
+ *
41
+ * @see Table.CreateLayer
42
+ */
43
+ TablePlugin.createLayer = undefined;
44
+
45
+ /**
46
+ * Configure the available languages
47
+ */
48
+ TablePlugin.languages = ['en', 'de', 'fr', 'eo', 'fi', 'ru', 'it', 'pl'];
49
+
50
+ /**
51
+ * default button configuration
52
+ */
53
+ TablePlugin.config = [ 'table' ];
54
+
55
+ /**
56
+ * An Array which holds all newly created tables contains DOM-Nodes of
57
+ * table-objects
58
+ */
59
+ TablePlugin.TableRegistry = new Array();
60
+
61
+ /**
62
+ * Holds the active table-object
63
+ */
64
+ TablePlugin.activeTable = undefined;
65
+
66
+ /**
67
+ * parameters-objects for tables
68
+ *
69
+ * @param className
70
+ * The class of activated tables
71
+ */
72
+ TablePlugin.parameters = {
73
+ className : 'aloha-table', // class of editable tables
74
+ classSelectionRow : 'aloha-table-selectcolumn', // class for the upper table-row to select columns
75
+ classSelectionColumn : 'aloha-table-selectrow', // class for the left bound table-cells to select rows
76
+ classLeftUpperCorner : 'aloha-table-leftuppercorner', // class for the left upper corner cell
77
+ classTableWrapper : 'aloha-table-wrapper', // class of the outest table-wrapping div
78
+ classCellSelected : 'aloha-cell-selected', // class of cell which are selected (row/column selection)
79
+ waiRed : 'aloha-wai-red', // class that shows wai of div
80
+ waiGreen : 'aloha-wai-green', // class that shows wai of div
81
+ selectionArea : 10 // width/height of the selection rows (in pixel)
82
+ };
83
+
84
+ /**
85
+ * @hide
86
+ * {name:'green', text:'Green',tooltip:'Green',iconClass:'GENTICS_table GENTICS_button_green',cssClass:'green'}
87
+ */
88
+ TablePlugin.checkConfig = function (c){
89
+
90
+ if (typeof c == 'object' && c.length) {
91
+ var newC = [];
92
+
93
+ for (var i = 0; i < c.length; i++) {
94
+ if (c[i]) {
95
+ newC.push({
96
+ text : c[i].text ? c[i].text : c[i].name,
97
+ tooltip : c[i].tooltip ? c[i].tooltip : c[i].text,
98
+ iconClass : c[i].iconClass ? c[i].iconClass : 'aloha-button-' + c[i].name,
99
+ cssClass : c[i].cssClass ? c[i].cssClass : c[i].name
100
+ });
101
+ }
102
+ }
103
+
104
+ c = newC;
105
+ } else {
106
+ c = [];
107
+ }
108
+
109
+ return c;
110
+ };
111
+
112
+ /**
113
+ * Init method of the Table-plugin transforms all tables in the document
114
+ *
115
+ * @return void
116
+ */
117
+ TablePlugin.init = function() {
118
+
119
+ // apply settings
120
+ this.tableConfig = this.checkConfig(this.tableConfig||this.settings.tableConfig);
121
+ this.columnConfig = this.checkConfig(this.columnConfig||this.settings.columnConfig);
122
+ this.rowConfig = this.checkConfig(this.rowConfig||this.settings.rowConfig);
123
+
124
+ // add reference to the create layer object
125
+ this.createLayer = new CreateLayer( this );
126
+
127
+ var that = this;
128
+
129
+ // subscribe for the 'editableActivated' event to activate all tables in the editable
130
+ Aloha.bind( 'aloha-editable-created', function ( event, editable ) {
131
+
132
+ // add a mousedown event to all created editables to check if focus leaves a table
133
+ editable.obj.bind( 'mousedown', function ( jqEvent ) {
134
+ TablePlugin.setFocusedTable( undefined );
135
+ } );
136
+
137
+ editable.obj.find( 'table' ).each( function () {
138
+ // only convert tables which are editable
139
+ if ( that.isEditableTable( this ) &&
140
+ !TablePlugin.isWithinTable( this ) ) {
141
+ var table = new Table( this, TablePlugin );
142
+ table.parentEditable = editable;
143
+ // table.activate();
144
+ TablePlugin.TableRegistry.push( table );
145
+ }
146
+
147
+ TablePlugin.checkForNestedTables( editable.obj );
148
+ } );
149
+ } );
150
+
151
+ // initialize the table buttons
152
+ this.initTableButtons();
153
+
154
+ Aloha.bind( 'aloha-table-selection-changed', function () {
155
+ if ( null != TablePlugin.activeTable &&
156
+ 0 !== TablePlugin.activeTable.selection.selectedCells.length ) {
157
+ TablePlugin.updateFloatingMenuScope();
158
+ }
159
+ });
160
+
161
+ Aloha.bind( 'aloha-selection-changed', function (event, rangeObject) {
162
+ // this case probably occurs when the selection is empty?
163
+ if ( null == rangeObject.startContainer ) {
164
+ return;
165
+ }
166
+
167
+ if (Aloha.activeEditable) {
168
+ // get Plugin configuration
169
+ var config = that.getEditableConfig( Aloha.activeEditable.obj );
170
+
171
+ // show hide buttons regarding configuration and DOM position
172
+ if ( jQuery.inArray('table', config) != -1 && Aloha.Selection.mayInsertTag('table') ) {
173
+ that.createTableButton.show();
174
+ } else {
175
+ that.createTableButton.hide();
176
+ }
177
+
178
+ var table = rangeObject.findMarkup(function () {
179
+ return this.nodeName.toLowerCase() == 'table';
180
+ }, Aloha.activeEditable.obj);
181
+
182
+ if ( that.activeTable ) {
183
+ // check wheater we are inside a table
184
+ if ( table ) {
185
+ TablePlugin.updateFloatingMenuScope();
186
+ } else {
187
+ //reset cell selection flags
188
+ that.activeTable.selection.cellSelectionMode = false;
189
+ that.activeTable.selection.baseCellPosition = null;
190
+ that.activeTable.selection.lastSelectionRange = null;
191
+
192
+ that.activeTable.focusOut();
193
+ }
194
+ }
195
+
196
+ // TODO this should not be necessary here!
197
+ FloatingMenu.doLayout();
198
+ }
199
+ });
200
+
201
+ // subscribe for the 'editableActivated' event to activate all tables in the editable
202
+ Aloha.bind( 'aloha-editable-activated', function (event, props) {
203
+ props.editable.obj.find('table').each(function () {
204
+ // shortcut for TableRegistry
205
+ var tr = TablePlugin.TableRegistry;
206
+ for (var i = 0; i < tr.length; i++) {
207
+ if (tr[i].obj.attr('id') == jQuery(this).attr('id')) {
208
+ // activate the table
209
+ tr[i].activate();
210
+ // and continue with the next table tag
211
+ return true;
212
+ }
213
+ }
214
+
215
+ // if we come here, we did not find the table in our registry, so we need to create a new one
216
+ // only convert tables which are editable
217
+ if ( that.isEditableTable( this ) &&
218
+ !TablePlugin.isWithinTable( this ) ) {
219
+ var table = new Table( this, TablePlugin );
220
+ table.parentEditable = props.editable;
221
+ table.activate();
222
+ TablePlugin.TableRegistry.push( table );
223
+ }
224
+
225
+ TablePlugin.checkForNestedTables( props.editable.obj );
226
+ });
227
+ });
228
+
229
+ // subscribe for the 'editableDeactivated' event to deactivate all tables in the editable
230
+ Aloha.bind( 'aloha-editable-deactivated', function (event, properties) {
231
+ if (TablePlugin.activeTable) {
232
+ TablePlugin.activeTable.selection.unselectCells();
233
+ }
234
+ TablePlugin.setFocusedTable(undefined);
235
+
236
+ // shortcut for TableRegistry
237
+ var tr = TablePlugin.TableRegistry;
238
+ for (var i = 0; i < tr.length; i++) {
239
+ // activate the table
240
+ tr[i].deactivate();
241
+ }
242
+ });
243
+
244
+ Aloha.bind( 'aloha-smart-content-changed', function ( event ) {
245
+ if ( Aloha.activeEditable ) {
246
+ Aloha.activeEditable.obj.find( 'table' ).each( function () {
247
+ if ( TablePlugin.indexOfTableInRegistry( this ) == -1 &&
248
+ !TablePlugin.isWithinTable( this ) ) {
249
+ this.id = GENTICS.Utils.guid();
250
+
251
+ var table = new Table( this, TablePlugin );
252
+ table.parentEditable = Aloha.activeEditable;
253
+ TablePlugin.TableRegistry.push( table );
254
+ table.activate();
255
+ }
256
+
257
+ TablePlugin.checkForNestedTables( Aloha.activeEditable.obj );
258
+ } );
259
+ }
260
+ } );
261
+
262
+ if ( this.settings.summaryinsidebar ) {
263
+ Aloha.ready( function () {
264
+ that.initSidebar( Aloha.Sidebar.right.show() );
265
+ } );
266
+ }
267
+ };
268
+
269
+ //namespace prefix for this plugin
270
+ var tableNamespace = 'aloha-table';
271
+
272
+ function nsSel () {
273
+ var stringBuilder = [], prefix = tableNamespace;
274
+ jQuery.each(arguments, function () { stringBuilder.push('.' + (this == '' ? prefix : prefix + '-' + this)); });
275
+ return stringBuilder.join(' ').trim();
276
+ };
277
+
278
+ //Creates string with this component's namepsace prefixed the each classname
279
+ function nsClass () {
280
+ var stringBuilder = [], prefix = tableNamespace;
281
+ jQuery.each(arguments, function () { stringBuilder.push(this == '' ? prefix : prefix + '-' + this); });
282
+ return stringBuilder.join(' ').trim();
283
+ };
284
+
285
+ TablePlugin.initSidebar = function(sidebar) {
286
+ var pl = this;
287
+ pl.sidebar = sidebar;
288
+ sidebar.addPanel({
289
+
290
+ id : nsClass('sidebar-panel'),
291
+ title : i18n.t('table.sidebar.title'),
292
+ content : '',
293
+ expanded : true,
294
+ activeOn : 'table',
295
+
296
+ onInit : function () {
297
+ var that = this,
298
+ content = this.setContent(
299
+ '<label class="' + nsClass('label') + '" for="' + nsClass('textarea') + '" >' + i18n.t('table.label.target') + '</label>' +
300
+ '<textarea id="' + nsClass('textarea') + '" class="' + nsClass('textarea') + '" />').content;
301
+
302
+ jQuery(nsSel('textarea')).live('keyup', function() {
303
+ //The original developer thought that escaping the
304
+ //quote characters of the textarea value are
305
+ //necessary to work around a bug in IE. I could not
306
+ //reproduce the bug, so I commented the following
307
+ //out.
308
+ //.replace("\"", '&quot;').replace("'", "&#39;")
309
+ jQuery(that.effective).attr('summary', jQuery(nsSel('textarea')).val());
310
+ var waiDiv = jQuery('div[class*="wai"]', 'table#' + jQuery(that.effective).attr('id'));
311
+ waiDiv.removeClass(pl.get('waiGreen'));
312
+ waiDiv.removeClass(pl.get('waiRed'));
313
+
314
+ if (jQuery(nsSel('textarea')).val().trim() != '') {
315
+ waiDiv.addClass(pl.get('waiGreen'));
316
+ } else {
317
+ waiDiv.addClass(pl.get('waiRed'));
318
+ }
319
+ });
320
+ },
321
+
322
+ onActivate: function (effective) {
323
+ var that = this;
324
+ that.effective = effective;
325
+ jQuery(nsSel('textarea')).val(jQuery(that.effective).attr('summary'));
326
+ }
327
+
328
+ });
329
+ sidebar.show();
330
+ };
331
+
332
+ /**
333
+ * test if the table is editable
334
+ * @return boolean true if the table's parent element is contentEditable, false otherwise
335
+ */
336
+ TablePlugin.isEditableTable = function (table) {
337
+ return GENTICS.Utils.Dom.isEditable( table );
338
+ };
339
+
340
+ /**
341
+ * @param {DOMElement} table
342
+ * @return {Number}
343
+ */
344
+ TablePlugin.indexOfTableInRegistry = function ( table ) {
345
+ var registry = this.TableRegistry;
346
+
347
+ for ( var i = 0; i < registry.length; i++ ) {
348
+ // We need to find exactly the same object from the
349
+ // registry since we could also deal with cloned objects
350
+ if ( registry[ i ].obj[ 0 ].id == table.id ) {
351
+ return i;
352
+ }
353
+ }
354
+
355
+ return -1;
356
+ };
357
+
358
+ /**
359
+ * @param {DOMElement} table
360
+ * @return {Table}
361
+ */
362
+ TablePlugin.getTableFromRegistry = function ( table ) {
363
+ var i = this.indexOfTableInRegistry( table );
364
+ if ( i > -1 ) {
365
+ return this.TableRegistry[ i ];
366
+ }
367
+ return null;
368
+ };
369
+
370
+ /**
371
+ * Checks whether the current selection is inside a table within an
372
+ * editable
373
+ *
374
+ * @return {Boolean} true if we are inside a table
375
+ */
376
+ TablePlugin.isSelectionInTable = function () {
377
+ var range = Aloha.Selection.getRangeObject();
378
+ var container = jQuery( range.commonAncestorContainer );
379
+
380
+ if ( container.length == 0 ) {
381
+ return false;
382
+ }
383
+
384
+ if ( container.parents( '.aloha-editable table' ).length ) {
385
+ return true;
386
+ }
387
+
388
+ return false;
389
+ };
390
+
391
+ TablePlugin.preventNestedTables = function () {
392
+ if ( this.isSelectionInTable() ) {
393
+ Aloha.showMessage( new Aloha.Message( {
394
+ title : i18n.t( 'Table' ),
395
+ text : i18n.t( 'table.createTable.nestedTablesNoSupported' ),
396
+ type : Aloha.Message.Type.ALERT
397
+ } ) );
398
+
399
+ return true;
400
+ }
401
+
402
+ return false;
403
+ };
404
+
405
+ /**
406
+ * Checks if the given element is within a table.
407
+ *
408
+ * @param {DOMElment} elem
409
+ * @return {Boolean} true if elem is nested within a table
410
+ */
411
+ TablePlugin.isWithinTable = function ( elem ) {
412
+ return ( jQuery( elem )
413
+ .parents( '.aloha-editable table' )
414
+ .length > 0 );
415
+ };
416
+
417
+ /**
418
+ * Checks for the presence of nested tables in the given editable.
419
+ * @todo complete
420
+ * @param {jQuery} editable
421
+ */
422
+ TablePlugin.checkForNestedTables = function ( editable ) {
423
+ if ( editable.find( 'table table' ).length ) {
424
+ // show warning
425
+ } else {
426
+ // hide warning
427
+ }
428
+ };
429
+
430
+ /**
431
+ * Adds default row buttons, and custom formatting buttons to floating menu
432
+ */
433
+ TablePlugin.initRowsBtns = function () {
434
+ var that = this;
435
+
436
+ // add row before
437
+ FloatingMenu.addButton(
438
+ this.name + '.row',
439
+ new Aloha.ui.Button({
440
+ 'name' : 'addrowbefore',
441
+ 'iconClass' : 'aloha-button aloha-button-addRowBefore',
442
+ 'size' : 'small',
443
+ 'tooltip' : i18n.t('button.addrowbefore.tooltip'),
444
+ 'onclick' : function () {
445
+ if (that.activeTable) {
446
+ that.activeTable.addRowBeforeSelection();
447
+ }
448
+ }
449
+ }),
450
+ i18n.t('floatingmenu.tab.table'),
451
+ 1
452
+ );
453
+
454
+ /*
455
+ // TODO: This would add a icon what would be toggled if the active
456
+ // editable contains nested tables. We show a warning to indicate to
457
+ // the user that we do not support nested tables
458
+ var tabs = FloatingMenu.tabs;
459
+ var j = tabs.length;
460
+ for ( var i = 0; i < j; i++ ) {
461
+ if ( tabs[ i ].label == i18n.t( 'floatingmenu.tab.table' ) ) {
462
+ tabs[ i ].label += '&nbsp<img\
463
+ src="../img/warning-icon.png"\
464
+ style="vertical-align:middle;"\
465
+ alt="" />';
466
+ }
467
+ }
468
+ */
469
+
470
+ // add row after
471
+ FloatingMenu.addButton(
472
+ this.name + '.row',
473
+ new Aloha.ui.Button({
474
+ 'name' : 'addrowafter',
475
+ 'iconClass' : 'aloha-button aloha-button-addRowAfter',
476
+ 'size' : 'small',
477
+ 'tooltip' : i18n.t('button.addrowafter.tooltip'),
478
+ 'onclick' : function () {
479
+ if (that.activeTable) {
480
+ that.activeTable.addRowAfterSelection();
481
+ }
482
+ }
483
+ }),
484
+ i18n.t('floatingmenu.tab.table'),
485
+ 1
486
+ );
487
+
488
+ // delete selected rows
489
+ FloatingMenu.addButton(
490
+ this.name + '.row',
491
+ new Aloha.ui.Button({
492
+ 'name' : 'deleterow',
493
+ 'iconClass' : 'aloha-button aloha-button-deleteRows',
494
+ 'size' : 'small',
495
+ 'tooltip' : i18n.t('button.delrows.tooltip'),
496
+ 'onclick' : function () {
497
+ if (that.activeTable) {
498
+ var aTable = that.activeTable;
499
+ Aloha.showMessage(new Aloha.Message({
500
+ title : i18n.t('Table'),
501
+ text : i18n.t('deleterows.confirm'),
502
+ type : Aloha.Message.Type.CONFIRM,
503
+ callback : function (sel) {
504
+ if (sel == 'yes') {
505
+ aTable.deleteRows();
506
+ }
507
+ }
508
+ }));
509
+ }
510
+ }
511
+ }),
512
+ i18n.t('floatingmenu.tab.table'),
513
+ 1
514
+ );
515
+
516
+ this.rowHeader = new Aloha.ui.Button({
517
+ name : 'rowheader',
518
+ iconClass : 'aloha-button aloha-button-row-header',
519
+ size : 'small',
520
+ tooltip : i18n.t('button.rowheader.tooltip'),
521
+ toggle : true,
522
+ onclick : function () {
523
+ // table header
524
+ if (that.activeTable) {
525
+ var sc = that.activeTable.selection.selectedCells;
526
+ that.rowsToSelect = [];
527
+ var makeHeader = (
528
+ sc[0] && sc[0].nodeName.toLowerCase() == 'td' && sc.length == 1 ||
529
+ sc[0] && sc[0].nodeName.toLowerCase() == 'td' &&
530
+ sc[1].nodeName.toLowerCase() == 'td' );
531
+ // if a selection was made, transform the selected cells
532
+ for (var i = 0; i < sc.length; i++) {
533
+ // for (var j = 0; j < sc[i].length; j++) {
534
+ if (i == 0) {
535
+ that.rowsToSelect.push(sc[i].rowIndex);
536
+ }
537
+
538
+ if ( makeHeader ) {
539
+ sc[i] = Aloha.Markup.transformDomObject(sc[i], 'th').attr('scope', 'col')[0];
540
+ } else {
541
+ sc[i] = Aloha.Markup.transformDomObject(sc[i], 'td').removeAttr('scope')[0];
542
+ }
543
+
544
+ jQuery(sc[i]).bind('mousedown', function (jqEvent) {
545
+ var wrapper = jQuery(this).children('div').eq(0);
546
+ setTimeout(function () {
547
+ wrapper.trigger('focus');
548
+ }, 1);
549
+ // unselect cells
550
+ if (that.activeTable) {
551
+ that.activeTable.selection.unselectCells();
552
+ }
553
+ });
554
+
555
+ /*
556
+ Destructive. For debugging.
557
+ Indicate directionality of header
558
+ jQuery(sc[i][j]).html('v');
559
+ */
560
+ // }
561
+ }
562
+
563
+ // selection could have changed.
564
+ if (that.activeTable) {
565
+ that.activeTable.refresh();
566
+ that.activeTable.selectRows();
567
+ }
568
+ }
569
+ }
570
+ });
571
+
572
+ FloatingMenu.addButton(
573
+ this.name + '.row',
574
+ this.rowHeader,
575
+ i18n.t('floatingmenu.tab.table'),
576
+ 1
577
+ );
578
+
579
+ // Add merge/split cells buttons
580
+ FloatingMenu.addButton(
581
+ this.name + '.row',
582
+ new Aloha.ui.Button({
583
+ 'name' : 'rowmergecells',
584
+ 'iconClass' : 'aloha-button aloha-button-merge-cells',
585
+ 'size' : 'small',
586
+ 'tooltip' : i18n.t('button.mergecells.tooltip'),
587
+ 'toggle' : false,
588
+ 'onclick' : function () {
589
+ if (that.activeTable) {
590
+ that.activeTable.selection.mergeCells();
591
+ }
592
+ }
593
+ }),
594
+ i18n.t('floatingmenu.tab.table'),
595
+ 1
596
+ );
597
+
598
+ FloatingMenu.addButton(
599
+ this.name + '.row',
600
+ new Aloha.ui.Button({
601
+ 'name' : 'rowsplitcells',
602
+ 'iconClass' : 'aloha-button aloha-button-split-cells',
603
+ 'size' : 'small',
604
+ 'tooltip' : i18n.t('button.splitcells.tooltip'),
605
+ 'toggle' : false,
606
+ 'onclick' : function () {
607
+ if (that.activeTable) {
608
+ that.activeTable.selection.splitCells();
609
+ }
610
+ }
611
+ }),
612
+ i18n.t('floatingmenu.tab.table'),
613
+ 1
614
+ );
615
+
616
+ // generate formatting buttons
617
+ this.rowMSItems = [];
618
+ jQuery.each(this.rowConfig, function (j, itemConf) {
619
+ that.rowMSItems.push({
620
+ name: itemConf.name,
621
+ text: i18n.t(itemConf.text),
622
+ tooltip: i18n.t(itemConf.tooltip),
623
+ iconClass: 'aloha-button aloha-row-layout ' + itemConf.iconClass,
624
+ click: function () {
625
+ if (that.activeTable) {
626
+ var sc = that.activeTable.selection.selectedCells;
627
+ // if a selection was made, transform the selected cells
628
+ for (var i = 0; i < sc.length; i++) {
629
+ for (var j = 0; j < sc[i].length; j++) {
630
+ // remove all row formattings
631
+ for (var f = 0; f < that.rowConfig.length; f++) {
632
+ jQuery(sc[i][j]).removeClass(that.rowConfig[f].cssClass);
633
+ }
634
+ // set new style
635
+ jQuery(sc[i][j]).addClass(itemConf.cssClass);
636
+ }
637
+ }
638
+
639
+ // selection could have changed.
640
+ that.activeTable.selectRows();
641
+ }
642
+ }
643
+ });
644
+ });
645
+
646
+ if (this.rowMSItems.length > 0) {
647
+ this.rowMSItems.push({
648
+ name: 'removeFormat',
649
+ text: i18n.t('button.removeFormat.text'),
650
+ tooltip: i18n.t('button.removeFormat.tooltip'),
651
+ iconClass: 'aloha-button aloha-button-removeFormat',
652
+ wide: true,
653
+ click: function () {
654
+ if (that.activeTable) {
655
+ var sc = that.activeTable.selection.selectedCells;
656
+ // if a selection was made, transform the selected cells
657
+ for (var i = 0; i < sc.length; i++) {
658
+ for (var j = 0; j < sc[i].length; j++) {
659
+ for (var f = 0; f < that.rowConfig.length; f++) {
660
+ jQuery(sc[i][j]).removeClass(that.rowConfig[f].cssClass);
661
+ }
662
+ }
663
+ }
664
+
665
+ // selection could have changed.
666
+ that.activeTable.selectRows();
667
+ }
668
+ }
669
+ });
670
+ }
671
+
672
+ this.rowMSButton = new Aloha.ui.MultiSplitButton({
673
+ items : this.rowMSItems,
674
+ name : 'tableRowActions'
675
+ });
676
+
677
+ if (this.rowMSItems.length > 0) {
678
+ FloatingMenu.addButton(
679
+ this.name + '.row',
680
+ this.rowMSButton,
681
+ i18n.t('floatingmenu.tab.table'),
682
+ 3
683
+ );
684
+ }
685
+ };
686
+
687
+ /**
688
+ * Adds default column buttons, and custom formatting buttons to floating menu
689
+ */
690
+ TablePlugin.initColumnBtns = function () {
691
+ var that = this;
692
+
693
+ // add column left btn
694
+ FloatingMenu.addButton(
695
+ this.name + '.column',
696
+ new Aloha.ui.Button({
697
+ 'name' : 'addcolumnleft',
698
+ 'iconClass' : 'aloha-button aloha-button-addColumnLeft',
699
+ 'size' : 'small',
700
+ 'tooltip' : i18n.t('button.addcolleft.tooltip'),
701
+ 'onclick' : function () {
702
+ if (that.activeTable) {
703
+ that.activeTable.addColumnsLeft();
704
+ }
705
+ }
706
+ }),
707
+ i18n.t('floatingmenu.tab.table'),
708
+ 1
709
+ );
710
+
711
+ // add column right btn
712
+ FloatingMenu.addButton(
713
+ this.name + '.column',
714
+ new Aloha.ui.Button({
715
+ 'name' : 'addcolumnright',
716
+ 'iconClass' : 'aloha-button aloha-button-addColumnRight',
717
+ 'size' : 'small',
718
+ 'tooltip' : i18n.t('button.addcolright.tooltip'),
719
+ 'onclick' : function () {
720
+ if (that.activeTable) {
721
+ that.activeTable.addColumnsRight();
722
+ }
723
+ }
724
+ }),
725
+ i18n.t('floatingmenu.tab.table'),
726
+ 1
727
+ );
728
+
729
+ // delete columns btn
730
+ FloatingMenu.addButton(
731
+ this.name + '.column',
732
+ new Aloha.ui.Button({
733
+ 'name' : 'deletecolumns',
734
+ 'iconClass' : 'aloha-button aloha-button-deleteColumns',
735
+ 'size' : 'small',
736
+ 'tooltip' : i18n.t('button.delcols.tooltip'),
737
+ 'onclick' : function () {
738
+ if (that.activeTable) {
739
+ var aTable = that.activeTable;
740
+ Aloha.showMessage(new Aloha.Message({
741
+ title : i18n.t('Table'),
742
+ text : i18n.t('deletecolumns.confirm'),
743
+ type : Aloha.Message.Type.CONFIRM,
744
+ callback : function (sel) {
745
+ if (sel == 'yes') {
746
+ aTable.deleteColumns();
747
+ }
748
+ }
749
+ }));
750
+ }
751
+ }
752
+ }),
753
+ i18n.t('floatingmenu.tab.table'),
754
+ 1
755
+ );
756
+
757
+ this.columnHeader = new Aloha.ui.Button({
758
+ name : 'columnheader',
759
+ iconClass : 'aloha-button aloha-button-col-header',
760
+ size : 'small',
761
+ tooltip : i18n.t('button.columnheader.tooltip'),
762
+ toggle : true,
763
+ onclick : function () {
764
+ // table header
765
+ if (that.activeTable) {
766
+ var
767
+ selectedColumnIdxs = that.activeTable.selection.selectedColumnIdxs,
768
+ cell,
769
+ isHeader = that.activeTable.selection.isHeader();
770
+
771
+ for (var j = 0; j < that.activeTable.selection.selectedCells.length; j++) {
772
+ cell = that.activeTable.selection.selectedCells[j];
773
+ if ( isHeader ) {
774
+ cell = Aloha.Markup.transformDomObject( cell, 'td' ).removeAttr( 'scope' ).get(0);
775
+ } else {
776
+ cell = Aloha.Markup.transformDomObject( cell, 'th' ).attr( 'scope', 'row' ).get(0);
777
+ }
778
+
779
+ jQuery( that.activeTable.selection.selectedCells[j] ).bind( 'mousedown', function ( jqEvent ) {
780
+ var wrapper = jQuery(this).children('div').eq(0);
781
+ // lovely IE ;-)
782
+ setTimeout(function () {
783
+ wrapper.trigger( 'focus' );
784
+ }, 1);
785
+ // unselect cells
786
+ });
787
+
788
+ }
789
+ // selection the column.
790
+ that.activeTable.refresh();
791
+ that.activeTable.selection.unselectCells();
792
+ that.activeTable.selection.selectColumns( selectedColumnIdxs );
793
+ }
794
+ }
795
+ });
796
+
797
+ FloatingMenu.addButton(
798
+ this.name + '.column',
799
+ this.columnHeader,
800
+ i18n.t('floatingmenu.tab.table'),
801
+ 1
802
+ );
803
+
804
+ // Add merge/split cells buttons
805
+ FloatingMenu.addButton(
806
+ this.name + '.column',
807
+ new Aloha.ui.Button({
808
+ 'name' : 'tablemergecells',
809
+ 'iconClass' : 'aloha-button aloha-button-merge-cells',
810
+ 'size' : 'small',
811
+ 'tooltip' : i18n.t('button.mergecells.tooltip'),
812
+ 'toggle' : false,
813
+ 'onclick' : function () {
814
+ if (that.activeTable) {
815
+ that.activeTable.selection.mergeCells();
816
+ }
817
+ }
818
+ }),
819
+ i18n.t('floatingmenu.tab.table'),
820
+ 1
821
+ );
822
+
823
+ FloatingMenu.addButton(
824
+ this.name + '.column',
825
+ new Aloha.ui.Button({
826
+ 'name' : 'tablesplitcells',
827
+ 'iconClass' : 'aloha-button aloha-button-split-cells',
828
+ 'size' : 'small',
829
+ 'tooltip' : i18n.t('button.splitcells.tooltip'),
830
+ 'toggle' : false,
831
+ 'onclick' : function () {
832
+ if (that.activeTable) {
833
+ that.activeTable.selection.splitCells();
834
+ }
835
+ }
836
+ }),
837
+ i18n.t('floatingmenu.tab.table'),
838
+ 1
839
+ );
840
+
841
+
842
+ // generate formatting buttons
843
+ this.columnMSItems = [];
844
+ jQuery.each(this.columnConfig, function (j, itemConf) {
845
+ var item = {
846
+ name : itemConf.name,
847
+ text : i18n.t(itemConf.text),
848
+ tooltip : i18n.t(itemConf.tooltip),
849
+ iconClass : 'aloha-button aloha-column-layout ' + itemConf.iconClass,
850
+ click : function (x,y,z) {
851
+ if (that.activeTable) {
852
+ var sc = that.activeTable.selection.selectedCells;
853
+ // if a selection was made, transform the selected cells
854
+ for (var i = 0; i < sc.length; i++) {
855
+ for (var j = 0; j < sc[i].length; j++) {
856
+ // remove all columnformattings
857
+ for (var f = 0; f < that.columnConfig.length; f++) {
858
+ jQuery(sc[i][j]).removeClass(that.columnConfig[f].cssClass);
859
+ }
860
+ // set new style
861
+ jQuery(sc[i][j]).addClass(itemConf.cssClass);
862
+ }
863
+ }
864
+ // selection could have changed.
865
+ that.activeTable.selectColumns();
866
+ }
867
+ }
868
+ };
869
+
870
+ that.columnMSItems.push(item);
871
+ });
872
+
873
+ if (this.columnMSItems.length > 0) {
874
+ this.columnMSItems.push({
875
+ name : 'removeFormat',
876
+ text : i18n.t('button.removeFormat.text'),
877
+ tooltip : i18n.t('button.removeFormat.tooltip'),
878
+ iconClass : 'aloha-button aloha-button-removeFormat',
879
+ wide : true,
880
+ click : function () {
881
+ if (that.activeTable) {
882
+ var sc = that.activeTable.selection.selectedCells;
883
+ // if a selection was made, transform the selected cells
884
+ for (var i = 0; i < sc.length; i++) {
885
+ for (var j = 0; j < sc[i].length; j++) {
886
+ for (var f = 0; f < that.columnConfig.length; f++) {
887
+ jQuery(sc[i][j]).removeClass(that.columnConfig[f].cssClass);
888
+ }
889
+ }
890
+ }
891
+
892
+ // selection could have changed.
893
+ that.activeTable.selectColumns();
894
+ }
895
+ }
896
+ });
897
+ }
898
+
899
+ this.columnMSButton = new Aloha.ui.MultiSplitButton({
900
+ items : this.columnMSItems,
901
+ name : 'tableColumnActions'
902
+ });
903
+
904
+ if (this.columnMSItems.length > 0) {
905
+ FloatingMenu.addButton(
906
+ this.name + '.column',
907
+ this.columnMSButton,
908
+ i18n.t('floatingmenu.tab.table'),
909
+ 3
910
+ );
911
+ }
912
+ };
913
+
914
+ /**
915
+ * initialize the buttons and register them on floating menu
916
+ */
917
+ TablePlugin.initTableButtons = function () {
918
+ var that = this;
919
+
920
+ // generate the new scopes
921
+ FloatingMenu.createScope(this.name + '.row', 'Aloha.global');
922
+ FloatingMenu.createScope(this.name + '.column', 'Aloha.global');
923
+ FloatingMenu.createScope(this.name + '.cell', 'Aloha.continuoustext');
924
+
925
+ // the 'create table' button
926
+ this.createTableButton = new Aloha.ui.Button({
927
+ 'name' : 'table',
928
+ 'iconClass' : 'aloha-button aloha-button-table',
929
+ 'size' : 'small',
930
+ 'tooltip' : i18n.t('button.createtable.tooltip'),
931
+ 'onclick' : function (element, event) {
932
+ TablePlugin.createDialog(element.btnEl.dom);
933
+ }
934
+ });
935
+
936
+ // add to floating menu
937
+ FloatingMenu.addButton(
938
+ 'Aloha.continuoustext',
939
+ this.createTableButton,
940
+ i18nCore.t('floatingmenu.tab.insert'),
941
+ 1
942
+ );
943
+
944
+ // now the specific table buttons
945
+
946
+ // generate formatting buttons for columns
947
+ this.initColumnBtns();
948
+
949
+ // generate formatting buttons for rows
950
+ this.initRowsBtns();
951
+
952
+ // generate formatting buttons for tables
953
+ this.tableMSItems = [];
954
+
955
+ var tableConfig = this.tableConfig;
956
+
957
+ jQuery.each(tableConfig, function(j, itemConf){
958
+ that.tableMSItems.push({
959
+ name: itemConf.name,
960
+ text: i18n.t(itemConf.text),
961
+ tooltip: i18n.t(itemConf.tooltip),
962
+ iconClass: 'aloha-button aloha-table-layout ' + itemConf.iconClass,
963
+ click: function(){
964
+ // set table css class
965
+ if (that.activeTable) {
966
+ for (var f = 0; f < tableConfig.length; f++) {
967
+ that.activeTable.obj.removeClass(tableConfig[f].cssClass);
968
+ }
969
+ that.activeTable.obj.addClass(itemConf.cssClass);
970
+ }
971
+ }
972
+ });
973
+ });
974
+
975
+ if(this.tableMSItems.length > 0) {
976
+ this.tableMSItems.push({
977
+ name: 'removeFormat',
978
+ text: i18n.t('button.removeFormat.text'),
979
+ tooltip: i18n.t('button.removeFormat.tooltip'),
980
+ iconClass: 'aloha-button aloha-button-removeFormat',
981
+ wide: true,
982
+ click: function () {
983
+ // remove all table classes
984
+ if (that.activeTable) {
985
+ for (var f = 0; f < tableConfig.length; f++) {
986
+ that.activeTable.obj.removeClass(that.tableConfig[f].cssClass);
987
+ }
988
+ }
989
+ }
990
+ });
991
+ }
992
+
993
+ this.tableMSButton = new Aloha.ui.MultiSplitButton({
994
+ items : this.tableMSItems,
995
+ name : 'tableActions'
996
+ });
997
+
998
+ if(this.tableMSItems.length > 0) {
999
+ FloatingMenu.addButton(
1000
+ this.name + '.cell',
1001
+ this.tableMSButton,
1002
+ i18n.t('floatingmenu.tab.tablelayout'),
1003
+ 3
1004
+ );
1005
+ };
1006
+
1007
+ // Add merge/split cells buttons
1008
+ FloatingMenu.addButton(
1009
+ this.name + '.cell',
1010
+ new Aloha.ui.Button({
1011
+ 'name' : 'mergecells',
1012
+ 'iconClass' : 'aloha-button aloha-button-merge-cells',
1013
+ 'size' : 'small',
1014
+ 'tooltip' : i18n.t('button.mergecells.tooltip'),
1015
+ 'toggle' : false,
1016
+ 'onclick' : function () {
1017
+ if (that.activeTable) {
1018
+ that.activeTable.selection.mergeCells();
1019
+ }
1020
+ }
1021
+ }),
1022
+ i18n.t('floatingmenu.tab.table'),
1023
+ 1
1024
+ );
1025
+
1026
+ FloatingMenu.addButton(
1027
+ this.name + '.cell',
1028
+ new Aloha.ui.Button({
1029
+ 'name' : 'splitcells',
1030
+ 'iconClass' : 'aloha-button aloha-button-split-cells',
1031
+ 'size' : 'small',
1032
+ 'tooltip' : i18n.t('button.splitcells.tooltip'),
1033
+ 'toggle' : false,
1034
+ 'onclick' : function () {
1035
+ if (that.activeTable) {
1036
+ that.activeTable.selection.splitCells();
1037
+ }
1038
+ }
1039
+ }),
1040
+ i18n.t('floatingmenu.tab.table'),
1041
+ 1
1042
+ );
1043
+
1044
+ // Add caption button
1045
+ this.captionButton = new Aloha.ui.Button({
1046
+ 'name' : 'tablecaption',
1047
+ 'iconClass' : 'aloha-button aloha-button-table-caption',
1048
+ 'size' : 'small',
1049
+ 'tooltip' : i18n.t('button.caption.tooltip'),
1050
+ 'toggle' : true,
1051
+ 'onclick' : function () {
1052
+ if (that.activeTable) {
1053
+ // look if table object has a child caption
1054
+ if ( that.activeTable.obj.children("caption").is('caption') ) {
1055
+ that.activeTable.obj.children("caption").remove();
1056
+ // select first cell of table
1057
+ } else {
1058
+ var captionText = i18n.t('empty.caption');
1059
+ var c = jQuery('<caption></caption>');
1060
+ that.activeTable.obj.append(c);
1061
+ that.makeCaptionEditable(c, captionText);
1062
+
1063
+ // get the editable span within the caption and select it
1064
+ var cDiv = c.find('div').eq(0);
1065
+ var captionContent = cDiv.contents().eq(0);
1066
+ if (captionContent.length > 0) {
1067
+ var newRange = new GENTICS.Utils.RangeObject();
1068
+ newRange.startContainer = newRange.endContainer = captionContent.get(0);
1069
+ newRange.startOffset = 0;
1070
+ newRange.endOffset = captionContent.text().length;
1071
+
1072
+ // blur all editables within the table
1073
+ that.activeTable.obj.find('div.aloha-table-cell-editable').blur();
1074
+
1075
+ cDiv.focus();
1076
+ newRange.select();
1077
+ Aloha.Selection.updateSelection();
1078
+ }
1079
+ }
1080
+ }
1081
+ }
1082
+ });
1083
+
1084
+ FloatingMenu.addButton(
1085
+ this.name + '.cell',
1086
+ this.captionButton,
1087
+ i18n.t('floatingmenu.tab.table'),
1088
+ 1
1089
+ );
1090
+
1091
+ // for cells
1092
+ // add summary field
1093
+ this.summary = new Aloha.ui.AttributeField( {
1094
+ width : 275,
1095
+ name : 'tableSummary'
1096
+ } );
1097
+
1098
+ this.summary.addListener( 'keyup', function( obj, event ) {
1099
+ that.activeTable.checkWai();
1100
+ } );
1101
+
1102
+ if(!this.settings.summaryinsidebar) {
1103
+ FloatingMenu.addButton(
1104
+ this.name + '.cell',
1105
+ this.summary,
1106
+ i18n.t('floatingmenu.tab.table'),
1107
+ 1
1108
+ );
1109
+ }
1110
+ };
1111
+
1112
+ /**
1113
+ * Helper method to make the caption editable
1114
+ * @param caption caption as jQuery object
1115
+ * @param captionText default text for the caption
1116
+ */
1117
+ TablePlugin.makeCaptionEditable = function(caption, captionText) {
1118
+ var that = this;
1119
+ var cSpan = caption.children('div').eq(0);
1120
+ if (cSpan.length == 0) {
1121
+ // generate a new div
1122
+ cSpan = jQuery('<div></div>');
1123
+ jQuery(cSpan).addClass('aloha-ui');
1124
+ jQuery(cSpan).addClass('aloha-editable-caption');
1125
+ if (caption.contents().length > 0) {
1126
+ // when the caption has content, we wrap it with the new div
1127
+ caption.contents().wrap(cSpan);
1128
+ } else {
1129
+ // caption has no content, so insert the default caption text
1130
+ if (captionText) {
1131
+ cSpan.text(captionText);
1132
+ }
1133
+ // and append the div into the caption
1134
+ caption.append(cSpan);
1135
+ }
1136
+ }
1137
+ // make the div editable
1138
+ cSpan.contentEditable(true);
1139
+ cSpan.unbind('mousedown');
1140
+ // focus on click
1141
+ cSpan.bind('mousedown', function(jqEvent) {
1142
+ cSpan.focus();
1143
+ // stop bubble, otherwise the mousedown of the table is called ...
1144
+ jqEvent.preventDefault();
1145
+ jqEvent.stopPropagation();
1146
+ return false;
1147
+ });
1148
+ };
1149
+
1150
+ /**
1151
+ * This function adds the createDialog to the calling element
1152
+ *
1153
+ * @param callingElement
1154
+ * The element, which was clicked. It's needed to set the right
1155
+ * position to the create-table-dialog.
1156
+ */
1157
+ TablePlugin.createDialog = function(callingElement) {
1158
+ // set the calling element to the layer the calling element mostly will be
1159
+ // the element which was clicked on it is used to position the createLayer
1160
+ this.createLayer.set('target', callingElement);
1161
+
1162
+ // show the createLayer
1163
+ this.createLayer.show();
1164
+
1165
+ };
1166
+
1167
+ /**
1168
+ * Creates a normal html-table, "activates" this table and inserts it into the
1169
+ * active Editable
1170
+ *
1171
+ * @param cols
1172
+ * number of colums for the created table
1173
+ * @param cols
1174
+ * number of rows for the created table
1175
+ * @return void
1176
+ */
1177
+ TablePlugin.createTable = function(cols, rows) {
1178
+ if ( this.preventNestedTables() ) {
1179
+ return;
1180
+ }
1181
+
1182
+ // Check if there is an active Editable and that it contains an element (= .obj)
1183
+ if ( Aloha.activeEditable && typeof Aloha.activeEditable.obj !== 'undefined' ) {
1184
+ // create a dom-table object
1185
+ var table = document.createElement( 'table' );
1186
+ var tableId = table.id = GENTICS.Utils.guid();
1187
+ var tbody = document.createElement( 'tbody' );
1188
+
1189
+ // create "rows"-number of rows
1190
+ for ( var i = 0; i < rows; i++ ) {
1191
+ var tr = document.createElement( 'tr' );
1192
+ // create "cols"-number of columns
1193
+ for ( var j = 0; j < cols; j++ ) {
1194
+ var text = document.createTextNode( '\u00a0' );
1195
+ var td = document.createElement( 'td' );
1196
+ td.appendChild( text );
1197
+ tr.appendChild( td );
1198
+ }
1199
+ tbody.appendChild( tr );
1200
+ }
1201
+ table.appendChild( tbody );
1202
+
1203
+ prepareRangeContainersForInsertion(
1204
+ Aloha.Selection.getRangeObject(), table );
1205
+
1206
+ // insert the table at the current selection
1207
+ GENTICS.Utils.Dom.insertIntoDOM(
1208
+ jQuery( table ),
1209
+ Aloha.Selection.getRangeObject(),
1210
+ Aloha.activeEditable.obj
1211
+ );
1212
+
1213
+ cleanupAfterInsertion();
1214
+
1215
+ var tableReloadedFromDOM = document.getElementById( tableId );
1216
+
1217
+ if ( !TablePlugin.isWithinTable( tableReloadedFromDOM ) ) {
1218
+ var tableObj = new Table( tableReloadedFromDOM, TablePlugin );
1219
+ tableObj.parentEditable = Aloha.activeEditable;
1220
+ // transform the table to be editable
1221
+ tableObj.activate();
1222
+
1223
+ // after creating the table, trigger a click into the first cell to
1224
+ // focus the content
1225
+ // for IE set a timeout of 10ms to focus the first cell, other wise it
1226
+ // won't work
1227
+ if ( jQuery.browser.msie ) {
1228
+ window.setTimeout( function () {
1229
+ tableObj.cells[ 0 ].wrapper.get( 0 ).focus();
1230
+ }, 20 );
1231
+ } else {
1232
+ tableObj.cells[ 0 ].wrapper.get( 0 ).focus();
1233
+ }
1234
+
1235
+ TablePlugin.TableRegistry.push( tableObj );
1236
+ }
1237
+
1238
+ TablePlugin.checkForNestedTables( Aloha.activeEditable.obj );
1239
+ // no active editable => error
1240
+ } else {
1241
+ this.error( 'There is no active Editable where the table can be\
1242
+ inserted!' );
1243
+ }
1244
+ };
1245
+
1246
+ TablePlugin.setFocusedTable = function(focusTable) {
1247
+ var that = this;
1248
+
1249
+ // clicking outside the table unselects the cells of the table
1250
+ if ( null == focusTable && null != this.activeTable ) {
1251
+ this.activeTable.selection.unselectCells();
1252
+ }
1253
+
1254
+ for (var i = 0; i < TablePlugin.TableRegistry.length; i++) {
1255
+ TablePlugin.TableRegistry[i].hasFocus = false;
1256
+ }
1257
+ if (typeof focusTable != 'undefined') {
1258
+ this.summary.setTargetObject(focusTable.obj, 'summary');
1259
+ if ( focusTable.obj.children("caption").is('caption') ) {
1260
+ // set caption button
1261
+ that.captionButton.setPressed(true);
1262
+ var c = focusTable.obj.children("caption");
1263
+ that.makeCaptionEditable(c);
1264
+ }
1265
+ focusTable.hasFocus = true;
1266
+ }
1267
+ TablePlugin.activeTable = focusTable;
1268
+
1269
+ if (this.tableMSButton.extButton) {
1270
+ // show configured formatting classes
1271
+ for (var i = 0; i < this.tableMSItems.length; i++) {
1272
+ this.tableMSButton.showItem(this.tableMSItems[i].name);
1273
+ }
1274
+ this.tableMSButton.setActiveItem();
1275
+ }
1276
+
1277
+ if (this.activeTable) {
1278
+ for (var i = 0; i < this.tableConfig.length; i++) {
1279
+ if (this.activeTable.obj.hasClass(this.tableConfig[i].cssClass)) {
1280
+ this.tableMSButton.setActiveItem(this.tableConfig[i].name);
1281
+ // TODO ???? k = this.tableConfig.length;
1282
+ }
1283
+ }
1284
+ }
1285
+ };
1286
+
1287
+ /**
1288
+ * Calls the Aloha.log function with 'error' level
1289
+ *
1290
+ * @see Aloha.log
1291
+ * @param msg
1292
+ * The message to display
1293
+ * @return void
1294
+ */
1295
+ TablePlugin.error = function(msg) {
1296
+ Aloha.Log.error(this, msg);
1297
+ };
1298
+
1299
+ /**
1300
+ * Calls the Aloha.log function with 'debug' level
1301
+ *
1302
+ * @see Aloha.log
1303
+ * @param msg
1304
+ * The message to display
1305
+ * @return void
1306
+ */
1307
+ TablePlugin.debug = function(msg) {
1308
+ Aloha.Log.debug(this, msg);
1309
+ };
1310
+
1311
+ /**
1312
+ * Calls the Aloha.log function with 'info' level
1313
+ *
1314
+ * @see Aloha.log
1315
+ * @param msg
1316
+ * The message to display
1317
+ * @return void
1318
+ */
1319
+ TablePlugin.info = function(msg) {
1320
+ Aloha.Log.info(this, msg);
1321
+ };
1322
+
1323
+ /**
1324
+ * Calls the Aloha.log function with 'info' level
1325
+ *
1326
+ * @see Aloha.log
1327
+ * @param msg
1328
+ * The message to display
1329
+ * @return void
1330
+ */
1331
+ TablePlugin.log = function(msg) {
1332
+ Aloha.log('log', this, msg);
1333
+ };
1334
+
1335
+ /**
1336
+ * The "get"-method returns the value of the given key.
1337
+ * First it searches in the config for the property.
1338
+ * If there is no property with the given name in the
1339
+ * "config"-object it returns the entry associated with
1340
+ * in the parameters-object
1341
+ *
1342
+ * @param property
1343
+ * @return void
1344
+ *
1345
+ */
1346
+ TablePlugin.get = function (property) {
1347
+ if (this.config[property]) {
1348
+ return this.config[property];
1349
+ }
1350
+ if (this.parameters[property]) {
1351
+ return this.parameters[property];
1352
+ }
1353
+ return undefined;
1354
+ };
1355
+
1356
+ /**
1357
+ * The "set"-method takes a key and a value. It checks if there is a
1358
+ * key-value pair in the config-object. If so it saves the data in the
1359
+ * config-object. If not it saves the data in the parameters-object.
1360
+ *
1361
+ * @param key the key which should be set
1362
+ * @param value the value which should be set for the associated key
1363
+ */
1364
+ TablePlugin.set = function (key, value) {
1365
+ if (this.config[key]) {
1366
+ this.config[key] = value;
1367
+ }else{
1368
+ this.parameters[key] = value;
1369
+ }
1370
+ };
1371
+
1372
+ /**
1373
+ * Make the given jQuery object (representing an editable) clean for saving
1374
+ * Find all tables and deactivate them
1375
+ * @param obj jQuery object to make clean
1376
+ * @return void
1377
+ */
1378
+ TablePlugin.makeClean = function ( obj ) {
1379
+ var that = this;
1380
+ obj.find( 'table' ).each( function () {
1381
+ // Make sure that we only deactivate tables in obj which have the
1382
+ // same id as tables which have been activated and registered
1383
+ if ( that.getTableFromRegistry( this ) ) {
1384
+ ( new Table( this, that ) ).deactivate();
1385
+ }
1386
+ } );
1387
+ };
1388
+
1389
+ /**
1390
+ * String representation of the Table-object
1391
+ *
1392
+ * @return The plugins namespace (string)
1393
+ */
1394
+ TablePlugin.toString = function() {
1395
+ return this.prefix;
1396
+ };
1397
+
1398
+ TablePlugin.updateFloatingMenuScope = function () {
1399
+ if ( null != TablePlugin.activeTable && null != TablePlugin.activeTable.selection.selectionType ) {
1400
+ FloatingMenu.setScope(TablePlugin.name + '.' + TablePlugin.activeTable.selection.selectionType);
1401
+ }
1402
+ };
1403
+
1404
+ PluginManager.register(TablePlugin);
1405
+
1406
+ /**
1407
+ * Detects a situation where we are about to insert content into a
1408
+ * selection that looks like this: <p> [</p>...
1409
+ * We will assume that the nbsp inside the <p> node was placed there to
1410
+ * "prop-up" the empty paragraph--that is--to make the empty paragraph
1411
+ * visible in HTML5 conformant rendering engines, like WebKit. Without the
1412
+ * white space, such browsers would correctly render an empty <p> as
1413
+ * invisible.
1414
+ *
1415
+ * If we detect this situation, we remove the white space so that when we
1416
+ * paste new content into the paragraph, it is not be split and leaving an
1417
+ * empty paragraph on top of the pasted content.
1418
+ *
1419
+ * Note that we do not use <br />'s to prop up the paragraphs, as WebKit
1420
+ * does, because IE, will break from the HTML5 specification and will
1421
+ * display empty paragraphs if they are content-editable. So a <br />
1422
+ * inside an empty content-editable paragraph will result in 2 lines to be
1423
+ * shown instead of 1 in IE.
1424
+ *
1425
+ * @param {Object} range
1426
+ * @param {DOMElement} table
1427
+ */
1428
+ function prepareRangeContainersForInsertion ( range, table ) {
1429
+ var eNode = range.endContainer,
1430
+ sNode = range.startContainer,
1431
+ eNodeLength = ( eNode.nodeType == 3 )
1432
+ ? eNode.length
1433
+ : eNode.childNodes.length;
1434
+
1435
+
1436
+ if ( sNode.nodeType == 3 &&
1437
+ sNode.parentNode.tagName == 'P' &&
1438
+ sNode.parentNode.childNodes.length == 1 &&
1439
+ /^(\s|%A0)$/.test( escape( sNode.data ) ) ) {
1440
+ sNode.data = '';
1441
+ range.startOffset = 0;
1442
+
1443
+ // In case ... <p> []</p>
1444
+ if ( eNode == sNode ) {
1445
+ range.endOffset = 0;
1446
+ }
1447
+ }
1448
+
1449
+ // If the table is not allowed to be nested inside the startContainer,
1450
+ // then it will have to be split in order to insert the table.
1451
+ // We will therefore check if the selection touches the start and/or
1452
+ // end of their container nodes.
1453
+ // If they do, we will mark their container so that after they are
1454
+ // split we can check whether or not they should be removed
1455
+ if ( !GENTICS.Utils.Dom.allowsNesting(
1456
+ sNode.nodeType == 3 ? sNode.parentNode : sNode, table ) ) {
1457
+
1458
+ if ( range.startOffset == 0 ) {
1459
+ jQuery( sNode.nodeType == 3 ? sNode.parentNode : sNode )
1460
+ .addClass( 'aloha-table-cleanme' );
1461
+ }
1462
+
1463
+ if ( range.endOffset == eNodeLength ) {
1464
+ jQuery( eNode.nodeType == 3 ? eNode.parentNode : eNode )
1465
+ .addClass( 'aloha-table-cleanme' );
1466
+ }
1467
+ }
1468
+ };
1469
+
1470
+ /**
1471
+ * Looks for elements marked with "aloha-table-cleanme", and removes them
1472
+ * if they are absolutely empty.
1473
+ * Note that this will leave paragraphs which contain empty nested elements
1474
+ * even though they are also invisible.
1475
+ * We can consider removing these as well at a later stage, if needed.
1476
+ */
1477
+ function cleanupAfterInsertion () {
1478
+ var dirty = jQuery( '.aloha-table-cleanme' ).removeClass(
1479
+ 'aloha-table-cleanme' );
1480
+
1481
+ for ( var i = 0; i < dirty.length; i++ ) {
1482
+ if ( jQuery.trim( jQuery( dirty[ i ] ).html() ) == '' &&
1483
+ !GENTICS.Utils.Dom.isEditingHost( dirty[ i ] ) ) {
1484
+ jQuery( dirty[ i ] ).remove();
1485
+
1486
+ /*
1487
+ // For debugging: to see what we are deleting
1488
+ jQuery( dirty[ i ] ).css({
1489
+ border: '3px solid red',
1490
+ display: 'block'
1491
+ });
1492
+ */
1493
+ }
1494
+ }
1495
+ };
1496
+
1497
+ return TablePlugin;
1498
+ });