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,1615 @@
1
+ /*
2
+ * Aloha Image Plugin - Allow image manipulation in Aloha Editor
3
+ *
4
+ * Author & Copyright (c) 2011 Gentics Software GmbH
5
+ * aloha-sales@gentics.com
6
+ * Contributors
7
+ * Johannes Schüth - http://jotschi.de
8
+ * Nicolas karageuzian - http://nka.me/
9
+ * Benjamin Athur Lupton - http://www.balupton.com/
10
+ * Thomas Lete
11
+ * Nils Dehl
12
+ * Christopher Hlubek
13
+ * Edward Tsech
14
+ * Haymo Meran
15
+ *
16
+ * Licensed under the terms of http://www.aloha-editor.com/license.html
17
+ */
18
+
19
+ define([
20
+ // js
21
+ 'aloha/jquery',
22
+ 'aloha/plugin',
23
+ 'aloha/floatingmenu',
24
+ 'i18n!aloha/nls/i18n',
25
+ 'i18n!image/nls/i18n',
26
+ 'jquery-plugin!image/vendor/ui/jquery-ui-1.8.10.custom.min',
27
+ 'jquery-plugin!image/vendor/jcrop/jquery.jcrop.min',
28
+ 'jquery-plugin!image/vendor/mousewheel/mousewheel',
29
+ // css
30
+ 'css!image/css/image.css',
31
+ 'css!image/vendor/ui/ui-lightness/jquery-ui-1.8.10.cropnresize.css',
32
+ 'css!image/vendor/jcrop/jquery.jcrop.css'
33
+ ],
34
+ function AlohaImagePlugin ( aQuery, Plugin, FloatingMenu, i18nCore, i18n ) {
35
+
36
+
37
+
38
+ var jQuery = aQuery;
39
+ var $ = aQuery;
40
+ var GENTICS = window.GENTICS, Aloha = window.Aloha;
41
+
42
+ // Attributes manipulation utilities
43
+ // Aloha team may want to factorize, it could be useful for other plugins
44
+ // Prototypes
45
+ String.prototype.toInteger = String.prototype.toInteger || function() {
46
+ return parseInt(String(this).replace(/px$/,'')||0,10);
47
+ };
48
+ String.prototype.toFloat = String.prototype.toInteger || function() {
49
+ return parseFloat(String(this).replace(/px$/,'')||0,10);
50
+ };
51
+ Number.prototype.toInteger = Number.prototype.toInteger || String.prototype.toInteger;
52
+ Number.prototype.toFloat = Number.prototype.toFloat || String.prototype.toFloat;
53
+
54
+ // Insert jQuery Prototypes
55
+ jQuery.extend(true, jQuery.fn, {
56
+ increase: jQuery.fn.increase || function(attr) {
57
+ var obj = jQuery(this), value, newValue;
58
+ // Check
59
+ if ( !obj.length ) {
60
+ return obj;
61
+ }
62
+ // Calculate
63
+ value = obj.css(attr).toFloat();
64
+ newValue = Math.round((value||1)*1.2);
65
+ // Apply
66
+ if (value == newValue) { // when value is 2, won't increase
67
+ newValue++;
68
+ }
69
+ // Apply
70
+ obj.css(attr,newValue);
71
+ // Chain
72
+ return obj;
73
+ },
74
+ decrease: jQuery.fn.decrease || function(attr) {
75
+ var obj = jQuery(this), value, newValue;
76
+ // Check
77
+ if ( !obj.length ) {
78
+ return obj;
79
+ }
80
+ // Calculate
81
+ value = obj.css(attr).toFloat();
82
+ newValue = Math.round((value||0)*0.8);
83
+ // Apply
84
+ if (value == newValue && newValue >0) { // when value is 2, won't increase
85
+ newValue--;
86
+ }
87
+ obj.css(attr,newValue);
88
+ // Chain
89
+ return obj;
90
+ }
91
+ });
92
+
93
+ // Create and register Image Plugin
94
+ return Plugin.create('image', {
95
+
96
+ languages: ['en', 'fr', 'de', 'ru', 'cz'],
97
+
98
+ defaultSettings: {
99
+ 'maxWidth': 1600,
100
+ 'minWidth': 3,
101
+ 'maxHeight': 1200,
102
+ 'minHeight': 3,
103
+ // This setting will correct manually values that are out of bounds
104
+ 'autoCorrectManualInput': true,
105
+ // This setting will define a fixed aspect ratio for all resize actions
106
+ 'fixedAspectRatio' : false,
107
+ // When enabled this setting will order the plugin to automatically resize images to given bounds
108
+ 'autoResize': false,
109
+ //Image manipulation options - ONLY in default config section
110
+ ui: {
111
+ oneTab : false, //Place all ui components within one tab
112
+ insert : true,
113
+ reset : true,
114
+ aspectRatioToggle: true, // Toggle button for the aspect ratio
115
+ align : true, // Menu elements to show/hide in menu
116
+ resize : true, // Resize buttons
117
+ meta : true,
118
+ margin : true,
119
+ crop : true,
120
+ resizable : true, // Resizable ui-drag image
121
+ handles : 'ne, se, sw, nw'
122
+ },
123
+
124
+ /**
125
+ * Crop callback is triggered after the user clicked accept to accept his crop
126
+ * @param image jquery image object reference
127
+ * @param props cropping properties
128
+ */
129
+ onCropped: function ($image, props) {
130
+ Aloha.Log.info('Default onCropped invoked', $image, props);
131
+ },
132
+
133
+ /**
134
+ * Reset callback is triggered before the internal reset procedure is applied
135
+ * if this function returns true, then the reset has been handled by the callback
136
+ * which means that no other reset will be applied
137
+ * if false is returned the internal reset procedure will be applied
138
+ * @param image jquery image object reference
139
+ * @return true if a reset has been applied, false otherwise
140
+ */
141
+ onReset: function ($image) {
142
+ Aloha.Log.info('Default onReset invoked', $image);
143
+ return false;
144
+ },
145
+
146
+ /**
147
+ * Example callback method which gets called while the resize process is beeing executed.
148
+ */
149
+ onResize: function ($image) {
150
+ Aloha.Log.info('Default onResize invoked', $image);
151
+ },
152
+
153
+ /**
154
+ * Resize callback is triggered after the internal resize procedure is applied.
155
+ */
156
+ onResized: function ($image) {
157
+ Aloha.Log.info('Default onResized invoked', $image);
158
+ }
159
+ },
160
+
161
+ /**
162
+ * Internal callback hook which gets invoked when cropping has been finished
163
+ */
164
+ _onCropped: function ($image, props) {
165
+
166
+ $('#' + this.imgResizeHeightField.id).val($image.height());
167
+ $('#' + this.imgResizeWidthField.id).val($image.width());
168
+
169
+
170
+ $('body').trigger('aloha-image-cropped', [$image, props]);
171
+
172
+ // Call the custom onCropped function
173
+ this.onCropped($image, props);
174
+ },
175
+
176
+ /**
177
+ * Internal callback hook which gets invoked when resetting images
178
+ */
179
+ _onReset: function ($image) {
180
+
181
+ $('#' + this.imgResizeHeightField.id).val($image.height());
182
+ $('#' + this.imgResizeWidthField.id).val($image.width());
183
+
184
+ // No default behaviour defined besides event triggering
185
+ $('body').trigger('aloha-image-reset', $image);
186
+
187
+ // Call the custom resize function
188
+ return this.onReset($image);
189
+ },
190
+
191
+ /**
192
+ * Internal callback hook which gets invoked while the image is beeing resized
193
+ */
194
+ _onResize: function ($image) {
195
+
196
+ $('#' + this.imgResizeHeightField.id).val($image.height());
197
+ $('#' + this.imgResizeWidthField.id).val($image.width());
198
+
199
+ // No default behaviour defined besides event triggering
200
+ $('body').trigger('aloha-image-resize', $image);
201
+
202
+ // Call the custom resize function
203
+ this.onResize($image);
204
+ },
205
+
206
+ /**
207
+ * Internal callback hook which gets invoked when the current resizing action has stopped
208
+ */
209
+ _onResized: function ($image) {
210
+
211
+ $('#' + this.imgResizeHeightField.id).val($image.height());
212
+ $('#' + this.imgResizeWidthField.id).val($image.width());
213
+
214
+ $('body').trigger('aloha-image-resized', $image);
215
+
216
+ // Call the custom resize function
217
+ this.onResized($image);
218
+ },
219
+
220
+ /**
221
+ * The image that is currently edited
222
+ */
223
+ imageObj: null,
224
+
225
+ /**
226
+ * The Jcrop API reference
227
+ * this is needed to be able to destroy the cropping frame later on
228
+ * the variable is linked to the api object whilst cropping, or set to null otherwise
229
+ * strange, but done as documented http://deepliquid.com/content/Jcrop_API.html
230
+ */
231
+ jcAPI: null,
232
+
233
+
234
+ /**
235
+ * State variable for the aspect ratio toggle feature
236
+ */
237
+ keepAspectRatio: false,
238
+
239
+ /**
240
+ * Variable that will hold the start aspect ratio. This ratio will be used once starResize will be called.
241
+ */
242
+ startAspectRatio: false,
243
+
244
+ /**
245
+ * This will contain an image's original properties to be able to undo previous settings
246
+ *
247
+ * when an image is clicked for the first time, a new object will be added to the array
248
+ * {
249
+ * obj : [the image object reference],
250
+ * src : [the original src url],
251
+ * width : [initial width],
252
+ * height : [initial height]
253
+ * }
254
+ *
255
+ * when an image is clicked the second time, the array will be checked for the image object
256
+ * referenct, to prevent for double entries
257
+ */
258
+ restoreProps: [],
259
+
260
+ objectTypeFilter: [],
261
+
262
+ /**
263
+ * Plugin initialization method
264
+ */
265
+ init: function() {
266
+
267
+ var that = this;
268
+
269
+ var imagePluginUrl = Aloha.getPluginUrl('image');
270
+
271
+ // Extend the default settings with the custom ones (done by default)
272
+ this.startAspectRatio = this.settings.fixedAspectRatio;
273
+ this.config = this.defaultSettings;
274
+ this.settings = jQuery.extend(true, this.defaultSettings, this.settings);
275
+
276
+ that.initializeButtons();
277
+ that.bindInteractions();
278
+ that.subscribeEvents();
279
+
280
+ },
281
+
282
+ /**
283
+ * Create buttons
284
+ */
285
+ initializeButtons: function() {
286
+
287
+ var that = this,
288
+ tabInsert = i18nCore.t('floatingmenu.tab.insert'),
289
+ tabImage = i18n.t('floatingmenu.tab.img'),
290
+ tabFormatting = i18n.t('floatingmenu.tab.formatting'),
291
+ tabCrop = i18n.t('floatingmenu.tab.crop'),
292
+ tabResize = i18n.t('floatingmenu.tab.resize');
293
+
294
+ FloatingMenu.createScope(this.name, 'Aloha.empty');
295
+
296
+ if (this.settings.ui.insert) {
297
+ var tabId = this.settings.ui.oneTab ? tabImage : tabInsert;
298
+ that._addUIInsertButton(tabId);
299
+ }
300
+
301
+ if (this.settings.ui.meta) {
302
+ var tabId = this.settings.ui.oneTab ? tabImage : tabImage;
303
+ that._addUIMetaButtons(tabId);
304
+ }
305
+
306
+ if (this.settings.ui.reset) {
307
+ var tabId = this.settings.ui.reset ? tabImage : tabImage;
308
+ that._addUIResetButton(tabId);
309
+ }
310
+
311
+ if (this.settings.ui.align) {
312
+ var tabId = this.settings.ui.oneTab ? tabImage : tabFormatting;
313
+ that._addUIAlignButtons(tabId);
314
+ }
315
+
316
+ if (this.settings.ui.margin) {
317
+ var tabId = this.settings.ui.oneTab ? tabImage : tabFormatting;
318
+ that._addUIMarginButtons(tabId);
319
+ }
320
+
321
+ if (this.settings.ui.crop) {
322
+ var tabId = this.settings.ui.oneTab ? tabImage : tabCrop;
323
+ that._addUICropButtons(tabId);
324
+ }
325
+
326
+ if (this.settings.ui.resize) {
327
+ var tabId = this.settings.ui.oneTab ? tabImage : tabResize;
328
+ that._addUIResizeButtons(tabId);
329
+ }
330
+
331
+ if (this.settings.ui.aspectRatioToggle) {
332
+ var tabId = this.settings.ui.oneTab ? tabImage : tabResize;
333
+ that.__addUIAspectRatioToggleButton(tabId);
334
+ }
335
+
336
+ // TODO fix the function and reenable this button
337
+ //that._addNaturalSizeButton();
338
+ },
339
+
340
+
341
+ /**
342
+ * Adds the aspect ratio toggle button to the floating menu
343
+ */
344
+ __addUIAspectRatioToggleButton: function(tabId) {
345
+ var that = this;
346
+ var toggleButton = new Aloha.ui.Button({
347
+ 'size' : 'small',
348
+ 'tooltip' : i18n.t('button.toggle.tooltip'),
349
+ 'toggle' : true,
350
+ 'iconClass' : 'cnr-ratio',
351
+ 'onclick' : function (btn, event) {
352
+ that.toggleKeepAspectRatio();
353
+ }
354
+ });
355
+
356
+
357
+ // If the setting has been set to a number or false we need to activate the
358
+ // toggle button to indicate that the aspect ratio will be preserved.
359
+ if (this.settings.fixedAspectRatio != false) {
360
+ toggleButton.pressed = true;
361
+ this.keepAspectRatio = true;
362
+ }
363
+
364
+ FloatingMenu.addButton(
365
+ that.name,
366
+ toggleButton,
367
+ tabId,
368
+ 20
369
+ );
370
+
371
+
372
+ },
373
+
374
+
375
+ /**
376
+ * Adds the reset button to the floating menu for the given tab
377
+ */
378
+ _addUIResetButton: function(tabId) {
379
+ var that = this;
380
+ // Reset button
381
+ var resetButton = new Aloha.ui.Button({
382
+ 'size' : 'small',
383
+ 'tooltip' : i18n.t('Reset'),
384
+ 'toggle' : false,
385
+ 'iconClass' : 'cnr-reset',
386
+ 'onclick' : function (btn, event) {
387
+ that.reset();
388
+ }
389
+ });
390
+
391
+ FloatingMenu.addButton(
392
+ that.name,
393
+ resetButton,
394
+ tabId,
395
+ 2
396
+ );
397
+ },
398
+
399
+ /**
400
+ * Adds the insert button to the floating menu
401
+ */
402
+ _addUIInsertButton: function(tabId) {
403
+ var that = this;
404
+ this.insertImgButton = new Aloha.ui.Button({
405
+ 'name' : 'insertimage',
406
+ 'iconClass': 'aloha-button aloha-image-insert',
407
+ 'size' : 'small',
408
+ 'onclick' : function () { that.insertImg(); },
409
+ 'tooltip' : i18n.t('button.addimg.tooltip'),
410
+ 'toggle' : false
411
+ });
412
+
413
+ FloatingMenu.addButton(
414
+ 'Aloha.continuoustext',
415
+ this.insertImgButton,
416
+ tabId,
417
+ 1
418
+ );
419
+ },
420
+
421
+ /**
422
+ * Adds the ui meta fields (search, title) to the floating menu.
423
+ */
424
+ _addUIMetaButtons: function(tabId) {
425
+ var that = this;
426
+ var imgSrcLabel = new Aloha.ui.Button({
427
+ 'label': i18n.t('field.img.src.label'),
428
+ 'tooltip': i18n.t('field.img.src.tooltip'),
429
+ 'size': 'small'
430
+ });
431
+ this.imgSrcField = new Aloha.ui.AttributeField({'name' : 'imgsrc'});
432
+ this.imgSrcField.setObjectTypeFilter( this.objectTypeFilter );
433
+
434
+ // add the title field for images
435
+ var imgTitleLabel = new Aloha.ui.Button({
436
+ 'label': i18n.t('field.img.title.label'),
437
+ 'tooltip': i18n.t('field.img.title.tooltip'),
438
+ 'size': 'small'
439
+ });
440
+
441
+ this.imgTitleField = new Aloha.ui.AttributeField();
442
+ this.imgTitleField.setObjectTypeFilter();
443
+ FloatingMenu.addButton(
444
+ this.name,
445
+ this.imgSrcField,
446
+ tabId,
447
+ 1
448
+ );
449
+
450
+ },
451
+
452
+ /**
453
+ * Adds the ui align buttons to the floating menu
454
+ */
455
+ _addUIAlignButtons: function(tabId) {
456
+ var that = this;
457
+
458
+ var alignLeftButton = new Aloha.ui.Button({
459
+ 'iconClass': 'aloha-img aloha-image-align-left',
460
+ 'size': 'small',
461
+ 'onclick' : function() {
462
+ var el = jQuery(that.findImgMarkup());
463
+ el.add(el.parent()).css('float', 'left');
464
+ },
465
+ 'tooltip': i18n.t('button.img.align.left.tooltip')
466
+ });
467
+
468
+ FloatingMenu.addButton(
469
+ that.name,
470
+ alignLeftButton,
471
+ tabId,
472
+ 1
473
+ );
474
+
475
+ var alignRightButton = new Aloha.ui.Button({
476
+ 'iconClass': 'aloha-img aloha-image-align-right',
477
+ 'size': 'small',
478
+ 'onclick' : function() {
479
+ var el = jQuery(that.findImgMarkup());
480
+ el.add(el.parent()).css('float', 'right');
481
+ },
482
+ 'tooltip': i18n.t('button.img.align.right.tooltip')
483
+ });
484
+
485
+ FloatingMenu.addButton(
486
+ that.name,
487
+ alignRightButton,
488
+ tabId,
489
+ 1
490
+ );
491
+
492
+ var alignNoneButton = new Aloha.ui.Button({
493
+ 'iconClass': 'aloha-img aloha-image-align-none',
494
+ 'size': 'small',
495
+ 'onclick' : function() {
496
+ var el = jQuery(that.findImgMarkup());
497
+ el.add(el.parent()).css({
498
+ 'float': 'none',
499
+ display: 'inline-block'
500
+ });
501
+ },
502
+ 'tooltip': i18n.t('button.img.align.none.tooltip')
503
+ });
504
+
505
+ FloatingMenu.addButton(
506
+ that.name,
507
+ alignNoneButton,
508
+ tabId,
509
+ 1
510
+ );
511
+
512
+ },
513
+
514
+ /**
515
+ * Adds the ui margin buttons to the floating menu
516
+ */
517
+ _addUIMarginButtons: function(tabId) {
518
+ var that = this;
519
+ var incPadding = new Aloha.ui.Button({
520
+ iconClass: 'aloha-img aloha-image-padding-increase',
521
+ toggle: false,
522
+ size: 'small',
523
+ onclick: function() {
524
+ jQuery(that.findImgMarkup()).increase('padding');
525
+ },
526
+ tooltip: i18n.t('padding.increase')
527
+ });
528
+ FloatingMenu.addButton(
529
+ that.name,
530
+ incPadding,
531
+ tabId,
532
+ 2
533
+ );
534
+
535
+ var decPadding = new Aloha.ui.Button({
536
+ iconClass: 'aloha-img aloha-image-padding-decrease',
537
+ toggle: false,
538
+ size: 'small',
539
+ onclick: function() {
540
+ jQuery(that.findImgMarkup()).decrease('padding');
541
+ },
542
+ tooltip: i18n.t('padding.decrease')
543
+ });
544
+ FloatingMenu.addButton(
545
+ that.name,
546
+ decPadding,
547
+ tabId,
548
+ 2
549
+ );
550
+ },
551
+
552
+ /**
553
+ * Adds the crop buttons to the floating menu
554
+ */
555
+ _addUICropButtons: function (tabId) {
556
+ var that = this;
557
+
558
+ FloatingMenu.createScope('Aloha.img', ['Aloha.global']);
559
+
560
+ this.cropButton = new Aloha.ui.Button({
561
+ 'size' : 'small',
562
+ 'tooltip' : i18n.t('Crop'),
563
+ 'toggle' : true,
564
+ 'iconClass' : 'cnr-crop',
565
+ 'onclick' : function (btn, event) {
566
+ if (btn.pressed) {
567
+ that.crop();
568
+ } else {
569
+ that.endCrop();
570
+ }
571
+ }
572
+ });
573
+
574
+ FloatingMenu.addButton(
575
+ this.name,
576
+ this.cropButton,
577
+ tabId,
578
+ 3
579
+ );
580
+
581
+ },
582
+
583
+ /**
584
+ * Adds the resize buttons to the floating menu
585
+ */
586
+ _addUIResizeButtons: function (tabId) {
587
+ var that = this;
588
+
589
+ // Manual resize fields
590
+ this.imgResizeHeightField = new Aloha.ui.AttributeField();
591
+ this.imgResizeHeightField.maxValue = that.settings.maxHeight;
592
+ this.imgResizeHeightField.minValue = that.settings.minHeight;
593
+
594
+ this.imgResizeWidthField = new Aloha.ui.AttributeField();
595
+ this.imgResizeWidthField.maxValue = that.settings.maxWidth;
596
+ this.imgResizeWidthField.minValue = that.settings.minWidth;
597
+
598
+ this.imgResizeWidthField.width = 50;
599
+ this.imgResizeHeightField.width = 50;
600
+
601
+ var widthLabel = new Aloha.ui.Button({
602
+ 'label': i18n.t('width'),
603
+ 'tooltip': i18n.t('width'),
604
+ 'size': 'small'
605
+ });
606
+
607
+ FloatingMenu.addButton(
608
+ this.name,
609
+ widthLabel,
610
+ tabId,
611
+ 30
612
+ );
613
+
614
+ FloatingMenu.addButton(
615
+ this.name,
616
+ this.imgResizeWidthField,
617
+ tabId,
618
+ 40
619
+ );
620
+
621
+
622
+ var heightLabel = new Aloha.ui.Button({
623
+ 'label': i18n.t('height'),
624
+ 'tooltip': i18n.t('height'),
625
+ 'size': 'small'
626
+ });
627
+
628
+ FloatingMenu.addButton(
629
+ this.name,
630
+ heightLabel,
631
+ tabId,
632
+ 50
633
+ );
634
+
635
+ FloatingMenu.addButton(
636
+ this.name,
637
+ this.imgResizeHeightField,
638
+ tabId,
639
+ 60
640
+ );
641
+
642
+
643
+ },
644
+
645
+ /**
646
+ * Adds the natural size button to the floating menu
647
+ */
648
+ _addNaturalSizeButton: function () {
649
+ var that = this;
650
+ var naturalSize = new Aloha.ui.Button({
651
+ iconClass: 'aloha-img aloha-image-size-natural',
652
+ size: 'small',
653
+ toggle: false,
654
+ onclick: function() {
655
+ var img = new Image();
656
+ img.onload = function() {
657
+ var myimage = that.findImgMarkup();
658
+ if (that.settings.ui.resizable) {
659
+ that.endResize();
660
+ }
661
+ jQuery(myimage).css({
662
+ 'width': img.width + 'px',
663
+ 'height': img.height + 'px',
664
+ 'max-width': '',
665
+ 'max-height': ''
666
+ });
667
+ if (that.settings.ui.resizable) {
668
+ that.resize();
669
+ }
670
+ };
671
+ img.src = that.findImgMarkup().src;
672
+
673
+ },
674
+ tooltip: i18n.t('size.natural')
675
+ });
676
+ FloatingMenu.addButton(
677
+ this.name,
678
+ naturalSize,
679
+ tabResize,
680
+ 2
681
+ );
682
+ },
683
+
684
+ /**
685
+ * Bind plugin interactions
686
+ */
687
+ bindInteractions: function () {
688
+ var that = this;
689
+
690
+ if (this.settings.ui.resizable) {
691
+ try {
692
+ // this will disable mozillas image resizing facilities
693
+ document.execCommand( 'enableObjectResizing', false, false );
694
+ } catch (e) {
695
+ Aloha.Log.error( e, 'Could not disable enableObjectResizing' );
696
+ // this is just for internet explorer, who will not support disabling enableObjectResizing
697
+ }
698
+ }
699
+
700
+ if (this.settings.ui.meta) {
701
+ // update image object when src changes
702
+ this.imgSrcField.addListener('keyup', function(obj, event) {
703
+ that.srcChange();
704
+ });
705
+
706
+ this.imgSrcField.addListener('blur', function(obj, event) {
707
+ // TODO remove image or do something usefull if the user leaves the
708
+ // image without defining a valid image src.
709
+ var img = jQuery(obj.getTargetObject());
710
+ if ( img.attr('src') === '' ) {
711
+ img.remove();
712
+ } // image removal when src field is blank
713
+ });
714
+ }
715
+
716
+ // Override the default method by using the given one
717
+ if (this.settings.onCropped && typeof this.settings.onCropped === "function") {
718
+ this.onCropped = this.settings.onCropped;
719
+ }
720
+
721
+ // Override the default method by using the given one
722
+ if (this.settings.onReset && typeof this.settings.onReset === "function") {
723
+ this.onReset = this.settings.onReset;
724
+ }
725
+
726
+ // Override the default method by using the given one
727
+ if (this.settings.onResized && typeof this.settings.onResized === "function") {
728
+ this.onResized = this.settings.onResized;
729
+ }
730
+
731
+ // Override the default method by using the given one
732
+ if (this.settings.onResize && typeof this.settings.onResize === "function") {
733
+ this.onResize = this.settings.onResize;
734
+ }
735
+
736
+ },
737
+
738
+ /**
739
+ * Subscribe to Aloha events and DragAndDropPlugin Event
740
+ */
741
+ subscribeEvents: function() {
742
+ var that = this;
743
+ var config = this.settings;
744
+
745
+ jQuery('img').filter(config.globalselector).unbind();
746
+ jQuery('img').filter(config.globalselector).click(function(event) {
747
+ that.clickImage(event);
748
+ });
749
+
750
+ Aloha.bind('aloha-drop-files-in-editable', function(event, data) {
751
+ var img, len = data.filesObjs.length, fileObj, config;
752
+
753
+ while (--len >= 0) {
754
+ fileObj = data.filesObjs[len];
755
+ if (fileObj.file.type.match(/image\//)) {
756
+ config = that.getEditableConfig(data.editable);
757
+ // Prepare
758
+ img = jQuery('<img/>');
759
+ img.css({
760
+ "max-width": that.maxWidth,
761
+ "max-height": that.maxHeight
762
+ });
763
+ img.attr('id',fileObj.id);
764
+ if (typeof fileObj.src === 'undefined') {
765
+ img.attr('src', fileObj.data );
766
+ //fileObj.src = fileObj.data ;
767
+ } else {
768
+ img.attr('src',fileObj.src );
769
+ }
770
+ GENTICS.Utils.Dom.insertIntoDOM(img, data.range, jQuery(Aloha.activeEditable.obj));
771
+ }
772
+ }
773
+
774
+ });
775
+
776
+ /*
777
+ * Add the event handler for selection change
778
+ */
779
+ Aloha.bind('aloha-selection-changed', function(event, rangeObject, originalEvent) {
780
+ var config, foundMarkup;
781
+ if (originalEvent && originalEvent.target) {
782
+ // Check if the element is currently beeing resized
783
+ if (that.settings.ui.resizable && !jQuery(originalEvent.target).hasClass('ui-resizable-handle')) {
784
+ that.endResize();
785
+ }
786
+ }
787
+
788
+ if (Aloha.activeEditable !== null) {
789
+ foundMarkup = that.findImgMarkup( rangeObject );
790
+ //var config = that.getEditableConfig(Aloha.activeEditable.obj);
791
+ config = that.getEditableConfig(Aloha.activeEditable.obj);
792
+
793
+ if (typeof config !== 'undefined' ) {
794
+ that.insertImgButton.show();
795
+ } else {
796
+ that.insertImgButton.hide();
797
+ return;
798
+ }
799
+
800
+ // Enable image specific ui components if the element is an image
801
+ if (foundMarkup) {
802
+ that.insertImgButton.hide();
803
+ FloatingMenu.setScope(that.name);
804
+ if (that.settings.ui.meta) {
805
+ that.imgSrcField.setTargetObject(foundMarkup, 'src');
806
+ that.imgTitleField.setTargetObject(foundMarkup, 'title');
807
+ }
808
+ that.imgSrcField.focus();
809
+ FloatingMenu.activateTabOfButton('imgsrc');
810
+ } else {
811
+ if (that.settings.ui.meta) {
812
+ that.imgSrcField.setTargetObject(null);
813
+ }
814
+ }
815
+ // TODO this should not be necessary here!
816
+ FloatingMenu.doLayout();
817
+ }
818
+
819
+ });
820
+
821
+ Aloha.bind('aloha-editable-created', function( event, editable) {
822
+
823
+ try {
824
+ // this will disable mozillas image resizing facilities
825
+ document.execCommand( 'enableObjectResizing', false, false);
826
+ } catch (e) {
827
+ Aloha.Log.error( e, 'Could not disable enableObjectResizing');
828
+ // this is just for others, who will not support disabling enableObjectResizing
829
+ }
830
+
831
+ // Inital click on images will be handled here
832
+ // editable.obj.find('img').attr('_moz_resizing', false);
833
+ // editable.obj.find('img').contentEditable(false);
834
+ editable.obj.delegate( 'img', 'mouseup', function (event) {
835
+ that.clickImage(event);
836
+ event.stopPropagation();
837
+ });
838
+ });
839
+
840
+ that._subscribeToResizeFieldEvents();
841
+
842
+ },
843
+
844
+ /**
845
+ * Automatically resize the image to fit into defined bounds.
846
+ */
847
+ autoResize: function() {
848
+ var that = this;
849
+
850
+ var width = that.imageObj.width();
851
+ var height = that.imageObj.height();
852
+
853
+ // Only normalize the field values when the image exeeds the definded bounds
854
+ if (width < that.settings.minWidth || width > that.settings.maxWidth || height < that.settings.minHeight || height > that.settings.maxHeight) {
855
+ that._setNormalizedFieldValues('width');
856
+ that.setSizeByFieldValue();
857
+ return true;
858
+ } else {
859
+ return false;
860
+ }
861
+ },
862
+
863
+ /**
864
+ * Toggle the keep aspect ratio functionallity
865
+ */
866
+ toggleKeepAspectRatio: function() {
867
+
868
+ this.keepAspectRatio = !this.keepAspectRatio;
869
+
870
+ this.endResize();
871
+ if (!this.keepAspectRatio) {
872
+ this.startAspectRatio = false;
873
+ } else {
874
+ // If no fixed aspect ratio was given we will calculate a new start
875
+ // aspect ratio that will be used for the next starResize action.
876
+ if ( typeof this.settings.fixedAspectRatio !== 'number' ) {
877
+ var currentRatio = this.imageObj.width() / this.imageObj.height();
878
+ this.startAspectRatio = currentRatio;
879
+ } else {
880
+ this.startAspectRatio = this.settings.fixedAspectRatio;
881
+ }
882
+ }
883
+ this.startResize();
884
+ },
885
+
886
+ /**
887
+ * Bind interaction events that are invoked on the resize fields
888
+ */
889
+ _subscribeToResizeFieldEvents: function() {
890
+ var that = this;
891
+
892
+ /**
893
+ * Helper function that will update the fields
894
+ */
895
+ function updateField( $field, delta, maxValue, minValue ) {
896
+
897
+ if ( typeof minValue === 'undefined' ) {
898
+ minValue = 0;
899
+ }
900
+
901
+ if ( typeof maxValue === 'undefined' ) {
902
+ maxValue = 8000;
903
+ }
904
+
905
+ // If the current value of the field can't be parsed we don't update it
906
+ var oldValue = parseInt( $field.val() );
907
+ if ( isNaN(oldValue) ) {
908
+ $field.css( 'background-color', 'red' );
909
+ return false;
910
+ }
911
+
912
+ var newValue = oldValue + delta;
913
+ // Exit if the newValue is above the maxValue limit (only if the user tries to increment)
914
+ if (delta>=0 && newValue > maxValue) {
915
+
916
+ // Auto correct out of bounds values
917
+ if (that.settings.autoCorrectManualInput) {
918
+ $field.val(maxValue);
919
+ return true;
920
+ } else {
921
+ $field.css('background-color','red');
922
+ return false;
923
+ }
924
+ // Exit if the newValue is below the minValue (only if the user tries to decrement)
925
+ } else if (delta<=0 && newValue<minValue) {
926
+
927
+ // Auto correct out of bounds values
928
+ if (that.settings.autoCorrectManualInput) {
929
+ $field.val(minValue);
930
+ return true;
931
+ } else {
932
+ $field.css('background-color','red');
933
+ return false;
934
+ }
935
+ } else {
936
+ $field.css('background-color','');
937
+ }
938
+ $field.val(oldValue + delta);
939
+ return true;
940
+ };
941
+
942
+ /**
943
+ * Handle the keyup event on the field
944
+ */
945
+ function handleKeyUpEventOnField(e) {
946
+
947
+ // Load the max/min from the data properties of this event
948
+ var minValue = e.data.minValue;
949
+ var maxValue = e.data.maxValue;
950
+ var fieldName = e.data.fieldName;
951
+
952
+ // Allow backspace and delete
953
+ if (e.keyCode == 8 || e.keyCode == 46) {
954
+ if($(this).val() >= minValue) {
955
+
956
+ // Check if we are currently in cropping mode
957
+ if(typeof that.jcAPI !== 'undefined' && that.jcAPI != null) {
958
+ that.setCropAreaByFieldValue();
959
+ } else {
960
+ // 1. Normalize the size
961
+ that._setNormalizedFieldValues(fieldName);
962
+ // 2. Set the final size to the image
963
+ that.setSizeByFieldValue();
964
+ }
965
+ }
966
+ // 0-9 keys
967
+ } else if (e.keyCode <= 57 && e.keyCode >= 48 || e.keyCode <= 105 && e.keyCode >= 96 ) {
968
+ if($(this).val() >= minValue) {
969
+
970
+ // Check if we are currently in cropping mode
971
+ if(typeof that.jcAPI !== 'undefined' && that.jcAPI != null) {
972
+ that.setCropAreaByFieldValue();
973
+ } else {
974
+ // 1. Normalize the size
975
+ that._setNormalizedFieldValues(fieldName);
976
+ // 2. Set the final size to the image
977
+ that.setSizeByFieldValue();
978
+ }
979
+ }
980
+ } else {
981
+ var delta = 0;
982
+ if (e.keyCode == 38 || e.keyCode == 107) {
983
+ delta = +1;
984
+ } else if (e.keyCode == 40 || e.keyCode == 109) {
985
+ delta = -1;
986
+ }
987
+ // Handle key combinations
988
+ if ( e.shiftKey || e.metaKey || e.ctrlKey ) {
989
+ delta = delta * 10;
990
+ }
991
+
992
+ // Only resize when field values are ok
993
+ if(updateField($(this), delta, maxValue, minValue)) {
994
+ // Check if we are currently in cropping mode
995
+ if(typeof that.jcAPI !== 'undefined' && that.jcAPI != null) {
996
+ that.setCropAreaByFieldValue();
997
+ } else {
998
+ // 1. Normalize the size
999
+ that._setNormalizedFieldValues(fieldName);
1000
+ // 2. Set the final size to the image
1001
+ that.setSizeByFieldValue();
1002
+ }
1003
+ }
1004
+ }
1005
+
1006
+ e.preventDefault();
1007
+ return false;
1008
+ };
1009
+
1010
+ /**
1011
+ * Handle the mouse wheel event on the field
1012
+ */
1013
+ function handleMouseWheelEventOnField(e, delta) {
1014
+ var minValue = e.data.minValue;
1015
+ var maxValue = e.data.maxValue;
1016
+ var fieldName = e.data.fieldName;
1017
+
1018
+ // Handle key combinations
1019
+ if ( e.shiftKey || e.metaKey || e.ctrlKey ) {
1020
+ delta = delta * 10;
1021
+ }
1022
+
1023
+ // Only resize when field values are ok
1024
+ if(updateField($(this), delta, maxValue, minValue)) {
1025
+
1026
+ // Check if we are currently in cropping mode
1027
+ if(typeof that.jcAPI !== 'undefined' && that.jcAPI != null) {
1028
+ that.setCropAreaByFieldValue();
1029
+ } else {
1030
+ // 1. Normalize the size
1031
+ that._setNormalizedFieldValues(fieldName);
1032
+ // 2. Set the final size to the image
1033
+ that.setSizeByFieldValue();
1034
+ }
1035
+ }
1036
+ return false;
1037
+ };
1038
+
1039
+ /**
1040
+ * Handle mousewheel,keyup actions on both fields
1041
+ */
1042
+ var $heightField = $('#' + that.imgResizeHeightField.id );
1043
+ var heightEventData = {fieldName: 'height', maxValue: that.imgResizeHeightField.maxValue, minValue: that.imgResizeHeightField.minValue };
1044
+ $heightField.live('keyup', heightEventData, handleKeyUpEventOnField);
1045
+ $heightField.live('mousewheel', heightEventData, handleMouseWheelEventOnField);
1046
+
1047
+ var $widthField = $('#' + that.imgResizeWidthField.id );
1048
+ var widthEventData = {fieldName: 'width', maxValue: that.imgResizeWidthField.maxValue , minValue: that.imgResizeWidthField.minValue };
1049
+ $widthField.live('keyup',widthEventData , handleKeyUpEventOnField);
1050
+ $widthField.live('mousewheel', widthEventData, handleMouseWheelEventOnField);
1051
+
1052
+ },
1053
+
1054
+
1055
+ /**
1056
+ * This helper function will keep the aspect ratio for the field with the given name.
1057
+ */
1058
+ _setNormalizedFieldValues: function(primaryFieldName) {
1059
+
1060
+ var that = this;
1061
+ var widthField = jQuery("#" + that.imgResizeWidthField.id);
1062
+ var heightField = jQuery("#" + that.imgResizeHeightField.id);
1063
+ var width = widthField.val();
1064
+ var height = heightField.val();
1065
+
1066
+ var size = that._normalizeSize(width, height, primaryFieldName);
1067
+
1068
+ widthField.val(size.width);
1069
+ heightField.val(size.height);
1070
+
1071
+ },
1072
+
1073
+ /**
1074
+ * Manually set the given size for the current image
1075
+ */
1076
+ setSize: function(width, height) {
1077
+
1078
+ var that = this;
1079
+ this.imageObj.width(width);
1080
+ this.imageObj.height(height);
1081
+ var $wrapper = this.imageObj.closest('.Aloha_Image_Resize');
1082
+ $wrapper.height(height);
1083
+ $wrapper.width(width);
1084
+
1085
+ this._onResize(this.imageObj);
1086
+ this._onResized(this.imageObj);
1087
+ },
1088
+
1089
+ /**
1090
+ * This method will handle the mouseUp event on images (eg. within editables).
1091
+ * It will if enabled activate the resizing action.
1092
+ */
1093
+ clickImage: function( e ) {
1094
+
1095
+ var that = this;
1096
+ that.imageObj = jQuery(e.target);
1097
+ var currentImage = that.imageObj;
1098
+
1099
+ FloatingMenu.setScope(that.name);
1100
+
1101
+ var editable = currentImage.closest('.aloha-editable');
1102
+
1103
+ // Disabling the content editable. This will disable the resizeHandles in internet explorer
1104
+ jQuery(editable).contentEditable(false);
1105
+
1106
+ //Store the current props of the image
1107
+ this.restoreProps.push({
1108
+ obj : e.srcElement,
1109
+ src : that.imageObj.attr('src'),
1110
+ width : that.imageObj.width(),
1111
+ height : that.imageObj.height()
1112
+ });
1113
+
1114
+ // Update the resize input fields with the new width and height
1115
+ $('#' + that.imgResizeHeightField.id).val(that.imageObj.height());
1116
+ $('#' + that.imgResizeWidthField.id).val(that.imageObj.width());
1117
+
1118
+
1119
+ if (this.settings.ui.resizable) {
1120
+ this.startResize();
1121
+ }
1122
+
1123
+
1124
+ if (this.settings.autoResize) {
1125
+ this.autoResize();
1126
+ }
1127
+
1128
+ },
1129
+
1130
+ /**
1131
+ * This method extracts determins if the range selection contains an image
1132
+ */
1133
+ findImgMarkup: function ( range ) {
1134
+
1135
+ var that = this;
1136
+ var config = this.config;
1137
+ var result, targetObj;
1138
+
1139
+ if ( typeof range === 'undefined' ) {
1140
+ range = Aloha.Selection.getRangeObject();
1141
+ }
1142
+
1143
+ targetObj = jQuery(range.startContainer);
1144
+
1145
+ try {
1146
+ if ( Aloha.activeEditable ) {
1147
+ if (( typeof range.startContainer !== 'undefined'
1148
+ && typeof range.startContainer.childNodes !== 'undefined'
1149
+ && typeof range.startOffset !== 'undefined'
1150
+ && typeof range.startContainer.childNodes[range.startOffset] !== 'undefined'
1151
+ && range.startContainer.childNodes[range.startOffset].nodeName.toLowerCase() === 'img'
1152
+ && range.startOffset+1 === range.endOffset) ||
1153
+ (targetObj.hasClass('Aloha_Image_Resize')))
1154
+ {
1155
+ result = targetObj.find('img')[0];
1156
+ if (! result.css) {
1157
+ result.css = '';
1158
+ }
1159
+
1160
+ if (! result.title) {
1161
+ result.title = '';
1162
+ }
1163
+
1164
+ if (! result.src) {
1165
+ result.src = '';
1166
+ }
1167
+ return result;
1168
+ }
1169
+ else {
1170
+ return null;
1171
+ }
1172
+ }
1173
+ } catch (e) {
1174
+ Aloha.Log.debug(e, "Error finding img markup.");
1175
+ }
1176
+ return null;
1177
+
1178
+ },
1179
+
1180
+
1181
+ /**
1182
+ * This helper function will calculate the new width and height while keeping
1183
+ * the aspect ratio when the keepAspectRatio flat is set to true. The primarySize
1184
+ * can be 'width' or 'height'. The function will first try to normalize the oposite size.
1185
+ */
1186
+ _normalizeSize: function(width, height, primarySize) {
1187
+
1188
+ var that = this;
1189
+ // Convert string values to numbers
1190
+ width = parseInt(width);
1191
+ height = parseInt(height);
1192
+
1193
+ /**
1194
+ * Inner function that calculates the new height by examining the width
1195
+ */
1196
+ function handleHeight(callHandleWidth) {
1197
+
1198
+ // Check whether the value is within bounds
1199
+ if (height > that.settings.maxHeight) {
1200
+
1201
+ // Throw a notification event
1202
+ var eventProps = { 'org': height, 'new': that.settings.maxHeight};
1203
+ $('body').trigger('aloha-image-resize-outofbounds', ["height", "max", eventProps]);
1204
+ height = that.settings.maxHeight;
1205
+
1206
+ } else if (height < that.settings.minHeight) {
1207
+
1208
+ // Throw a notification event
1209
+ var eventProps = { 'org': height, 'new': that.settings.minHeight};
1210
+ $('body').trigger('aloha-image-resize-outofbounds', ["height", "min", eventProps]);
1211
+ height = that.settings.minHeight;
1212
+ }
1213
+
1214
+ if (that.keepAspectRatio) {
1215
+ width = height * aspectRatio;
1216
+
1217
+ // We don't want to invoke handleWidth again. This would mess up our previously calculated width
1218
+ if (callHandleWidth) {
1219
+ handleWidth(false);
1220
+ }
1221
+ }
1222
+
1223
+
1224
+ }
1225
+
1226
+ /**
1227
+ * Inner function that calculates the new width by examining the width
1228
+ */
1229
+ function handleWidth(callHandleHeight) {
1230
+
1231
+ // Check whether the value is within bounds
1232
+ if (width > that.settings.maxWidth) {
1233
+
1234
+ // Throw a notification event
1235
+ var eventProps = { 'org': width, 'new': that.settings.maxWidth};
1236
+ $('body').trigger('aloha-image-resize-outofbounds', ["width", "max", eventProps]);
1237
+
1238
+ width = that.settings.maxWidth;
1239
+ } else if (width < that.settings.minWidth) {
1240
+
1241
+ // Throw a notification event
1242
+ var eventProps = { 'org': width, 'new': that.settings.minWidth};
1243
+ $('body').trigger('aloha-image-resize-outofbounds', ["width", "min", eventProps]);
1244
+
1245
+ width = that.settings.minWidth;
1246
+ }
1247
+
1248
+ // Calculate the new height
1249
+ if (that.keepAspectRatio) {
1250
+ height = width / aspectRatio;
1251
+
1252
+ // We don't want to invoke handleHeight again. This would mess up our previously calculated height
1253
+ if (callHandleHeight) {
1254
+ handleHeight(false);
1255
+ }
1256
+
1257
+ }
1258
+
1259
+ }
1260
+
1261
+ // Load the aspect ratio and use the 4:3 ratio as default value.
1262
+ var aspectRatio = 1.33333;
1263
+ if (typeof that.startAspectRatio === 'number') {
1264
+ aspectRatio = that.startAspectRatio;
1265
+ }
1266
+
1267
+ // Determin which size should be handled
1268
+ if (primarySize == 'width') {
1269
+ handleWidth(true);
1270
+ }
1271
+
1272
+ if (primarySize == 'height') {
1273
+ handleHeight(true);
1274
+ }
1275
+
1276
+ // Floor the values return them
1277
+ return {'width': Math.floor(width), 'height': Math.floor(height)};
1278
+ },
1279
+
1280
+
1281
+ /**
1282
+ * Helper function that will set the new image size using the field values
1283
+ */
1284
+ setSizeByFieldValue: function() {
1285
+ var that = this;
1286
+ var width = $('#' + that.imgResizeWidthField.id ).val();
1287
+ var height = $('#' + that.imgResizeHeightField.id ).val();
1288
+ that.setSize(width, height);
1289
+ },
1290
+
1291
+ /**
1292
+ * Helper function that will set the new crop area width and height using the field values
1293
+ */
1294
+ setCropAreaByFieldValue: function() {
1295
+ var that = this;
1296
+ var currentCropArea = that.jcAPI.tellSelect();
1297
+
1298
+ var width = $('#' + that.imgResizeWidthField.id ).val();
1299
+ width = parseInt(width);
1300
+ var height = $('#' + that.imgResizeHeightField.id ).val();
1301
+ height = parseInt(height);
1302
+
1303
+ var selection = [currentCropArea['x'], currentCropArea['y'], currentCropArea['x'] + width,currentCropArea['y'] + height];
1304
+ that.jcAPI.setSelect(selection);
1305
+ },
1306
+
1307
+ /**
1308
+ * This method will insert a new image dom element into the dom tree
1309
+ */
1310
+ insertImg: function() {
1311
+ var range = Aloha.Selection.getRangeObject(),
1312
+ config = this.getEditableConfig(Aloha.activeEditable.obj),
1313
+ imagePluginUrl = Aloha.getPluginUrl('image'),
1314
+ imagestyle, imagetag, newImg;
1315
+
1316
+ if ( range.isCollapsed() ) {
1317
+ // TODO I would suggest to call the srcChange method. So all image src
1318
+ // changes are on one single point.
1319
+ imagestyle = "max-width: " + config.maxWidth + "; max-height: " + config.maxHeight;
1320
+ imagetag = '<img style="'+ imagestyle + '" src="' + imagePluginUrl + '/img/blank.jpg" title="" />';
1321
+ newImg = jQuery(imagetag);
1322
+ // add the click selection handler
1323
+ //newImg.click( Aloha.Image.clickImage ); - Using delegate now
1324
+ GENTICS.Utils.Dom.insertIntoDOM(newImg, range, jQuery(Aloha.activeEditable.obj));
1325
+
1326
+ } else {
1327
+ Aloha.Log.error('img cannot markup a selection');
1328
+ // TODO the desired behavior could be me the selected content is
1329
+ // replaced by an image.
1330
+ // TODO it should be editor's choice, with an NON-Ext Dialog instead of alert
1331
+
1332
+ }
1333
+ },
1334
+
1335
+ srcChange: function () {
1336
+ // TODO the src changed. I suggest :
1337
+ // 1. set an loading image (I suggest set src base64 enc) to show the user
1338
+ // we are trying to load an image
1339
+ // 2. start a request to get the image
1340
+ // 3a. the image is ok change the src
1341
+ // 3b. the image is not availbable show an error.
1342
+ this.imageObj.attr('src', this.imgSrcField.getQueryValue() ); // (the img tag)
1343
+ // jQuery(img).attr('src', this.imgSrcField.getQueryValue() ); // (the query value in the inputfield)
1344
+ // this.imgSrcField.getItem(); // (optinal a selected resource item)
1345
+ // TODO additionally implement an srcChange Handler to let implementer
1346
+ // customize
1347
+ },
1348
+
1349
+ /**
1350
+ * Code imported from CropnResize Plugin
1351
+ *
1352
+ */
1353
+ initCropButtons: function() {
1354
+ var that = this,
1355
+ btns,
1356
+ oldLeft = 0,
1357
+ oldTop = 0;
1358
+
1359
+ jQuery('body').append(
1360
+ '<div id="aloha-CropNResize-btns">\
1361
+ <button class="cnr-crop-apply" title="' + i18n.t('Accept') + '">&#10004;</button>\
1362
+ <button class="cnr-crop-cancel" title="' + i18n.t('Cancel') + '">&#10006;</button>\
1363
+ </div>'
1364
+ );
1365
+
1366
+ btns = jQuery('#aloha-CropNResize-btns')
1367
+
1368
+ btns.find('.cnr-crop-apply').click(function () {
1369
+ that.acceptCrop();
1370
+ });
1371
+
1372
+ btns.find('.cnr-crop-cancel').click(function () {
1373
+ that.endCrop();
1374
+ });
1375
+
1376
+ this.interval = setInterval(function () {
1377
+ var jt = jQuery('.jcrop-tracker:first'),
1378
+ off = jt.offset(),
1379
+ jtt = off.top,
1380
+ jtl = off.left,
1381
+ jth = jt.height(),
1382
+ jtw = jt.width();
1383
+
1384
+ if (jth && jtw) {
1385
+ btns.fadeIn('slow');
1386
+ }
1387
+
1388
+ // move the icons to the bottom right side
1389
+ jtt = parseInt(jtt + jth + 3, 10);
1390
+ jtl = parseInt(jtl + jtw - 55, 10);
1391
+
1392
+ // comparison to old values hinders flickering bug in FF
1393
+ if (oldLeft != jtl || oldTop != jtt) {
1394
+ btns.offset({top: jtt, left: jtl});
1395
+ }
1396
+
1397
+ oldLeft = jtl;
1398
+ oldTop = jtt;
1399
+ }, 10);
1400
+ },
1401
+
1402
+ /**
1403
+ * Destroy crop confirm and cancel buttons
1404
+ */
1405
+ destroyCropButtons: function () {
1406
+ jQuery('#aloha-CropNResize-btns').remove();
1407
+ clearInterval(this.interval);
1408
+ },
1409
+
1410
+ /**
1411
+ * Helper function that will disable selectability of elements
1412
+ */
1413
+ _disableSelection: function (el) {
1414
+ el.find('*').attr('unselectable', 'on')
1415
+ .css({
1416
+ '-moz-user-select':'none',
1417
+ '-webkit-user-select':'none',
1418
+ 'user-select':'none'
1419
+ });
1420
+ /*
1421
+ .each(function() {
1422
+ this.onselectstart = function () { return false; };
1423
+ });
1424
+ */
1425
+
1426
+ },
1427
+
1428
+ /**
1429
+ * Initiate a crop action
1430
+ */
1431
+ crop: function () {
1432
+ var that = this;
1433
+ var config = this.config;
1434
+
1435
+ this.initCropButtons();
1436
+ if (this.settings.ui.resizable) {
1437
+ this.endResize();
1438
+ }
1439
+
1440
+ this.jcAPI = jQuery.Jcrop(this.imageObj, {
1441
+ onSelect : function () {
1442
+ that._onCropSelect();
1443
+ // ugly hack to keep scope :(
1444
+ setTimeout(function () {
1445
+ FloatingMenu.setScope(that.name);
1446
+ }, 10);
1447
+ }
1448
+ });
1449
+
1450
+ that._disableSelection($('.jcrop-holder'));
1451
+ that._disableSelection($('#imageContainer'));
1452
+ that._disableSelection($('#aloha-CropNResize-btns'));
1453
+ $('body').trigger('aloha-image-crop-start', [this.imageObj]);
1454
+ },
1455
+
1456
+ /**
1457
+ * Internal on crop select method
1458
+ */
1459
+ _onCropSelect: function() {
1460
+ var that = this;
1461
+
1462
+ // Update the width and height field using the intiial active crop area values
1463
+ if(typeof that.jcAPI !== 'undefined' && that.jcAPI != null) {
1464
+ var currentCropArea = that.jcAPI.tellSelect();
1465
+ var widthField = jQuery("#" + that.imgResizeWidthField.id).val(currentCropArea['w']);
1466
+ var heightField = jQuery("#" + that.imgResizeHeightField.id).val(currentCropArea['h']);
1467
+ }
1468
+
1469
+ },
1470
+
1471
+
1472
+ /**
1473
+ * Terminates a crop
1474
+ */
1475
+ endCrop: function () {
1476
+ if ( this.jcAPI ) {
1477
+ this.jcAPI.destroy();
1478
+ this.jcAPI = null;
1479
+ }
1480
+
1481
+ this.destroyCropButtons();
1482
+ this.cropButton.extButton.toggle(false);
1483
+
1484
+ if ( this.settings.ui.resizable ) {
1485
+ this.startResize();
1486
+ }
1487
+
1488
+ if ( this.keepAspectRatio ) {
1489
+ var currentRatio = this.imageObj.width() / this.imageObj.height();
1490
+ this.startAspectRatio = currentRatio;
1491
+ }
1492
+
1493
+ $('body').trigger('aloha-image-crop-stop', [this.imageObj]);
1494
+ },
1495
+
1496
+ /**
1497
+ * Accept the current cropping area and apply the crop
1498
+ */
1499
+ acceptCrop: function () {
1500
+ this._onCropped ( this.imageObj, this.jcAPI.tellSelect() );
1501
+ this.endCrop ();
1502
+ },
1503
+
1504
+ /**
1505
+ * This method will activate the jquery-ui resize functionality for the current image
1506
+ */
1507
+ startResize: function () {
1508
+ var that = this;
1509
+ var currentImageObj = this.imageObj;
1510
+
1511
+ currentImageObj = this.imageObj.css({
1512
+ height : this.imageObj.height(),
1513
+ width : this.imageObj.width(),
1514
+ position : 'relative',
1515
+ 'max-height': '',
1516
+ 'max-width' : ''
1517
+ });
1518
+
1519
+ currentImageObj.resizable({
1520
+
1521
+ maxHeight : that.settings.maxHeight,
1522
+ minHeight : that.settings.minHeight,
1523
+ maxWidth : that.settings.maxWidth,
1524
+ minWidth : that.settings.minWidth,
1525
+ aspectRatio : that.startAspectRatio,
1526
+ handles: that.settings.handles,
1527
+ grid : that.settings.grid,
1528
+ resize: function(event, ui) {
1529
+ that._onResize(that.imageObj);
1530
+ },
1531
+ stop : function (event, ui) {
1532
+ that._onResized(that.imageObj);
1533
+
1534
+ // Workaround to finish cropping
1535
+ if (this.enableCrop) {
1536
+ setTimeout(function () {
1537
+ FloatingMenu.setScope(that.name);
1538
+ that.done(event);
1539
+ }, 10);
1540
+ }
1541
+ }
1542
+
1543
+ });
1544
+
1545
+ currentImageObj.css('display', 'inline-block');
1546
+
1547
+ // this will prevent the user from resizing an image
1548
+ // using IE's resize handles
1549
+ // however I could not manage to hide them completely
1550
+ jQuery('.ui-wrapper')
1551
+ .attr('contentEditable', false)
1552
+ .addClass('aloha-image-box-active Aloha_Image_Resize aloha')
1553
+ .css({
1554
+ position: 'relative',
1555
+ display: 'inline-block',
1556
+ 'float': that.imageObj.css('float')
1557
+ })
1558
+ .bind('resizestart', function (e) {
1559
+ e.preventDefault();
1560
+ })
1561
+ .bind('mouseup', function (e) {
1562
+ e.originalEvent.stopSelectionUpdate = true;
1563
+ });
1564
+ },
1565
+
1566
+ /**
1567
+ * This method will end resizing and toggle buttons accordingly and remove all markup that has been added for cropping
1568
+ */
1569
+ endResize: function () {
1570
+ // Find the nearest contenteditable and reenable it since resizing is finished
1571
+ if (this.imageObj) {
1572
+ var editable = this.imageObj.closest('.aloha-editable');
1573
+ jQuery(editable).contentEditable(true);
1574
+ }
1575
+
1576
+ if (this.imageObj) {
1577
+ this.imageObj
1578
+ .resizable('destroy')
1579
+ .css({
1580
+ top : 0,
1581
+ left : 0
1582
+ });
1583
+ }
1584
+ },
1585
+
1586
+ /**
1587
+ * Reset the image to it's original properties
1588
+ */
1589
+ reset: function() {
1590
+ if (this.settings.ui.crop) {
1591
+ this.endCrop();
1592
+ }
1593
+
1594
+ if (this.settings.ui.resizable) {
1595
+ this.endResize();
1596
+ }
1597
+
1598
+ if (this._onReset(this.imageObj)) {
1599
+ // the external reset procedure has already performed a reset, so there is no need to apply an internal reset
1600
+ return;
1601
+ }
1602
+
1603
+ for (var i=0;i<this.restoreProps.length;i++) {
1604
+ // restore from restoreProps if there is a match
1605
+ if (this.imageObj.get(0) === this.restoreProps[i].obj) {
1606
+ this.imageObj.attr('src', this.restoreProps[i].src);
1607
+ this.imageObj.width(this.restoreProps[i].width);
1608
+ this.imageObj.height(this.restoreProps[i].height);
1609
+ return;
1610
+ }
1611
+ }
1612
+ }
1613
+ });
1614
+
1615
+ });