aloha_rails 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (465) hide show
  1. data/Gemfile +13 -0
  2. data/Gemfile.lock +50 -0
  3. data/LICENSE.txt +20 -0
  4. data/README.rdoc +26 -0
  5. data/Rakefile +28 -0
  6. data/VERSION +1 -0
  7. data/aloha_rails-0.1.3.gem +0 -0
  8. data/aloha_rails.gemspec +521 -0
  9. data/lib/aloha_rails.rb +6 -0
  10. data/lib/assets/images/aloha/deps/extjs/resources/charts.swf +0 -0
  11. data/lib/assets/images/aloha/deps/extjs/resources/expressinstall.swf +0 -0
  12. data/lib/assets/images/aloha/deps/extjs/resources/images/default/box/corners-blue.gif +0 -0
  13. data/lib/assets/images/aloha/deps/extjs/resources/images/default/box/corners.gif +0 -0
  14. data/lib/assets/images/aloha/deps/extjs/resources/images/default/box/l-blue.gif +0 -0
  15. data/lib/assets/images/aloha/deps/extjs/resources/images/default/box/l.gif +0 -0
  16. data/lib/assets/images/aloha/deps/extjs/resources/images/default/box/r-blue.gif +0 -0
  17. data/lib/assets/images/aloha/deps/extjs/resources/images/default/box/r.gif +0 -0
  18. data/lib/assets/images/aloha/deps/extjs/resources/images/default/box/tb-blue.gif +0 -0
  19. data/lib/assets/images/aloha/deps/extjs/resources/images/default/box/tb.gif +0 -0
  20. data/lib/assets/images/aloha/deps/extjs/resources/images/default/button/arrow.gif +0 -0
  21. data/lib/assets/images/aloha/deps/extjs/resources/images/default/button/btn.gif +0 -0
  22. data/lib/assets/images/aloha/deps/extjs/resources/images/default/button/group-cs.gif +0 -0
  23. data/lib/assets/images/aloha/deps/extjs/resources/images/default/button/group-lr.gif +0 -0
  24. data/lib/assets/images/aloha/deps/extjs/resources/images/default/button/group-tb.gif +0 -0
  25. data/lib/assets/images/aloha/deps/extjs/resources/images/default/button/s-arrow-b-noline.gif +0 -0
  26. data/lib/assets/images/aloha/deps/extjs/resources/images/default/button/s-arrow-b.gif +0 -0
  27. data/lib/assets/images/aloha/deps/extjs/resources/images/default/button/s-arrow-bo.gif +0 -0
  28. data/lib/assets/images/aloha/deps/extjs/resources/images/default/button/s-arrow-noline.gif +0 -0
  29. data/lib/assets/images/aloha/deps/extjs/resources/images/default/button/s-arrow-o.gif +0 -0
  30. data/lib/assets/images/aloha/deps/extjs/resources/images/default/button/s-arrow.gif +0 -0
  31. data/lib/assets/images/aloha/deps/extjs/resources/images/default/dd/drop-add.gif +0 -0
  32. data/lib/assets/images/aloha/deps/extjs/resources/images/default/dd/drop-no.gif +0 -0
  33. data/lib/assets/images/aloha/deps/extjs/resources/images/default/dd/drop-yes.gif +0 -0
  34. data/lib/assets/images/aloha/deps/extjs/resources/images/default/editor/tb-sprite.gif +0 -0
  35. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/checkbox.gif +0 -0
  36. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/clear-trigger.gif +0 -0
  37. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/clear-trigger.psd +0 -0
  38. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/date-trigger.gif +0 -0
  39. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/date-trigger.psd +0 -0
  40. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/error-tip-corners.gif +0 -0
  41. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/exclamation.gif +0 -0
  42. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/radio.gif +0 -0
  43. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/search-trigger.gif +0 -0
  44. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/search-trigger.psd +0 -0
  45. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/text-bg.gif +0 -0
  46. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/trigger-square.gif +0 -0
  47. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/trigger-square.psd +0 -0
  48. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/trigger-tpl.gif +0 -0
  49. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/trigger.gif +0 -0
  50. data/lib/assets/images/aloha/deps/extjs/resources/images/default/form/trigger.psd +0 -0
  51. data/lib/assets/images/aloha/deps/extjs/resources/images/default/gradient-bg.gif +0 -0
  52. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/arrow-left-white.gif +0 -0
  53. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/arrow-right-white.gif +0 -0
  54. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/col-move-bottom.gif +0 -0
  55. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/col-move-top.gif +0 -0
  56. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/columns.gif +0 -0
  57. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/dirty.gif +0 -0
  58. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/done.gif +0 -0
  59. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/drop-no.gif +0 -0
  60. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/drop-yes.gif +0 -0
  61. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/footer-bg.gif +0 -0
  62. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/grid-blue-hd.gif +0 -0
  63. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/grid-blue-split.gif +0 -0
  64. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/grid-hrow.gif +0 -0
  65. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/grid-loading.gif +0 -0
  66. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/grid-split.gif +0 -0
  67. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/grid-vista-hd.gif +0 -0
  68. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/grid3-hd-btn.gif +0 -0
  69. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/grid3-hrow-over.gif +0 -0
  70. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/grid3-hrow.gif +0 -0
  71. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/grid3-special-col-bg.gif +0 -0
  72. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/grid3-special-col-sel-bg.gif +0 -0
  73. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/group-by.gif +0 -0
  74. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/group-collapse.gif +0 -0
  75. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/group-expand-sprite.gif +0 -0
  76. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/group-expand.gif +0 -0
  77. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/hd-pop.gif +0 -0
  78. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/hmenu-asc.gif +0 -0
  79. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/hmenu-desc.gif +0 -0
  80. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/hmenu-lock.gif +0 -0
  81. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/hmenu-lock.png +0 -0
  82. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/hmenu-unlock.gif +0 -0
  83. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/hmenu-unlock.png +0 -0
  84. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/invalid_line.gif +0 -0
  85. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/loading.gif +0 -0
  86. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/mso-hd.gif +0 -0
  87. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/nowait.gif +0 -0
  88. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/page-first-disabled.gif +0 -0
  89. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/page-first.gif +0 -0
  90. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/page-last-disabled.gif +0 -0
  91. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/page-last.gif +0 -0
  92. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/page-next-disabled.gif +0 -0
  93. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/page-next.gif +0 -0
  94. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/page-prev-disabled.gif +0 -0
  95. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/page-prev.gif +0 -0
  96. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/pick-button.gif +0 -0
  97. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/refresh.gif +0 -0
  98. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/row-check-sprite.gif +0 -0
  99. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/row-expand-sprite.gif +0 -0
  100. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/row-over.gif +0 -0
  101. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/row-sel.gif +0 -0
  102. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/sort-hd.gif +0 -0
  103. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/sort_asc.gif +0 -0
  104. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/sort_desc.gif +0 -0
  105. data/lib/assets/images/aloha/deps/extjs/resources/images/default/grid/wait.gif +0 -0
  106. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/collapse.gif +0 -0
  107. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/expand.gif +0 -0
  108. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/gradient-bg.gif +0 -0
  109. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/mini-bottom.gif +0 -0
  110. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/mini-left.gif +0 -0
  111. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/mini-right.gif +0 -0
  112. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/mini-top.gif +0 -0
  113. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/ns-collapse.gif +0 -0
  114. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/ns-expand.gif +0 -0
  115. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/panel-close.gif +0 -0
  116. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/panel-title-bg.gif +0 -0
  117. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/panel-title-light-bg.gif +0 -0
  118. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/stick.gif +0 -0
  119. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/stuck.gif +0 -0
  120. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/tab-close-on.gif +0 -0
  121. data/lib/assets/images/aloha/deps/extjs/resources/images/default/layout/tab-close.gif +0 -0
  122. data/lib/assets/images/aloha/deps/extjs/resources/images/default/menu/checked.gif +0 -0
  123. data/lib/assets/images/aloha/deps/extjs/resources/images/default/menu/group-checked.gif +0 -0
  124. data/lib/assets/images/aloha/deps/extjs/resources/images/default/menu/item-over.gif +0 -0
  125. data/lib/assets/images/aloha/deps/extjs/resources/images/default/menu/menu-parent.gif +0 -0
  126. data/lib/assets/images/aloha/deps/extjs/resources/images/default/menu/menu.gif +0 -0
  127. data/lib/assets/images/aloha/deps/extjs/resources/images/default/menu/unchecked.gif +0 -0
  128. data/lib/assets/images/aloha/deps/extjs/resources/images/default/panel/corners-sprite.gif +0 -0
  129. data/lib/assets/images/aloha/deps/extjs/resources/images/default/panel/left-right.gif +0 -0
  130. data/lib/assets/images/aloha/deps/extjs/resources/images/default/panel/light-hd.gif +0 -0
  131. data/lib/assets/images/aloha/deps/extjs/resources/images/default/panel/tool-sprite-tpl.gif +0 -0
  132. data/lib/assets/images/aloha/deps/extjs/resources/images/default/panel/tool-sprites.gif +0 -0
  133. data/lib/assets/images/aloha/deps/extjs/resources/images/default/panel/tools-sprites-trans.gif +0 -0
  134. data/lib/assets/images/aloha/deps/extjs/resources/images/default/panel/top-bottom.gif +0 -0
  135. data/lib/assets/images/aloha/deps/extjs/resources/images/default/panel/top-bottom.png +0 -0
  136. data/lib/assets/images/aloha/deps/extjs/resources/images/default/panel/white-corners-sprite.gif +0 -0
  137. data/lib/assets/images/aloha/deps/extjs/resources/images/default/panel/white-left-right.gif +0 -0
  138. data/lib/assets/images/aloha/deps/extjs/resources/images/default/panel/white-top-bottom.gif +0 -0
  139. data/lib/assets/images/aloha/deps/extjs/resources/images/default/progress/progress-bg.gif +0 -0
  140. data/lib/assets/images/aloha/deps/extjs/resources/images/default/qtip/bg.gif +0 -0
  141. data/lib/assets/images/aloha/deps/extjs/resources/images/default/qtip/close.gif +0 -0
  142. data/lib/assets/images/aloha/deps/extjs/resources/images/default/qtip/tip-anchor-sprite.gif +0 -0
  143. data/lib/assets/images/aloha/deps/extjs/resources/images/default/qtip/tip-sprite.gif +0 -0
  144. data/lib/assets/images/aloha/deps/extjs/resources/images/default/s.gif +0 -0
  145. data/lib/assets/images/aloha/deps/extjs/resources/images/default/shadow-c.png +0 -0
  146. data/lib/assets/images/aloha/deps/extjs/resources/images/default/shadow-lr.png +0 -0
  147. data/lib/assets/images/aloha/deps/extjs/resources/images/default/shadow.png +0 -0
  148. data/lib/assets/images/aloha/deps/extjs/resources/images/default/shared/blue-loading.gif +0 -0
  149. data/lib/assets/images/aloha/deps/extjs/resources/images/default/shared/calendar.gif +0 -0
  150. data/lib/assets/images/aloha/deps/extjs/resources/images/default/shared/glass-bg.gif +0 -0
  151. data/lib/assets/images/aloha/deps/extjs/resources/images/default/shared/hd-sprite.gif +0 -0
  152. data/lib/assets/images/aloha/deps/extjs/resources/images/default/shared/large-loading.gif +0 -0
  153. data/lib/assets/images/aloha/deps/extjs/resources/images/default/shared/left-btn.gif +0 -0
  154. data/lib/assets/images/aloha/deps/extjs/resources/images/default/shared/loading-balls.gif +0 -0
  155. data/lib/assets/images/aloha/deps/extjs/resources/images/default/shared/right-btn.gif +0 -0
  156. data/lib/assets/images/aloha/deps/extjs/resources/images/default/shared/warning.gif +0 -0
  157. data/lib/assets/images/aloha/deps/extjs/resources/images/default/sizer/e-handle-dark.gif +0 -0
  158. data/lib/assets/images/aloha/deps/extjs/resources/images/default/sizer/e-handle.gif +0 -0
  159. data/lib/assets/images/aloha/deps/extjs/resources/images/default/sizer/ne-handle-dark.gif +0 -0
  160. data/lib/assets/images/aloha/deps/extjs/resources/images/default/sizer/ne-handle.gif +0 -0
  161. data/lib/assets/images/aloha/deps/extjs/resources/images/default/sizer/nw-handle-dark.gif +0 -0
  162. data/lib/assets/images/aloha/deps/extjs/resources/images/default/sizer/nw-handle.gif +0 -0
  163. data/lib/assets/images/aloha/deps/extjs/resources/images/default/sizer/s-handle-dark.gif +0 -0
  164. data/lib/assets/images/aloha/deps/extjs/resources/images/default/sizer/s-handle.gif +0 -0
  165. data/lib/assets/images/aloha/deps/extjs/resources/images/default/sizer/se-handle-dark.gif +0 -0
  166. data/lib/assets/images/aloha/deps/extjs/resources/images/default/sizer/se-handle.gif +0 -0
  167. data/lib/assets/images/aloha/deps/extjs/resources/images/default/sizer/square.gif +0 -0
  168. data/lib/assets/images/aloha/deps/extjs/resources/images/default/sizer/sw-handle-dark.gif +0 -0
  169. data/lib/assets/images/aloha/deps/extjs/resources/images/default/sizer/sw-handle.gif +0 -0
  170. data/lib/assets/images/aloha/deps/extjs/resources/images/default/slider/slider-bg.png +0 -0
  171. data/lib/assets/images/aloha/deps/extjs/resources/images/default/slider/slider-thumb.png +0 -0
  172. data/lib/assets/images/aloha/deps/extjs/resources/images/default/slider/slider-v-bg.png +0 -0
  173. data/lib/assets/images/aloha/deps/extjs/resources/images/default/slider/slider-v-thumb.png +0 -0
  174. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/scroll-left.gif +0 -0
  175. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/scroll-right.gif +0 -0
  176. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/scroller-bg.gif +0 -0
  177. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
  178. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
  179. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/tab-btm-left-bg.gif +0 -0
  180. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/tab-btm-over-left-bg.gif +0 -0
  181. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/tab-btm-over-right-bg.gif +0 -0
  182. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/tab-btm-right-bg.gif +0 -0
  183. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/tab-close.gif +0 -0
  184. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/tab-strip-bg.gif +0 -0
  185. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/tab-strip-bg.png +0 -0
  186. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/tab-strip-btm-bg.gif +0 -0
  187. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tabs/tabs-sprite.gif +0 -0
  188. data/lib/assets/images/aloha/deps/extjs/resources/images/default/toolbar/bg.gif +0 -0
  189. data/lib/assets/images/aloha/deps/extjs/resources/images/default/toolbar/btn-arrow-light.gif +0 -0
  190. data/lib/assets/images/aloha/deps/extjs/resources/images/default/toolbar/btn-arrow.gif +0 -0
  191. data/lib/assets/images/aloha/deps/extjs/resources/images/default/toolbar/btn-over-bg.gif +0 -0
  192. data/lib/assets/images/aloha/deps/extjs/resources/images/default/toolbar/gray-bg.gif +0 -0
  193. data/lib/assets/images/aloha/deps/extjs/resources/images/default/toolbar/more.gif +0 -0
  194. data/lib/assets/images/aloha/deps/extjs/resources/images/default/toolbar/tb-bg.gif +0 -0
  195. data/lib/assets/images/aloha/deps/extjs/resources/images/default/toolbar/tb-btn-sprite.gif +0 -0
  196. data/lib/assets/images/aloha/deps/extjs/resources/images/default/toolbar/tb-xl-btn-sprite.gif +0 -0
  197. data/lib/assets/images/aloha/deps/extjs/resources/images/default/toolbar/tb-xl-sep.gif +0 -0
  198. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/arrows.gif +0 -0
  199. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/drop-add.gif +0 -0
  200. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/drop-between.gif +0 -0
  201. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/drop-no.gif +0 -0
  202. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/drop-over.gif +0 -0
  203. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/drop-under.gif +0 -0
  204. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/drop-yes.gif +0 -0
  205. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/elbow-end-minus-nl.gif +0 -0
  206. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/elbow-end-minus.gif +0 -0
  207. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/elbow-end-plus-nl.gif +0 -0
  208. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/elbow-end-plus.gif +0 -0
  209. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/elbow-end.gif +0 -0
  210. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/elbow-line.gif +0 -0
  211. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/elbow-minus-nl.gif +0 -0
  212. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/elbow-minus.gif +0 -0
  213. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/elbow-plus-nl.gif +0 -0
  214. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/elbow-plus.gif +0 -0
  215. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/elbow.gif +0 -0
  216. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/folder-open.gif +0 -0
  217. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/folder.gif +0 -0
  218. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/leaf.gif +0 -0
  219. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/loading.gif +0 -0
  220. data/lib/assets/images/aloha/deps/extjs/resources/images/default/tree/s.gif +0 -0
  221. data/lib/assets/images/aloha/deps/extjs/resources/images/default/window/icon-error.gif +0 -0
  222. data/lib/assets/images/aloha/deps/extjs/resources/images/default/window/icon-info.gif +0 -0
  223. data/lib/assets/images/aloha/deps/extjs/resources/images/default/window/icon-question.gif +0 -0
  224. data/lib/assets/images/aloha/deps/extjs/resources/images/default/window/icon-warning.gif +0 -0
  225. data/lib/assets/images/aloha/deps/extjs/resources/images/default/window/left-corners.png +0 -0
  226. data/lib/assets/images/aloha/deps/extjs/resources/images/default/window/left-corners.psd +0 -0
  227. data/lib/assets/images/aloha/deps/extjs/resources/images/default/window/left-right.png +0 -0
  228. data/lib/assets/images/aloha/deps/extjs/resources/images/default/window/left-right.psd +0 -0
  229. data/lib/assets/images/aloha/deps/extjs/resources/images/default/window/right-corners.png +0 -0
  230. data/lib/assets/images/aloha/deps/extjs/resources/images/default/window/right-corners.psd +0 -0
  231. data/lib/assets/images/aloha/deps/extjs/resources/images/default/window/top-bottom.png +0 -0
  232. data/lib/assets/images/aloha/deps/extjs/resources/images/default/window/top-bottom.psd +0 -0
  233. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/button/btn-arrow.gif +0 -0
  234. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/button/btn-sprite.gif +0 -0
  235. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/button/btn.gif +0 -0
  236. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/button/group-cs.gif +0 -0
  237. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/button/group-lr.gif +0 -0
  238. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/button/group-tb.gif +0 -0
  239. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/button/s-arrow-bo.gif +0 -0
  240. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/button/s-arrow-o.gif +0 -0
  241. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/form/clear-trigger.gif +0 -0
  242. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/form/date-trigger.gif +0 -0
  243. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/form/search-trigger.gif +0 -0
  244. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/form/trigger-square.gif +0 -0
  245. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/form/trigger.gif +0 -0
  246. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/gradient-bg.gif +0 -0
  247. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/col-move-bottom.gif +0 -0
  248. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/col-move-top.gif +0 -0
  249. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/grid3-hd-btn.gif +0 -0
  250. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/grid3-hrow-over.gif +0 -0
  251. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/grid3-hrow-over2.gif +0 -0
  252. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/grid3-hrow.gif +0 -0
  253. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/grid3-hrow2.gif +0 -0
  254. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/grid3-special-col-bg.gif +0 -0
  255. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/grid3-special-col-bg2.gif +0 -0
  256. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/grid3-special-col-sel-bg.gif +0 -0
  257. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/group-collapse.gif +0 -0
  258. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/group-expand-sprite.gif +0 -0
  259. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/group-expand.gif +0 -0
  260. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/page-first.gif +0 -0
  261. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/page-last.gif +0 -0
  262. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/page-next.gif +0 -0
  263. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/page-prev.gif +0 -0
  264. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/refresh.gif +0 -0
  265. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/row-expand-sprite.gif +0 -0
  266. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/sort_asc.gif +0 -0
  267. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/grid/sort_desc.gif +0 -0
  268. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/menu/group-checked.gif +0 -0
  269. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/menu/item-over-disabled.gif +0 -0
  270. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/menu/item-over.gif +0 -0
  271. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/menu/menu-parent.gif +0 -0
  272. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/panel/corners-sprite.gif +0 -0
  273. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/panel/left-right.gif +0 -0
  274. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/panel/light-hd.gif +0 -0
  275. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/panel/tool-sprite-tpl.gif +0 -0
  276. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/panel/tool-sprites.gif +0 -0
  277. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/panel/tools-sprites-trans.gif +0 -0
  278. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/panel/top-bottom.gif +0 -0
  279. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/panel/top-bottom.png +0 -0
  280. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/panel/white-corners-sprite.gif +0 -0
  281. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/panel/white-left-right.gif +0 -0
  282. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/panel/white-top-bottom.gif +0 -0
  283. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/progress/progress-bg.gif +0 -0
  284. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/qtip/bg.gif +0 -0
  285. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/qtip/close.gif +0 -0
  286. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/qtip/tip-anchor-sprite.gif +0 -0
  287. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/qtip/tip-sprite.gif +0 -0
  288. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/s.gif +0 -0
  289. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/shared/hd-sprite.gif +0 -0
  290. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/shared/left-btn.gif +0 -0
  291. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/shared/right-btn.gif +0 -0
  292. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/sizer/e-handle.gif +0 -0
  293. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/sizer/ne-handle.gif +0 -0
  294. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/sizer/nw-handle.gif +0 -0
  295. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/sizer/s-handle.gif +0 -0
  296. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/sizer/se-handle.gif +0 -0
  297. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/sizer/square.gif +0 -0
  298. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/sizer/sw-handle.gif +0 -0
  299. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/slider/slider-thumb.png +0 -0
  300. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/slider/slider-v-thumb.png +0 -0
  301. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/scroll-left.gif +0 -0
  302. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/scroll-right.gif +0 -0
  303. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/scroller-bg.gif +0 -0
  304. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-inactive-left-bg.gif +0 -0
  305. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-inactive-right-bg.gif +0 -0
  306. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-left-bg.gif +0 -0
  307. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-over-left-bg.gif +0 -0
  308. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-over-right-bg.gif +0 -0
  309. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-right-bg.gif +0 -0
  310. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/tab-close.gif +0 -0
  311. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/tab-strip-bg.gif +0 -0
  312. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/tab-strip-bg.png +0 -0
  313. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/tab-strip-btm-bg.gif +0 -0
  314. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tabs/tabs-sprite.gif +0 -0
  315. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/toolbar/bg.gif +0 -0
  316. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/toolbar/btn-arrow-light.gif +0 -0
  317. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/toolbar/btn-arrow.gif +0 -0
  318. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/toolbar/btn-over-bg.gif +0 -0
  319. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/toolbar/gray-bg.gif +0 -0
  320. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/toolbar/more.gif +0 -0
  321. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/toolbar/tb-bg.gif +0 -0
  322. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/toolbar/tb-btn-sprite.gif +0 -0
  323. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tree/arrows.gif +0 -0
  324. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tree/elbow-end-minus-nl.gif +0 -0
  325. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tree/elbow-end-minus.gif +0 -0
  326. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tree/elbow-end-plus-nl.gif +0 -0
  327. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/tree/elbow-end-plus.gif +0 -0
  328. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/window/icon-error.gif +0 -0
  329. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/window/icon-info.gif +0 -0
  330. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/window/icon-question.gif +0 -0
  331. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/window/icon-warning.gif +0 -0
  332. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/window/left-corners.png +0 -0
  333. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/window/left-corners.pspimage +0 -0
  334. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/window/left-right.png +0 -0
  335. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/window/right-corners.png +0 -0
  336. data/lib/assets/images/aloha/deps/extjs/resources/images/gray/window/top-bottom.png +0 -0
  337. data/lib/assets/images/aloha/deps/extjs/resources/resources.jsb +507 -0
  338. data/lib/assets/images/aloha/deps/prettyPhoto/resources/css/prettyPhoto.css +386 -0
  339. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/dark_rounded/btnNext.png +0 -0
  340. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/dark_rounded/btnPrevious.png +0 -0
  341. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/dark_rounded/contentPattern.png +0 -0
  342. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/dark_rounded/loader.gif +0 -0
  343. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/dark_rounded/sprite.png +0 -0
  344. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/dark_square/btnNext.png +0 -0
  345. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/dark_square/btnPrevious.png +0 -0
  346. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/dark_square/contentPattern.png +0 -0
  347. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/dark_square/loader.gif +0 -0
  348. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/dark_square/sprite.png +0 -0
  349. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/facebook/btnNext.png +0 -0
  350. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/facebook/btnPrevious.png +0 -0
  351. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/facebook/contentPatternBottom.png +0 -0
  352. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/facebook/contentPatternLeft.png +0 -0
  353. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/facebook/contentPatternRight.png +0 -0
  354. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/facebook/contentPatternTop.png +0 -0
  355. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/facebook/loader.gif +0 -0
  356. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/facebook/sprite.png +0 -0
  357. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/light_rounded/btnNext.png +0 -0
  358. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/light_rounded/btnPrevious.png +0 -0
  359. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/light_rounded/loader.gif +0 -0
  360. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/light_rounded/sprite.png +0 -0
  361. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/light_square/btnNext.png +0 -0
  362. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/light_square/btnPrevious.png +0 -0
  363. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/light_square/loader.gif +0 -0
  364. data/lib/assets/images/aloha/deps/prettyPhoto/resources/images/light_square/sprite.png +0 -0
  365. data/lib/assets/images/aloha/i18n/de.dict +7 -0
  366. data/lib/assets/images/aloha/i18n/en.dict +7 -0
  367. data/lib/assets/images/aloha/i18n/eo.dict +5 -0
  368. data/lib/assets/images/aloha/i18n/fi.dict +5 -0
  369. data/lib/assets/images/aloha/i18n/fr.dict +5 -0
  370. data/lib/assets/images/aloha/i18n/it.dict +5 -0
  371. data/lib/assets/images/aloha/i18n/pl.dict +5 -0
  372. data/lib/assets/images/aloha/i18n/ru.dict +5 -0
  373. data/lib/assets/images/aloha/images/base.gif +0 -0
  374. data/lib/assets/images/aloha/images/base.png +0 -0
  375. data/lib/assets/images/aloha/images/base_big.png +0 -0
  376. data/lib/assets/images/aloha/images/base_multi.png +0 -0
  377. data/lib/assets/images/aloha/images/fade_in.png +0 -0
  378. data/lib/assets/images/aloha/images/fade_out.png +0 -0
  379. data/lib/assets/images/aloha/images/gentics_logo.png +0 -0
  380. data/lib/assets/images/aloha/images/grabhandle.png +0 -0
  381. data/lib/assets/images/aloha/images/maximize.png +0 -0
  382. data/lib/assets/images/aloha/images/multisplit-close.gif +0 -0
  383. data/lib/assets/images/aloha/images/multisplit-open.gif +0 -0
  384. data/lib/assets/images/aloha/images/multisplit_base.jpg +0 -0
  385. data/lib/assets/images/aloha/images/pin.png +0 -0
  386. data/lib/assets/images/aloha/images/removeformat.png +0 -0
  387. data/lib/assets/javascripts/aloha/aloha.js +304 -0
  388. data/lib/assets/javascripts/aloha/index.js +17 -0
  389. data/lib/assets/javascripts/aloha/jquery.cookie.js +96 -0
  390. data/lib/assets/javascripts/aloha/plugins/at.tapo.aloha.plugins.Image/i18n/de.dict +8 -0
  391. data/lib/assets/javascripts/aloha/plugins/at.tapo.aloha.plugins.Image/i18n/en.dict +8 -0
  392. data/lib/assets/javascripts/aloha/plugins/at.tapo.aloha.plugins.Image/plugin.js +168 -0
  393. data/lib/assets/javascripts/aloha/plugins/at.tapo.aloha.plugins.Image/resources/imageplugin.css +20 -0
  394. data/lib/assets/javascripts/aloha/plugins/at.tapo.aloha.plugins.Image/resources/images/image-align-left.png +0 -0
  395. data/lib/assets/javascripts/aloha/plugins/at.tapo.aloha.plugins.Image/resources/images/image-align-none.png +0 -0
  396. data/lib/assets/javascripts/aloha/plugins/at.tapo.aloha.plugins.Image/resources/images/image-align-right.png +0 -0
  397. data/lib/assets/javascripts/aloha/plugins/at.tapo.aloha.plugins.Image/resources/images/image-border.png +0 -0
  398. data/lib/assets/javascripts/aloha/plugins/at.tapo.aloha.plugins.Image/resources/images/image-title.png +0 -0
  399. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Abbr/examples/AlohaAbbr.css +48 -0
  400. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Abbr/examples/AlohaAbbr.html +69 -0
  401. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Abbr/i18n/de.dict +4 -0
  402. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Abbr/i18n/en.dict +4 -0
  403. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Abbr/plugin.js +7 -0
  404. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/de.dict +30 -0
  405. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/en.dict +30 -0
  406. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/eo.dict +29 -0
  407. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/fi.dict +30 -0
  408. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/fr.dict +30 -0
  409. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/it.dict +30 -0
  410. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/pl.dict +30 -0
  411. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/ru.dict +30 -0
  412. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Format/plugin.js +7 -0
  413. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.HighlightEditables/css/HighlightEditables.css +14 -0
  414. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.HighlightEditables/plugin.js +7 -0
  415. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Link/LinkList.js +7 -0
  416. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Link/css/Link.css +15 -0
  417. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Link/delicious.js +7 -0
  418. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/de.dict +4 -0
  419. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/en.dict +4 -0
  420. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/fr.dict +4 -0
  421. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/pl.dict +4 -0
  422. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/ru.dict +4 -0
  423. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Link/plugin.js +7 -0
  424. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/css/LinkChecker.css +14 -0
  425. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/examples/AlohaLinkChecker.css +49 -0
  426. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/examples/AlohaLinkChecker.html +82 -0
  427. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/i18n/en.dict +27 -0
  428. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/plugin.js +7 -0
  429. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/proxy.php +235 -0
  430. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.List/i18n/de.dict +2 -0
  431. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.List/i18n/en.dict +2 -0
  432. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.List/i18n/eo.dict +2 -0
  433. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.List/i18n/fi.dict +2 -0
  434. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.List/i18n/fr.dict +2 -0
  435. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.List/i18n/it.dict +2 -0
  436. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.List/i18n/ru.dict +2 -0
  437. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.List/plugin.js +7 -0
  438. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Paste/plugin.js +7 -0
  439. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Paste/wordpastehandler.js +7 -0
  440. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.TOC/i18n/de.dict +1 -0
  441. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.TOC/i18n/en.dict +1 -0
  442. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.TOC/plugin.js +1 -0
  443. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/de.dict +14 -0
  444. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/en.dict +14 -0
  445. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/eo.dict +12 -0
  446. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/fi.dict +12 -0
  447. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/fr.dict +12 -0
  448. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/it.dict +12 -0
  449. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/pl.dict +12 -0
  450. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/ru.dict +12 -0
  451. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/plugin.js +7 -0
  452. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/resources/down.cur +0 -0
  453. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/resources/left.cur +0 -0
  454. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/resources/table.css +112 -0
  455. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/resources/wai_green.png +0 -0
  456. data/lib/assets/javascripts/aloha/plugins/com.gentics.aloha.plugins.Table/resources/wai_red.png +0 -0
  457. data/lib/assets/javascripts/aloha/set_base_location.js +3 -0
  458. data/lib/assets/javascripts/aloha/start_aloha.js.coffee +3 -0
  459. data/lib/assets/stylesheets/aloha/css/aloha.css +455 -0
  460. data/lib/assets/stylesheets/aloha/deps/MIT-LICENSE.txt +20 -0
  461. data/lib/assets/stylesheets/aloha/deps/extjs/resources/css/ext-all.css +6795 -0
  462. data/lib/assets/stylesheets/aloha/deps/extjs/resources/css/xtheme-gray.css +1654 -0
  463. data/lib/assets/stylesheets/extjs/ext-all.css +6795 -0
  464. data/lib/assets/stylesheets/extjs/xtheme-gray.css +1654 -0
  465. metadata +596 -0
@@ -0,0 +1,2 @@
1
+ button.createulist.tooltip=Lisää järjestelemätön lista
2
+ button.createolist.tooltip=Lisää järjestelty lista
@@ -0,0 +1,2 @@
1
+ button.createulist.tooltip=Insérer une liste non ordonnée
2
+ button.createolist.tooltip=Insérer liste ordonnée
@@ -0,0 +1,2 @@
1
+ button.createulist.tooltip=Inserisci una lista
2
+ button.createolist.tooltip=Inserisci una lista numerata
@@ -0,0 +1,2 @@
1
+ button.createulist.tooltip=Вставить Список
2
+ button.createolist.tooltip=Вставить Упорядоченный Список
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Aloha Editor
3
+ * Author & Copyright (c) 2010 Gentics Software GmbH
4
+ * aloha-sales@gentics.com
5
+ * Licensed unter the terms of http://www.aloha-editor.com/license.html
6
+ */
7
+ GENTICS.Aloha.ListPlugin=new GENTICS.Aloha.Plugin("com.gentics.aloha.plugins.List");GENTICS.Aloha.ListPlugin.languages=["en","de","fr","eo","fi","ru","it"];GENTICS.Aloha.ListPlugin.config=["ul","ol"];GENTICS.Aloha.ListPlugin.transformableElements={p:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,ul:true,ol:true};GENTICS.Aloha.ListPlugin.init=function(){var that=this;this.createUnorderedListButton=new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_ul",size:"small",tooltip:this.i18n("button.createulist.tooltip"),toggle:true,onclick:function(element,event){that.transformList(false)}});GENTICS.Aloha.FloatingMenu.addButton("GENTICS.Aloha.continuoustext",this.createUnorderedListButton,GENTICS.Aloha.i18n(GENTICS.Aloha,"floatingmenu.tab.format"),1);this.createOrderedListButton=new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_ol",size:"small",tooltip:this.i18n("button.createolist.tooltip"),toggle:true,onclick:function(element,event){that.transformList(true)}});GENTICS.Aloha.FloatingMenu.addButton("GENTICS.Aloha.continuoustext",this.createOrderedListButton,GENTICS.Aloha.i18n(GENTICS.Aloha,"floatingmenu.tab.format"),1);GENTICS.Aloha.EventRegistry.subscribe(GENTICS.Aloha,"selectionChanged",function(event,rangeObject){that.createUnorderedListButton.setPressed(false);that.createOrderedListButton.setPressed(false);for(var i=0;i<rangeObject.markupEffectiveAtStart.length;i++){var effectiveMarkup=rangeObject.markupEffectiveAtStart[i];if(GENTICS.Aloha.Selection.standardTextLevelSemanticsComparator(effectiveMarkup,jQuery("<ul></ul>"))){that.createUnorderedListButton.setPressed(true);break}if(GENTICS.Aloha.Selection.standardTextLevelSemanticsComparator(effectiveMarkup,jQuery("<ol></ol>"))){that.createOrderedListButton.setPressed(true);break}}if(GENTICS.Aloha.activeEditable){that.applyButtonConfig(GENTICS.Aloha.activeEditable.obj)}GENTICS.Aloha.FloatingMenu.doLayout()});GENTICS.Aloha.Markup.addKeyHandler(9,function(event){return that.processTab(event)})};GENTICS.Aloha.ListPlugin.applyButtonConfig=function(obj){var config=this.getEditableConfig(obj);if(GENTICS.Aloha.Selection.rangeObject.unmodifiableMarkupAtStart[0]){if(jQuery.inArray("ul",config)!=-1&&GENTICS.Aloha.Selection.canTag1WrapTag2(GENTICS.Aloha.Selection.rangeObject.unmodifiableMarkupAtStart[0].nodeName,"ul")!=-1){this.createUnorderedListButton.show()}else{this.createUnorderedListButton.hide()}if(jQuery.inArray("ol",config)!=-1&&GENTICS.Aloha.Selection.canTag1WrapTag2(GENTICS.Aloha.Selection.rangeObject.unmodifiableMarkupAtStart[0].nodeName,"ol")!=-1){this.createOrderedListButton.show()}else{this.createOrderedListButton.hide()}}};GENTICS.Aloha.ListPlugin.processTab=function(event){switch(event.keyCode){case 9:if(event.shiftKey){return this.outdentList()}else{return this.indentList()}}return true};GENTICS.Aloha.ListPlugin.getStartingDomObjectToTransform=function(){var rangeObject=GENTICS.Aloha.Selection.rangeObject;for(var i=0;i<rangeObject.markupEffectiveAtStart.length;i++){var effectiveMarkup=rangeObject.markupEffectiveAtStart[i];if(this.transformableElements[effectiveMarkup.nodeName.toLowerCase()]){return effectiveMarkup}}return false};GENTICS.Aloha.ListPlugin.getNearestSelectedListItem=function(){var rangeObject=GENTICS.Aloha.Selection.rangeObject;for(var i=0;i<rangeObject.markupEffectiveAtStart.length;i++){var effectiveMarkup=rangeObject.markupEffectiveAtStart[i];if(GENTICS.Utils.Dom.isListElement(effectiveMarkup)){return effectiveMarkup}}return false};GENTICS.Aloha.ListPlugin.transformList=function(ordered){var domToTransform=this.getStartingDomObjectToTransform();if(!domToTransform){GENTICS.Aloha.Selection.changeMarkupOnSelection(jQuery("<p></p>"));domToTransform=this.getStartingDomObjectToTransform();if(!domToTransform){GENTICS.Aloha.Log.error(this,"Could not transform selection into a list");return}}var nodeName=domToTransform.nodeName.toLowerCase();if(nodeName=="ul"&&!ordered){var jqList=jQuery(domToTransform);var jqParentList=jqList.parent();if(jqParentList.length>0&&GENTICS.Utils.Dom.isListElement(jqParentList.get(0))){jqList.children().unwrap()}else{var jqToTransform=jQuery(domToTransform);jQuery.each(jqToTransform.children("li"),function(index,li){var newPara=GENTICS.Aloha.Markup.transformDomObject(li,"p");newPara.after(newPara.children("ol,ul"))});jqToTransform.children().unwrap()}}else{if(nodeName=="ul"&&ordered){GENTICS.Aloha.Markup.transformDomObject(domToTransform,"ol");this.mergeAdjacentLists(jQuery(domToTransform))}else{if(nodeName=="ol"&&!ordered){GENTICS.Aloha.Markup.transformDomObject(domToTransform,"ul");this.mergeAdjacentLists(jQuery(domToTransform))}else{if(nodeName=="ol"&&ordered){var jqList=jQuery(domToTransform);var jqParentList=jqList.parent();if(jqParentList.length>0&&GENTICS.Utils.Dom.isListElement(jqParentList.get(0))){jqList.children().unwrap()}else{var jqToTransform=jQuery(domToTransform);jQuery.each(jqToTransform.children("li"),function(index,li){var newPara=GENTICS.Aloha.Markup.transformDomObject(li,"p");newPara.after(newPara.children("ol,ul"))});jqToTransform.children().unwrap()}}else{var selectedSiblings=GENTICS.Aloha.Selection.rangeObject.getSelectedSiblings(domToTransform);var jqList=ordered?jQuery("<ol></ol>"):jQuery("<ul></ul>");var jqNewLi=jQuery("<li></li>");jqList.append(jqNewLi);jQuery(domToTransform).contents().appendTo(jqNewLi);jQuery(domToTransform).replaceWith(jqList);if(selectedSiblings){var lastLi=false;for(var i=0;i<selectedSiblings.length;++i){if(GENTICS.Utils.Dom.isBlockLevelElement(selectedSiblings[i])){if(lastLi){lastLi=false}jqNewLi=GENTICS.Aloha.Markup.transformDomObject(selectedSiblings[i],"li");jqList.append(jqNewLi)}else{if(selectedSiblings[i].nodeType==3&&jQuery.trim(selectedSiblings[i].data).length==0){continue}if(!lastLi){lastLi=jQuery("<li></li>");jqList.append(lastLi)}lastLi.append(selectedSiblings[i])}}}this.mergeAdjacentLists(jqList)}}}}this.refreshSelection()};GENTICS.Aloha.ListPlugin.indentList=function(){var listItem=this.getNearestSelectedListItem();if(listItem){var jqItemBefore=jQuery(listItem).prev("li");if(jqItemBefore.length==0){return false}var jqOldList=jQuery(listItem).parent();var selectedSiblings=GENTICS.Aloha.Selection.rangeObject.getSelectedSiblings(listItem);var jqNewList=jQuery(listItem).parent().clone(false).empty();jqNewList.append(listItem);jqItemBefore.append(jqNewList);if(selectedSiblings){for(var i=0;i<selectedSiblings.length;++i){jqNewList.append(jQuery(selectedSiblings[i]))}}this.mergeAdjacentLists(jqNewList);this.refreshSelection();return false}return true};GENTICS.Aloha.ListPlugin.outdentList=function(){var listItem=this.getNearestSelectedListItem();if(listItem){var jqListItem=jQuery(listItem);var jqList=jqListItem.parent();var jqParentList=jqList.parents("ul,ol");var wrappingLi=jqList.parent("li");if(jqParentList.length>0&&GENTICS.Utils.Dom.isListElement(jqParentList.get(0))){var selectedSiblings=GENTICS.Aloha.Selection.rangeObject.getSelectedSiblings(listItem);if(selectedSiblings&&selectedSiblings.length>0){var lastSelected=jQuery(selectedSiblings[selectedSiblings.length-1])}else{var lastSelected=jqListItem}if(lastSelected.nextAll("li").length>0){var jqNewPostList=jqList.clone(false).empty();jqNewPostList.append(lastSelected.nextAll())}if(wrappingLi.length>0){if(typeof jqNewPostList!=="undefined"){jqListItem.append(jqNewPostList)}wrappingLi.after(jqListItem)}else{jqList.before(jqListItem)}if(selectedSiblings&&selectedSiblings.length>0){for(var i=selectedSiblings.length-1;i>=0;--i){jqListItem.after(jQuery(selectedSiblings[i]))}}if(jqList.contents("li").length==0){jqList.remove()}if(wrappingLi.length>0&&wrappingLi.contents().length==0){wrappingLi.remove()}this.refreshSelection()}return false}return true};GENTICS.Aloha.ListPlugin.refreshSelection=function(){if(GENTICS.Aloha.activeEditable){GENTICS.Aloha.activeEditable.obj[0].focus()}GENTICS.Aloha.Selection.rangeObject.update();GENTICS.Aloha.Selection.rangeObject.select();GENTICS.Aloha.Selection.updateSelection()};GENTICS.Aloha.ListPlugin.mergeAdjacentLists=function(jqList){var firstList=jqList.get(0);while(firstList.previousSibling&&firstList.previousSibling.nodeType==1&&firstList.previousSibling.nodeName==firstList.nodeName){firstList=firstList.previousSibling}jqList=jQuery(firstList);while(firstList.nextSibling&&((firstList.nextSibling.nodeType==1&&firstList.nextSibling.nodeName==firstList.nodeName)||(firstList.nextSibling.nodeType==3&&jQuery.trim(firstList.nextSibling.data).length==0))){var jqNextList=jQuery(firstList.nextSibling);if(firstList.nextSibling.nodeType==1){jqNextList.contents().appendTo(jqList)}jqNextList.remove()}};
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Aloha Editor
3
+ * Author & Copyright (c) 2010 Gentics Software GmbH
4
+ * aloha-sales@gentics.com
5
+ * Licensed unter the terms of http://www.aloha-editor.com/license.html
6
+ */
7
+ GENTICS.Aloha.PastePlugin=new GENTICS.Aloha.Plugin("com.gentics.aloha.plugins.Paste");GENTICS.Aloha.PastePlugin.pasteHandlers=[];GENTICS.Aloha.PastePlugin.init=function(){var that=this;this.pasteDiv=jQuery('<div style="position:absolute; top:-100000px; left:-100000px"></div>');this.pasteDiv.attr("contentEditable","true");jQuery("body").append(this.pasteDiv);GENTICS.Aloha.EventRegistry.subscribe(GENTICS.Aloha,"editableCreated",function(event,editable){if(jQuery.browser.msie){editable.obj.bind("beforepaste",function(event){that.redirectPaste()})}else{editable.obj.bind("paste",function(event){that.redirectPaste();window.setTimeout(function(){that.getPastedContent()},10)})}});if(jQuery.browser.msie){this.pasteDiv.bind("paste",function(event){window.setTimeout(function(){that.getPastedContent()},10)})}};GENTICS.Aloha.PastePlugin.redirectPaste=function(){this.currentRange=new GENTICS.Utils.RangeObject(true);this.currentEditable=GENTICS.Aloha.activeEditable;this.pasteDiv.text("");if(this.currentEditable){this.currentEditable.blur()}GENTICS.Utils.Dom.setCursorInto(this.pasteDiv.get(0));this.pasteDiv.focus()};GENTICS.Aloha.PastePlugin.getPastedContent=function(){var that=this;for(var i=0;i<this.pasteHandlers.length;++i){this.pasteHandlers[i].handlePaste(this.pasteDiv)}if(this.currentRange&&this.currentEditable){var pasteDivContents=this.pasteDiv.contents();for(var i=pasteDivContents.length-1;i>=0;--i){GENTICS.Utils.Dom.insertIntoDOM(jQuery(pasteDivContents.get(i)),that.currentRange,that.currentEditable.obj,false)}this.currentEditable.activate();this.currentEditable.obj.focus();if(pasteDivContents.length>0){GENTICS.Utils.Dom.setCursorAfter(pasteDivContents.get(pasteDivContents.length-1))}else{this.currentRange.select()}}this.currentRange=false;this.currentEditable=false;this.pasteDiv.text("")};GENTICS.Aloha.PastePlugin.register=function(pasteHandler){this.pasteHandlers.push(pasteHandler)};GENTICS.Aloha.PastePlugin.PasteHandler=function(){GENTICS.Aloha.PastePlugin.register(this)};GENTICS.Aloha.PastePlugin.PasteHandler.prototype.handlePaste=function(jqPasteDiv){};
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Aloha Editor
3
+ * Author & Copyright (c) 2010 Gentics Software GmbH
4
+ * aloha-sales@gentics.com
5
+ * Licensed unter the terms of http://www.aloha-editor.com/license.html
6
+ */
7
+ GENTICS.Aloha.PastePlugin.WordPasteHandler=new GENTICS.Aloha.PastePlugin.PasteHandler();GENTICS.Aloha.PastePlugin.WordPasteHandler.handlePaste=function(jqPasteDiv){if(this.detectWordContent(jqPasteDiv)){this.transformWordContent(jqPasteDiv)}};GENTICS.Aloha.PastePlugin.WordPasteHandler.detectWordContent=function(jqPasteDiv){var wordDetected=false;jqPasteDiv.find("*").each(function(){var style=jQuery(this).attr("style");if(style){if(style.toLowerCase().indexOf("mso")>=0){wordDetected=true;return false}}var clazz=jQuery(this).attr("class");if(clazz){if(clazz.toLowerCase().indexOf("mso")>=0){wordDetected=true;return false}}});return wordDetected};GENTICS.Aloha.PastePlugin.WordPasteHandler.isOrderedList=function(listSpan){if(listSpan.css("fontFamily")=="Wingdings"){return false}return listSpan.text().match(/^\(?[0-9a-cA-C]/)?true:false};GENTICS.Aloha.PastePlugin.WordPasteHandler.transformListsFromWord=function(jqPasteDiv){var that=this;jqPasteDiv.find("p.MsoListParagraphCxSpFirst,p.MsoListParagraph").each(function(){var jqElem=jQuery(this);jqElem.find("font").each(function(){jQuery(this).contents().unwrap()});var nestLevel=0;var margin=parseFloat(jqElem.css("marginLeft"));var lists=[];var following=jqElem.nextUntil(":not(p.MsoListParagraphCxSpMiddle,p.MsoListParagraphCxSpLast)");var firstSpan=jQuery(jqElem.children("span:first"));var ordered=that.isOrderedList(firstSpan);firstSpan.remove();var jqList=jQuery(ordered?"<ol></ol>":"<ul></ul>");lists.push(jqList);var jqNewLi=jQuery("<li></li>");jqList.append(jqNewLi);jqElem.contents().appendTo(jqNewLi);jqElem.replaceWith(jqList);following.each(function(){var jqElem=jQuery(this);jqElem.find("font").each(function(){jQuery(this).contents().unwrap()});var newMargin=parseFloat(jqElem.css("marginLeft"));firstSpan=jQuery(jqElem.children("span:first"));ordered=that.isOrderedList(firstSpan);firstSpan.remove();if(newMargin>margin){var jqNewList=jQuery(ordered?"<ol></ol>":"<ul></ul>");jqList.children(":last").append(jqNewList);jqList=jqNewList;lists.push(jqList);nestLevel++;margin=newMargin}else{if(newMargin<margin&&nestLevel>0){lists.pop();nestLevel--;jqList=lists[nestLevel];margin=newMargin}}jqNewLi=jQuery("<li></li>");jqList.append(jqNewLi);jqElem.contents().appendTo(jqNewLi);jqElem.remove()})})};GENTICS.Aloha.PastePlugin.WordPasteHandler.transformTitles=function(jqPasteDiv){jqPasteDiv.find("p.MsoTitle").each(function(){GENTICS.Aloha.Markup.transformDomObject(jQuery(this),"h1")});jqPasteDiv.find("p.MsoSubtitle").each(function(){GENTICS.Aloha.Markup.transformDomObject(jQuery(this),"h2")})};GENTICS.Aloha.PastePlugin.WordPasteHandler.transformTables=function(jqPasteDiv){jqPasteDiv.find("table").each(function(){jQuery(this).removeAttr("border").removeAttr("cellspacing").removeAttr("cellpadding")});jqPasteDiv.find("td").each(function(){jQuery(this).removeAttr("width").removeAttr("height").removeAttr("valign")})};GENTICS.Aloha.PastePlugin.WordPasteHandler.transformFormattings=function(jqPasteDiv){jqPasteDiv.find("strong,em,s,u").each(function(){if(this.nodeName.toLowerCase()=="strong"){GENTICS.Aloha.Markup.transformDomObject(jQuery(this),"b")}else{if(this.nodeName.toLowerCase()=="em"){GENTICS.Aloha.Markup.transformDomObject(jQuery(this),"i")}else{if(this.nodeName.toLowerCase()=="s"){GENTICS.Aloha.Markup.transformDomObject(jQuery(this),"del")}else{if(this.nodeName.toLowerCase()=="u"){jQuery(this).contents().unwrap()}}}}})};GENTICS.Aloha.PastePlugin.WordPasteHandler.removeComments=function(jqPasteDiv){jqPasteDiv.contents().each(function(){if(this.nodeType==8){jQuery(this).remove()}})};GENTICS.Aloha.PastePlugin.WordPasteHandler.unwrapTags=function(jqPasteDiv){jqPasteDiv.find("span,font,div").each(function(){jQuery(this).contents().unwrap()})};GENTICS.Aloha.PastePlugin.WordPasteHandler.removeStyles=function(jqPasteDiv){jqPasteDiv.find("*").each(function(){jQuery(this).removeAttr("style").removeClass()})};GENTICS.Aloha.PastePlugin.WordPasteHandler.removeNamespacedElements=function(jqPasteDiv){jqPasteDiv.find("*").each(function(){var nsPrefix=this.prefix?this.prefix:(this.scopeName?this.scopeName:undefined);if(nsPrefix&&nsPrefix!="HTML"){jQuery(this).remove()}})};GENTICS.Aloha.PastePlugin.WordPasteHandler.transformWordContent=function(jqPasteDiv){this.transformListsFromWord(jqPasteDiv);this.transformTables(jqPasteDiv);this.transformTitles(jqPasteDiv);this.removeComments(jqPasteDiv);this.unwrapTags(jqPasteDiv);this.removeStyles(jqPasteDiv);this.removeNamespacedElements(jqPasteDiv);this.transformFormattings(jqPasteDiv)};
@@ -0,0 +1 @@
1
+ button.addtoc.tooltip=Inhaltsverzeichnis
@@ -0,0 +1 @@
1
+ button.addtoc.tooltip=Table of contents
@@ -0,0 +1 @@
1
+ (function(){var deps=GENTICS.Aloha.TOC||{jQuery:jQuery},$=deps.jQuery;function last(a){return a[a.length-1]}function head(a){return a[0]}function tail(a){return a.slice(1)}function indexOf(a,item){return detect(a,function(cmp){return cmp===item})}function detect(a,f){for(var i=0;i<a.length;i++){if(f(a[i])){return a[i]}}return null}function map(a,f){var result=[];for(var i=0;i<a.length;i++){result.push(f(a[i]))}return result}function each(a,f){map(a,f)}var namespace="com.gentics.aloha.plugins.TOC";var TOC=GENTICS.Aloha.TOC=new GENTICS.Aloha.Plugin(namespace);GENTICS.Aloha.TOC.languages=["en","de"];var $containers=null;var allTocs=[];TOC.init=function(){var s=TOC.settings;s.updateInterval=s.updateInterval||5000;s.minEntries=s.minEntries||0;TOC.initButtons();$(document).ready(function(){TOC.spawn()})};TOC.initButtons=function(){TOC.insertTocButton=new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_ul",size:"small",onclick:function(){TOC.insertAtSelection($containers)},tooltip:this.i18n("button.addtoc.tooltip"),toggle:false});GENTICS.Aloha.FloatingMenu.addButton("GENTICS.Aloha.continuoustext",this.insertTocButton,GENTICS.Aloha.i18n(GENTICS.Aloha,"floatingmenu.tab.insert"),1)};TOC.register=function($c){$containers=$c};TOC.generateId=function(elemOrText){var validId;if(typeof elemOrText=="object"){validId=$(elemOrText).text().replace(/[^a-zA-Z-]+/g,"-").replace(/^[^a-zA-Z]+/,"")}else{if(elemOrText){validId=elemOrText}}for(var uniquifier=0;;uniquifier++){var uniqueId=validId;if(uniquifier){uniqueId+="-"+uniquifier}var conflict=document.getElementById(uniqueId);if(!conflict||(typeof elemOrText=="object"&&conflict===elemOrText)){return uniqueId}}};TOC.outline=function(ctx){var rootNode=[$()];var potentialParents=[rootNode];TOC.headings(ctx).each(function(){var $heading=$(this);var nodeName=this.nodeName.toLowerCase();var hLevels=["h6","h5","h4","h3","h2","h1"];var currLevel=$.inArray(nodeName,hLevels);var higherEq=hLevels.slice(currLevel).join(",");var $section=$heading.nextUntil(higherEq).andSelf();var node=[$section];var parent=detect(potentialParents,function(parent){var parentSection=parent[0];return !parentSection.length||detect(parentSection,function(sectionElem){return $heading.get(0)===sectionElem||$.contains(sectionElem,$heading.get(0))})});parent.push(node);potentialParents.splice(0,indexOf(potentialParents,parent),node)});return rootNode};TOC.editableContainers=function(){return $(map(GENTICS.Aloha.editables,function(editable){return document.getElementById(editable.getId())}))};TOC.headings=function($ctx){return $ctx.find(":header").add($ctx.filter(":header"))};TOC.anchorFromLinkId=function($ctx,linkId){return linkId?$ctx.find('a[href $= "#'+linkId+'"]'):$()};TOC.linkIdFromAnchor=function($anchor){var href=$anchor.attr("href");return href?href.match(/#(.*?)$/)[1]:null};TOC.insertAtSelection=function($containers){$containers=$containers||TOC.editableContainers();var id=TOC.generateId("toc");var $tocElement=$("<ol class='toc_root'></ol>").attr("id",id).attr("contentEditable","false");var range=GENTICS.Aloha.Selection.getRangeObject();var tocEditable=GENTICS.Aloha.activeEditable;var $tocContainer=$(document.getElementById(tocEditable.getId()));GENTICS.Utils.Dom.insertIntoDOM($tocElement,range,$tocContainer);TOC.create(id).register($containers).update().tickTock()};TOC.spawn=function($ctx,$containers){$ctx=$ctx||$("body");$containers=$containers||TOC.editableContainers();$ctx.find("ol.toc_root").each(function(){var id=$(this).attr("id");if(!id){id=TOC.generateId("toc");$(this).attr("id",id)}TOC.create(id).register($containers).tickTock()})};TOC.create=function(id){allTocs.push(this);return{id:id,"$containers":$(),root:function(){return $(document.getElementById(this.id))},register:function($containers){var self=this;self.$containers=self.$containers.add($containers);self.$containers.filter(function(){return !$(this).data(namespace+"."+self.id+".listening")}).each(function(){var $container=$(this);$container.data(namespace+"."+self.id+".listening",true);$container.bind("blur",function(){self.cleanupIds($container.get(0));self.update($container)})});return self},tickTock:function(interval){var self=this;interval=interval||TOC.settings.updateInterval;if(!interval){return}window.setInterval(function(){self.register(TOC.editableContainers());self.update()},interval);return self},cleanupIds:function(ctx){var ids=[];TOC.headings(this.$containers).each(function(){var id=$(this).attr("id");if((id&&-1!=$.inArray(id,ids))||(ctx&&($.contains(ctx,this)||ctx===this))){$(this).attr("id",TOC.generateId(this))}ids.push(id)});return this},update:function($ctx){var self=this;$ctx=$ctx||self.$containers;var outline=TOC.outline(self.$containers);var ancestors=[self.root()];var prevSiblings=[];last(ancestors).empty();(function descend(outline){var prevSiblings=[];each(outline,function(node){var $section=head(node);var $entry=self.linkSection($section,ancestors,prevSiblings);ancestors.push($entry);descend(tail(node));ancestors.pop();prevSiblings.push($entry)})})(tail(outline));var minEntries=self.root().attr("data-TOC-minEntries")||TOC.settings.minEntries;if(self.root().find("li").length>=minEntries){self.root().show()}else{self.root().hide()}return this},linkSection:function($section,ancestors,prevSiblings){var linkId=$section.eq(0).attr("id");if(!linkId){linkId=TOC.generateId($section.get(0));$section.eq(0).attr("id",linkId)}var $root=this.root();var $entry=TOC.anchorFromLinkId($root,linkId);if(!$entry.length){$entry=$("<li><a/></li>")}$entry.find("a").attr("href","#"+linkId).text($section.eq(0).text());if(last(prevSiblings)){last(prevSiblings).after($entry)}else{if(last(ancestors).get(0)==$root.get(0)){$root.append($entry)}else{var $subToc=$("<ol/>").append($entry);last(ancestors).append($subToc)}}return $entry}}}}());
@@ -0,0 +1,14 @@
1
+ floatingmenu.tab.table=Tabelle
2
+ deleterows.confirm=Wollen Sie die ausgewählten Zeilen wirklich löschen?
3
+ deletecolumns.confirm=Wollen Sie die ausgewählten Spalten wirklich löschen?
4
+ deletetable.confirm=Wollen Sie wirklich die ganze Tabelle löschen?
5
+ Table=Tabelle
6
+ button.createtable.tooltip=Tabelle einfügen
7
+ button.addcolleft.tooltip=Spalte links einfügen
8
+ button.addcolright.tooltip=Spalte rechts einfügen
9
+ button.delcols.tooltip=Spalten löschen
10
+ button.addrowbefore.tooltip=Zeile darüber einfügen
11
+ button.addrowafter.tooltip=Zeile darunter einfügen
12
+ button.delrows.tooltip=Zeilen löschen
13
+ button.caption.tooltip=Tabellen Bezeichnung
14
+ empty.caption=Tabellen Bezeichnung
@@ -0,0 +1,14 @@
1
+ floatingmenu.tab.table=Table
2
+ deleterows.confirm=Do you really want to delete the selected rows?
3
+ deletecolumns.confirm=Do you really want to delete the selected columns?
4
+ deletetable.confirm=Do you really want to delete the table?
5
+ Table=Table
6
+ button.createtable.tooltip=Insert Table
7
+ button.addcolleft.tooltip=Add Column left
8
+ button.addcolright.tooltip=Add Column right
9
+ button.delcols.tooltip=Delete Columns
10
+ button.addrowbefore.tooltip=Add Row before
11
+ button.addrowafter.tooltip=Add Row after
12
+ button.delrows.tooltip=Delete Rows
13
+ button.caption.tooltip=Table caption
14
+ empty.caption=Table caption
@@ -0,0 +1,12 @@
1
+ floatingmenu.tab.table=Tabelo
2
+ deleterows.confirm=�u vi vere volas vi�i la elektitajn vicojn?
3
+ deletecolumns.confirm=�u vi vere volas vi�i la elektitajn kolumnojn?
4
+ deletetable.confirm=�u vi vere volas forvi�i la tabelon?
5
+ Table=Tabelo
6
+ button.createtable.tooltip=Enmeti tabelon
7
+ button.addcolleft.tooltip=Aldoni kolumnon maldekstre
8
+ button.addcolright.tooltip=Aldoni kolumnon dekstre
9
+ button.delcols.tooltip=Forvi�i kolumnojn
10
+ button.addrowbefore.tooltip=Aldoni vicon anta�e
11
+ button.addrowafter.tooltip=Aldoni vicon poste
12
+ button.delrows.tooltip=Forvi�i vicojn
@@ -0,0 +1,12 @@
1
+ floatingmenu.tab.table=Taulukko
2
+ deleterows.confirm=Oletko varma että haluat poistaa valitut rivit?
3
+ deletecolumns.confirm=Oletko varma että haluat poistaa valitut sarakkeet?
4
+ deletetable.confirm=Oletko varma että haluat poistaa taulukon?
5
+ Table=Taulukko
6
+ button.createtable.tooltip=Lisää taulukko
7
+ button.addcolleft.tooltip=Lisää sarake vasemmalle
8
+ button.addcolright.tooltip=Lisää sarake oikealle
9
+ button.delcols.tooltip=Poista sarakkeet
10
+ button.addrowbefore.tooltip=Lisää rivi ennen
11
+ button.addrowafter.tooltip=Lisää rivi jälkeen
12
+ button.delrows.tooltip=Poista rivit
@@ -0,0 +1,12 @@
1
+ floatingmenu.tab.table=Table
2
+ deleterows.confirm=Voulez-vous vraiment supprimer les lignes sélectionnées ?
3
+ deletecolumns.confirm=Voulez-vous vraiment supprimer les colonnes sélectionnées ?
4
+ deletetable.confirm=Voulez-vous vraiment supprimer la table ?
5
+ Table=Tableau
6
+ button.createtable.tooltip=Insérer un tableau
7
+ button.addcolleft.tooltip=Ajouter une colonne à gauche
8
+ button.addcolright.tooltip=Ajouter Colonne à droite
9
+ button.delcols.tooltip=Colonnes Supprimer
10
+ button.addrowbefore.tooltip=Ajouter une ligne avant
11
+ button.addrowafter.tooltip=Ajouter une ligne après
12
+ button.delrows.tooltip=supprimer des lignes
@@ -0,0 +1,12 @@
1
+ floatingmenu.tab.table=Tabella
2
+ deleterows.confirm=Vuoi davvero eliminare le righe selezionate?
3
+ deletecolumns.confirm=Vuoi davvero eliminare le colonne selezionate?
4
+ deletetable.confirm=Vuoi davvero eliminare la tabella?
5
+ Table=Tabella
6
+ button.createtable.tooltip=Crea una nuova tabella
7
+ button.addcolleft.tooltip=Aggiungi una colonna a sinistra
8
+ button.addcolright.tooltip=Aggiungi una colonna a destra
9
+ button.delcols.tooltip=Elimina colonne
10
+ button.addrowbefore.tooltip=Aggiungi una riga prima
11
+ button.addrowafter.tooltip=Aggiungi una riga dopo
12
+ button.delrows.tooltip=Elimina righe
@@ -0,0 +1,12 @@
1
+ floatingmenu.tab.table=Tabela
2
+ deleterows.confirm=Czy na pewno chcesz usunąć zaznaczone wiersze?
3
+ deletecolumns.confirm=Czy na pewno chcesz usunąć zaznaczone kolumny?
4
+ deletetable.confirm=Czy na pewno chcesz usunąć tabelę?
5
+ Table=Tabela
6
+ button.createtable.tooltip=Wstaw tabelę
7
+ button.addcolleft.tooltip=Dodaj kolumnę na lewo
8
+ button.addcolright.tooltip=Dodaj kolumnę na prawo
9
+ button.delcols.tooltip=Usuń kolumny
10
+ button.addrowbefore.tooltip=Dodaj wiersz przed
11
+ button.addrowafter.tooltip=Dodaj wiersz po
12
+ button.delrows.tooltip=Usuń wiersze
@@ -0,0 +1,12 @@
1
+ floatingmenu.tab.table=Таблица
2
+ deleterows.confirm=Вы действительно хотите удалить выбранные строки?
3
+ deletecolumns.confirm=Вы действительно хотите удалить выбранные колонки?
4
+ deletetable.confirm=Вы действительно хотите удалить таблицу?
5
+ Table=Таблица
6
+ button.createtable.tooltip=Вставить Таблицу
7
+ button.addcolleft.tooltip=Добавить колонку слева
8
+ button.addcolright.tooltip=Добавить колонку справа
9
+ button.delcols.tooltip=Удалить Колонки
10
+ button.addrowbefore.tooltip=Удалить пердыдущую строку
11
+ button.addrowafter.tooltip=Удалть следующую строку
12
+ button.delrows.tooltip=Удалить Строки
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Aloha Editor
3
+ * Author & Copyright (c) 2010 Gentics Software GmbH
4
+ * aloha-sales@gentics.com
5
+ * Licensed unter the terms of http://www.aloha-editor.com/license.html
6
+ */
7
+ GENTICS.Aloha.TablePlugin=new GENTICS.Aloha.Plugin("com.gentics.aloha.plugins.Table");GENTICS.Aloha.TablePlugin.createLayer=undefined;GENTICS.Aloha.TablePlugin.languages=["en","de","fr","eo","fi","ru","it","pl"];GENTICS.Aloha.TablePlugin.config=["table"];GENTICS.Aloha.TablePlugin.TableRegistry=new Array();GENTICS.Aloha.TablePlugin.activeTable=undefined;GENTICS.Aloha.TablePlugin.parameters={className:"GENTICS_Aloha_Table",classSelectionRow:"GENTICS_Aloha_Table_selectColumn",classSelectionColumn:"GENTICS_Aloha_Table_selectRow",classLeftUpperCorner:"GENTICS_Aloha_Table_leftUpperCorner",classTableWrapper:"GENTICS_Aloha_Table_wrapper",classCellSelected:"GENTICS_Aloha_Cell_selected",waiRed:"GENTICS_WAI_RED",waiGreen:"GENTICS_WAI_GREEN",selectionArea:10};GENTICS.Aloha.TablePlugin.init=function(){this.createLayer=new GENTICS.Aloha.Table.CreateLayer();var that=this;GENTICS.Aloha.EventRegistry.subscribe(GENTICS.Aloha,"editableCreated",function(event,editable){editable.obj.bind("mousedown",function(jqEvent){GENTICS.Aloha.TablePlugin.setFocusedTable(undefined)});editable.obj.find("table").each(function(){if(that.isEditableTable(this)){var table=new GENTICS.Aloha.Table(this);table.parentEditable=editable;GENTICS.Aloha.TablePlugin.TableRegistry.push(table)}})});this.initTableButtons();GENTICS.Aloha.EventRegistry.subscribe(GENTICS.Aloha,"selectionChanged",function(event,rangeObject){if(GENTICS.Aloha.activeEditable){var config=that.getEditableConfig(GENTICS.Aloha.activeEditable.obj);if(jQuery.inArray("table",config)!=-1&&GENTICS.Aloha.Selection.mayInsertTag("table")){that.createTableButton.show()}else{that.createTableButton.hide()}GENTICS.Aloha.TableHelper.unselectCells();var table=rangeObject.findMarkup(function(){return this.nodeName.toLowerCase()=="table"},GENTICS.Aloha.activeEditable.obj);if(table){GENTICS.Aloha.FloatingMenu.setScope(that.getUID(GENTICS.Aloha.TableHelper.selectionType))}else{if(that.activeTable){that.activeTable.focusOut()}}GENTICS.Aloha.FloatingMenu.doLayout()}});GENTICS.Aloha.EventRegistry.subscribe(GENTICS.Aloha,"editableActivated",function(event,props){props.editable.obj.find("table").each(function(){var tr=GENTICS.Aloha.TablePlugin.TableRegistry;for(var i=0;i<tr.length;i++){if(tr[i].obj.attr("id")==jQuery(this).attr("id")){tr[i].activate();return true}}if(that.isEditableTable(this)){var table=new GENTICS.Aloha.Table(this);table.parentEditable=props.editable;table.activate();GENTICS.Aloha.TablePlugin.TableRegistry.push(table)}})});GENTICS.Aloha.EventRegistry.subscribe(GENTICS.Aloha,"editableDeactivated",function(event,properties){GENTICS.Aloha.TablePlugin.setFocusedTable(undefined);GENTICS.Aloha.TableHelper.unselectCells();var tr=GENTICS.Aloha.TablePlugin.TableRegistry;for(var i=0;i<tr.length;i++){tr[i].deactivate()}})};GENTICS.Aloha.TablePlugin.isEditableTable=function(table){var parent=jQuery(table.parentNode);if(parent.contentEditable()=="true"){return true}else{return false}};GENTICS.Aloha.TablePlugin.initTableButtons=function(){var that=this;GENTICS.Aloha.FloatingMenu.createScope(this.getUID("row"),"GENTICS.Aloha.global");GENTICS.Aloha.FloatingMenu.createScope(this.getUID("column"),"GENTICS.Aloha.global");GENTICS.Aloha.FloatingMenu.createScope(this.getUID("cell"),"GENTICS.Aloha.continuoustext");this.createTableButton=new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_table",size:"small",tooltip:this.i18n("button.createtable.tooltip"),onclick:function(element,event){GENTICS.Aloha.TablePlugin.createDialog(element.btnEl.dom)}});GENTICS.Aloha.FloatingMenu.addButton("GENTICS.Aloha.continuoustext",this.createTableButton,GENTICS.Aloha.i18n(GENTICS.Aloha,"floatingmenu.tab.insert"),1);GENTICS.Aloha.FloatingMenu.addButton(this.getUID("column"),new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_addColumnLeft",size:"small",tooltip:this.i18n("button.addcolleft.tooltip"),onclick:function(){if(that.activeTable){that.activeTable.addColumnsLeft()}}}),GENTICS.Aloha.i18n(this,"floatingmenu.tab.table"),1);GENTICS.Aloha.FloatingMenu.addButton(this.getUID("column"),new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_addColumnRight",size:"small",tooltip:this.i18n("button.addcolright.tooltip"),onclick:function(){if(that.activeTable){that.activeTable.addColumnsRight()}}}),GENTICS.Aloha.i18n(this,"floatingmenu.tab.table"),1);GENTICS.Aloha.FloatingMenu.addButton(this.getUID("column"),new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_deleteColumns",size:"small",tooltip:this.i18n("button.delcols.tooltip"),onclick:function(){if(that.activeTable){var aTable=that.activeTable;GENTICS.Aloha.showMessage(new GENTICS.Aloha.Message({title:GENTICS.Aloha.i18n(that,"Table"),text:GENTICS.Aloha.i18n(that,"deletecolumns.confirm"),type:GENTICS.Aloha.Message.Type.CONFIRM,callback:function(sel){if(sel=="yes"){aTable.deleteColumns()}}}))}}}),GENTICS.Aloha.i18n(this,"floatingmenu.tab.table"),1);GENTICS.Aloha.FloatingMenu.addButton(this.getUID("row"),new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_addRowBefore",size:"small",tooltip:this.i18n("button.addrowbefore.tooltip"),onclick:function(){if(that.activeTable){that.activeTable.addRowsBefore(true)}}}),GENTICS.Aloha.i18n(this,"floatingmenu.tab.table"),1);GENTICS.Aloha.FloatingMenu.addButton(this.getUID("row"),new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_addRowAfter",size:"small",tooltip:this.i18n("button.addrowafter.tooltip"),onclick:function(){if(that.activeTable){that.activeTable.addRowsAfter(true)}}}),GENTICS.Aloha.i18n(this,"floatingmenu.tab.table"),1);GENTICS.Aloha.FloatingMenu.addButton(this.getUID("row"),new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_deleteRows",size:"small",tooltip:this.i18n("button.delrows.tooltip"),onclick:function(){if(that.activeTable){var aTable=that.activeTable;GENTICS.Aloha.showMessage(new GENTICS.Aloha.Message({title:GENTICS.Aloha.i18n(that,"Table"),text:GENTICS.Aloha.i18n(that,"deleterows.confirm"),type:GENTICS.Aloha.Message.Type.CONFIRM,callback:function(sel){if(sel=="yes"){aTable.deleteRows()}}}))}}}),GENTICS.Aloha.i18n(this,"floatingmenu.tab.table"),1);this.captionButton=new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_table_caption",size:"small",tooltip:this.i18n("button.caption.tooltip"),toggle:true,onclick:function(){if(that.activeTable){if(that.activeTable.obj.children("caption").is("caption")){that.activeTable.obj.children("caption").remove()}else{var captionText=that.i18n("empty.caption");var c=jQuery("<caption></caption>");that.activeTable.obj.append(c);that.makeCaptionEditable(c,captionText);var cDiv=c.find("div").eq(0);var captionContent=cDiv.contents().eq(0);if(captionContent.length>0){var newRange=new GENTICS.Utils.RangeObject();newRange.startContainer=newRange.endContainer=captionContent.get(0);newRange.startOffset=0;newRange.endOffset=captionContent.text().length;that.activeTable.obj.find("div.GENTICS_Table_Cell_editable").blur();cDiv.focus();newRange.select();GENTICS.Aloha.Selection.updateSelection()}}}}});GENTICS.Aloha.FloatingMenu.addButton(this.getUID("cell"),this.captionButton,GENTICS.Aloha.i18n(this,"floatingmenu.tab.table"),1);this.summary=new GENTICS.Aloha.ui.AttributeField({width:350});this.summary.addListener("keyup",function(obj,event){that.activeTable.checkWai()});GENTICS.Aloha.FloatingMenu.addButton(this.getUID("cell"),this.summary,GENTICS.Aloha.i18n(this,"floatingmenu.tab.table"),1)};GENTICS.Aloha.TablePlugin.makeCaptionEditable=function(caption,captionText){var that=this;var cSpan=caption.children("div").eq(0);if(cSpan.length==0){cSpan=jQuery("<div></div>");if(caption.contents().length>0){caption.contents().wrap(cSpan)}else{if(captionText){cSpan.text(captionText)}caption.append(cSpan)}}cSpan.contentEditable(true);cSpan.unbind("mousedown");cSpan.bind("mousedown",function(jqEvent){cSpan.focus();jqEvent.preventDefault();jqEvent.stopPropagation();return false})};GENTICS.Aloha.TablePlugin.createDialog=function(callingElement){this.createLayer.set("target",callingElement);this.createLayer.show()};GENTICS.Aloha.TablePlugin.createTable=function(cols,rows){if(GENTICS.Aloha.activeEditable!=null&&typeof GENTICS.Aloha.activeEditable.obj!="undefined"){var table=document.createElement("table");var tableId=table.id=GENTICS.Aloha.TableHelper.getNewTableID();var tbody=document.createElement("tbody");for(var i=0;i<rows;i++){var tr=document.createElement("tr");for(var j=0;j<cols;j++){var text=document.createTextNode("\u00a0");var td=document.createElement("td");td.appendChild(text);tr.appendChild(td)}tbody.appendChild(tr)}table.appendChild(tbody);GENTICS.Utils.Dom.insertIntoDOM(jQuery(table),GENTICS.Aloha.Selection.getRangeObject(),jQuery(GENTICS.Aloha.activeEditable.obj));var tableReloadedFromDOM=document.getElementById(tableId);var tableObj=new GENTICS.Aloha.Table(tableReloadedFromDOM);tableObj.parentEditable=GENTICS.Aloha.activeEditable;tableObj.activate();if(jQuery.browser.msie){window.setTimeout(function(){tableObj.cells[0].wrapper.get(0).focus()},20)}else{tableObj.cells[0].wrapper.get(0).focus()}GENTICS.Aloha.TablePlugin.TableRegistry.push(tableObj)}else{this.error("There is no active Editable where the table can be inserted!")}};GENTICS.Aloha.TablePlugin.setFocusedTable=function(focusTable){var that=this;for(var i=0;i<GENTICS.Aloha.TablePlugin.TableRegistry.length;i++){GENTICS.Aloha.TablePlugin.TableRegistry[i].hasFocus=false}if(typeof focusTable!="undefined"){this.summary.setTargetObject(focusTable.obj,"summary");if(focusTable.obj.children("caption").is("caption")){that.captionButton.setPressed(true);var c=focusTable.obj.children("caption");that.makeCaptionEditable(c)}focusTable.hasFocus=true}GENTICS.Aloha.TablePlugin.activeTable=focusTable};GENTICS.Aloha.TablePlugin.error=function(msg){GENTICS.Aloha.Log.error(this,msg)};GENTICS.Aloha.TablePlugin.debug=function(msg){GENTICS.Aloha.Log.debug(this,msg)};GENTICS.Aloha.TablePlugin.info=function(msg){GENTICS.Aloha.Log.info(this,msg)};GENTICS.Aloha.TablePlugin.log=function(msg){GENTICS.Aloha.log("log",this,msg)};GENTICS.Aloha.TablePlugin.get=function(property){if(this.config[property]){return this.config[property]}if(this.parameters[property]){return this.parameters[property]}return undefined};GENTICS.Aloha.TablePlugin.set=function(key,value){if(this.config[key]){this.config[key]=value}else{this.parameters[key]=value}};GENTICS.Aloha.TablePlugin.makeClean=function(obj){obj.find("table").each(function(){var table=new GENTICS.Aloha.Table(this);table.deactivate()})};GENTICS.Aloha.TablePlugin.toString=function(){return this.prefix};GENTICS.Aloha.Table=function(table){this.obj=jQuery(table);if(!this.obj.attr("id")){this.obj.attr("id",GENTICS.Utils.guid())}var rows=this.obj.find("tr");var firstRow=jQuery(rows.get(0));this.numCols=firstRow.children("td, th").length;this.numRows=rows.length;this.cells=new Array();var rows=this.obj.find("tr");for(var i=0;i<rows.length;i++){var row=jQuery(rows[i]);var cols=row.children();for(var j=0;j<cols.length;j++){var col=cols[j];var Cell=new GENTICS.Aloha.Table.Cell(col,this);this.cells.push(Cell)}}};GENTICS.Aloha.Table.prototype.obj=undefined;GENTICS.Aloha.Table.prototype.tableWrapper=undefined;GENTICS.Aloha.Table.prototype.cells=undefined;GENTICS.Aloha.Table.prototype.numRows=undefined;GENTICS.Aloha.Table.prototype.numCols=undefined;GENTICS.Aloha.Table.prototype.isActive=false;GENTICS.Aloha.Table.prototype.hasFocus=false;GENTICS.Aloha.Table.prototype.parentEditable=undefined;GENTICS.Aloha.Table.prototype.mousedown=false;GENTICS.Aloha.Table.prototype.clickedColumnId=-1;GENTICS.Aloha.Table.prototype.clickedRowId=-1;GENTICS.Aloha.Table.prototype.columnsToSelect=new Array();GENTICS.Aloha.Table.prototype.rowsToSelect=new Array();GENTICS.Aloha.Table.prototype.fmPluginId=undefined;GENTICS.Aloha.Table.prototype.get=function(property){return GENTICS.Aloha.TablePlugin.get(property)};GENTICS.Aloha.Table.prototype.set=function(key,value){GENTICS.Aloha.TablePlugin.set(key,value)};GENTICS.Aloha.Table.prototype.activate=function(){if(this.isActive){return}var that=this;this.obj.addClass(this.get("className"));this.obj.contentEditable(false);if(this.obj.attr("id")==""){this.obj.attr("id",GENTICS.Aloha.TableHelper.getNewTableID())}GENTICS.Aloha.TableHelper.selectionType=undefined;this.obj.bind("keydown",function(jqEvent){if(!jqEvent.ctrlKey&&!jqEvent.shiftKey){if(GENTICS.Aloha.TableHelper.selectedCells.length>0&&GENTICS.Aloha.TableHelper.selectedCells[0].length>0){GENTICS.Aloha.TableHelper.selectedCells[0][0].firstChild.focus()}}});this.obj.bind("mousedown",function(jqEvent){if(!that.hasFocus){that.focus()}jqEvent.stopPropagation();jqEvent.preventDefault();return false});var tableWrapper=jQuery('<div class="'+this.get("classTableWrapper")+'"></div>');tableWrapper.contentEditable(false);this.obj.wrap(tableWrapper);var htmlTableWrapper=this.obj.parents("."+this.get("classTableWrapper"));htmlTableWrapper.get(0).onresizestart=function(e){return false};htmlTableWrapper.get(0).oncontrolselect=function(e){return false};this.tableWrapper=this.obj.parents("."+this.get("classTableWrapper")).get(0);jQuery(this.cells).each(function(){this.activate()});this.attachSelectionColumn();this.attachSelectionRow();this.attachLastCellEvents();this.makeCaptionEditable();this.checkWai();this.isActive=true;GENTICS.Aloha.EventRegistry.trigger(new GENTICS.Aloha.Event("tableActivated",GENTICS.Aloha,[this]))};GENTICS.Aloha.Table.prototype.makeCaptionEditable=function(){var caption=this.obj.find("caption").eq(0);if(caption){GENTICS.Aloha.TablePlugin.makeCaptionEditable(caption)}};GENTICS.Aloha.Table.prototype.checkWai=function(){var w=this.wai;w.removeClass(this.get("waiGreen"));w.removeClass(this.get("waiRed"));if(this.obj[0].summary.length>5){w.addClass(this.get("waiGreen"))}else{w.addClass(this.get("waiRed"))}};GENTICS.Aloha.Table.prototype.attachSelectionColumn=function(){var emptyCell=jQuery("<td>");emptyCell.html("\u00a0");var that=this;var rows=this.obj.context.rows;for(var i=0;i<rows.length;i++){var rowObj=jQuery(rows[i]);var columnToInsert=emptyCell.clone();columnToInsert.addClass(this.get("classSelectionColumn"));columnToInsert.css("width",this.get("selectionArea")+"px");rowObj.find("td:first").before(columnToInsert);var rowIndex=i+1;this.attachRowSelectionEventsToCell(columnToInsert)}};GENTICS.Aloha.Table.prototype.attachRowSelectionEventsToCell=function(cell){var that=this;cell.unbind("mousedown");cell.unbind("mouseover");cell.get(0).onselectstart=function(){return false};cell.bind("mousedown",function(e){that.mousedown=true;return that.rowSelectionMouseDown(e)});cell.bind("mouseover",function(e){if(that.mousedown){return that.rowSelectionMouseOver(e)}})};GENTICS.Aloha.Table.prototype.rowSelectionMouseDown=function(jqEvent){this.focus();if(GENTICS.Aloha.TableHelper.selectedCells.length==0){this.rowsToSelect=new Array()}this.clickedRowId=jqEvent.currentTarget.parentNode.rowIndex;if(jqEvent.metaKey){var arrayIndex=jQuery.inArray(this.clickedRowId,this.rowsToSelect);if(arrayIndex>=0){this.rowsToSelect.splice(arrayIndex,1)}else{this.rowsToSelect.push(this.clickedRowId)}}else{if(jqEvent.shiftKey){this.rowsToSelect.sort(function(a,b){return a-b});var start=this.rowsToSelect[0];var end=this.clickedRowId;if(start>end){start=end;end=this.rowsToSelect[0]}this.rowsToSelect=new Array();for(var i=start;i<=end;i++){this.rowsToSelect.push(i)}}else{this.rowsToSelect=[this.clickedRowId]}}this.selectRows();jqEvent.preventDefault();jqEvent.stopPropagation();return false};GENTICS.Aloha.Table.prototype.rowSelectionMouseOver=function(jqEvent){var rowIndex=jqEvent.currentTarget.parentNode.rowIndex;if(this.mousedown&&this.clickedRowId>=0){var indexInArray=jQuery.inArray(rowIndex,this.rowsToSelect);var start=(rowIndex<this.clickedRowId)?rowIndex:this.clickedRowId;var end=(rowIndex<this.clickedRowId)?this.clickedRowId:rowIndex;this.rowsToSelect=new Array();for(var i=start;i<=end;i++){this.rowsToSelect.push(i)}this.selectRows();jqEvent.preventDefault();jqEvent.stopPropagation();return false}};GENTICS.Aloha.Table.prototype.attachSelectionRow=function(){var that=this;var emptyCell=jQuery("<td>");emptyCell.html("\u00a0");var numColumns=this.obj.context.rows[0].cells.length;var selectionRow=jQuery("<tr>");selectionRow.addClass(this.get("classSelectionRow"));selectionRow.css("height",this.get("selectionArea")+"px");for(var i=0;i<numColumns;i++){var columnToInsert=emptyCell.clone();if(i>0){this.attachColumnSelectEventsToCell(columnToInsert)}else{var columnToInsert=jQuery("<td>").clone();columnToInsert.addClass(this.get("classLeftUpperCorner"));this.wai=jQuery("<div/>");this.wai.width(25);this.wai.height(12);this.wai.click(function(e){that.focus();GENTICS.Aloha.FloatingMenu.userActivatedTab=GENTICS.Aloha.TablePlugin.i18n("floatingmenu.tab.table");GENTICS.Aloha.FloatingMenu.doLayout();GENTICS.Aloha.TablePlugin.summary.focus();e.stopPropagation();e.preventDefault();return false});columnToInsert.append(this.wai)}selectionRow.append(columnToInsert)}jQuery(document).bind("mouseup",function(e){that.mousedown=false;that.clickedColumnId=-1;that.clickedRowId=-1});this.obj.find("tr:first").before(selectionRow)};GENTICS.Aloha.Table.prototype.attachColumnSelectEventsToCell=function(cell){var that=this;cell.unbind("mousedown");cell.unbind("mouseover");cell.get(0).onselectstart=function(){return false};cell.bind("mousedown",function(e){that.mousedown=true;that.columnSelectionMouseDown(e)});cell.bind("mouseover",function(e){if(that.mousedown){that.columnSelectionMouseOver(e)}})};GENTICS.Aloha.Table.prototype.columnSelectionMouseDown=function(jqEvent){this.focus();if(GENTICS.Aloha.TableHelper.selectedCells.length==0){this.columnsToSelect=new Array()}this.clickedColumnId=jqEvent.currentTarget.cellIndex;if(jqEvent.metaKey){var arrayIndex=jQuery.inArray(this.clickedColumnId,this.columnsToSelect);if(arrayIndex>=0){this.columnsToSelect.splice(arrayIndex,1)}else{this.columnsToSelect.push(this.clickedColumnId)}}else{if(jqEvent.shiftKey){this.columnsToSelect.sort(function(a,b){return a-b});var start=this.columnsToSelect[0];var end=this.clickedColumnId;if(start>end){start=end;end=this.columnsToSelect[0]}this.columnsToSelect=new Array();for(var i=start;i<=end;i++){this.columnsToSelect.push(i)}}else{this.columnsToSelect=[this.clickedColumnId]}}this.selectColumns();jqEvent.preventDefault();jqEvent.stopPropagation();return false};GENTICS.Aloha.Table.prototype.columnSelectionMouseOver=function(jqEvent){var colIndex=jqEvent.currentTarget.cellIndex;if(this.mousedown&&this.clickedColumnId>0){var indexInArray=jQuery.inArray(colIndex,this.columnsToSelect);var start=(colIndex<this.clickedColumnId)?colIndex:this.clickedColumnId;var end=(colIndex<this.clickedColumnId)?this.clickedColumnId:colIndex;this.columnsToSelect=new Array();for(var i=start;i<=end;i++){this.columnsToSelect.push(i)}this.selectColumns()}};GENTICS.Aloha.Table.prototype.releaseLastCellEvents=function(){this.obj.find("tr:last td:last").unbind()};GENTICS.Aloha.Table.prototype.attachLastCellEvents=function(){var that=this;this.obj.find("tr:last td:last").bind("keydown",function(jqEvent){that.lastCellKeyDown(jqEvent)})};GENTICS.Aloha.Table.prototype.lastCellKeyDown=function(jqEvent){var KEYCODE_TAB=9;if(KEYCODE_TAB==jqEvent.keyCode&&!jqEvent.altKey&&!jqEvent.shiftKey&&!jqEvent.ctrlKey){this.addRowsAfter(false);jqEvent.stopPropagation();if(jQuery.browser.msie){this.obj.find("tr:last td:nth-child(1) div.GENTICS_Table_Cell_editable").get(0).focus();return false}}};GENTICS.Aloha.Table.prototype.deleteRows=function(){var rowIDs=new Array();var deleteTable=false;if(GENTICS.Aloha.TableHelper.selectedCells.length>0){for(var i=0;i<GENTICS.Aloha.TableHelper.selectedCells.length;i++){rowIDs.push(GENTICS.Aloha.TableHelper.selectedCells[i][0].parentNode.rowIndex)}}else{if(typeof GENTICS.Aloha.Table.Cell.lastActiveCell!="undefined"){rowIDs.push(GENTICS.Aloha.Table.Cell.lastActiveCell.obj.context.parentNode.rowIndex)}}if(rowIDs.length==this.numRows){deleteTable=true}if(deleteTable){var that=this;GENTICS.Aloha.showMessage(new GENTICS.Aloha.Message({title:GENTICS.Aloha.i18n(GENTICS.Aloha.TablePlugin,"Table"),text:GENTICS.Aloha.i18n(GENTICS.Aloha.TablePlugin,"deletetable.confirm"),type:GENTICS.Aloha.Message.Type.CONFIRM,callback:function(sel){if(sel=="yes"){that.deleteTable()}}}))}else{rowIDs.sort(function(a,b){return a-b});var focusRowId=rowIDs[0];if(focusRowId>(this.numRows-rowIDs.length)){focusRowId--}this.releaseLastCellEvents();var rows=this.obj.find("tr");var rows2delete=new Array();for(var i=0;i<rowIDs.length;i++){rows2delete.push(jQuery(rows[rowIDs[i]]))}for(var i=0;i<rows2delete.length;i++){var cols=rows2delete[i].children("td").toArray();for(var j=0;j<cols.length;j++){for(var m=0;m<this.cells.length;m++){if(cols[j]==this.cells[m].obj.get(0)){this.cells.splice(m,1);m=this.cells.length}}}}for(var i=0;i<rows2delete.length;i++){rows2delete[i].remove()}this.numRows-=rows2delete.length;if(jQuery.browser.msie){setTimeout(this.obj.find("tr:nth-child("+(focusRowId+1)+") td:nth-child(2) div.GENTICS_Table_Cell_editable").get(0).focus,5)}else{this.obj.find("tr:nth-child("+(focusRowId+1)+") td:nth-child(2) div.GENTICS_Table_Cell_editable").get(0).focus()}this.attachLastCellEvents();GENTICS.Aloha.TableHelper.unselectCells()}};GENTICS.Aloha.Table.prototype.deleteColumns=function(){var colIDs=new Array();var deleteTable=false;if(GENTICS.Aloha.TableHelper.selectedCells.length>0){for(var i=0;i<GENTICS.Aloha.TableHelper.selectedCells[0].length;i++){colIDs.push(GENTICS.Aloha.TableHelper.selectedCells[0][i].cellIndex)}}else{if(typeof GENTICS.Aloha.Table.Cell.lastActiveCell!="undefined"){colIDs.push(GENTICS.Aloha.Table.Cell.lastActiveCell.obj.context.cellIndex)}}if(colIDs.length==this.numCols){deleteTable=true}if(deleteTable){var that=this;GENTICS.Aloha.showMessage(new GENTICS.Aloha.Message({title:GENTICS.Aloha.i18n(GENTICS.Aloha.TablePlugin,"Table"),text:GENTICS.Aloha.i18n(GENTICS.Aloha.TablePlugin,"deletetable.confirm"),type:GENTICS.Aloha.Message.Type.CONFIRM,callback:function(sel){if(sel=="yes"){that.deleteTable()}}}))}else{colIDs.sort(function(a,b){return a-b});var focusColID=colIDs[0];if(focusColID>(this.numCols-colIDs.length)){focusColID--}this.releaseLastCellEvents();var rows=this.obj.find("tr");var cols2delete=new Array();for(var i=0;i<rows.length;i++){var cells=jQuery(rows[i]).children("td").toArray();for(var j=0;j<colIDs.length;j++){cols2delete.push(cells[colIDs[j]])}}for(var i=0;i<cols2delete.length;i++){for(var j=0;j<this.cells.length;j++){if(cols2delete[i]==this.cells[j].obj.get(0)){this.cells.splice(j,1);j=this.cells.length}}}for(var i=0;i<cols2delete.length;i++){jQuery(cols2delete[i]).remove()}this.numCols-=colIDs.length;if(jQuery.browser.msie){setTimeout(this.obj.find("tr:nth-child(2) td:nth-child("+(focusColID+1)+") div.GENTICS_Table_Cell_editable").get(0).focus,5)}else{this.obj.find("tr:nth-child(2) td:nth-child("+(focusColID+1)+") div.GENTICS_Table_Cell_editable").get(0).focus()}this.attachLastCellEvents();GENTICS.Aloha.TableHelper.unselectCells()}};GENTICS.Aloha.Table.prototype.deleteTable=function(){var deleteIndex=-1;for(var i=0;i<GENTICS.Aloha.TablePlugin.TableRegistry.length;i++){if(GENTICS.Aloha.TablePlugin.TableRegistry[i].obj.attr("id")==this.obj.attr("id")){deleteIndex=i;break}}if(deleteIndex>=0){this.deactivate();GENTICS.Aloha.TableHelper.selectionType=undefined;GENTICS.Aloha.TablePlugin.TableRegistry.splice(i,1);var newRange=GENTICS.Aloha.Selection.rangeObject;newRange.startContainer=newRange.endContainer=this.obj.get(0).parentNode;newRange.startOffset=newRange.endOffset=GENTICS.Utils.Dom.getIndexInParent(this.obj.get(0).parentNode);newRange.clearCaches();this.obj.remove();this.parentEditable.obj.focus();newRange.correctRange();newRange.select()}};GENTICS.Aloha.Table.prototype.addRowsBefore=function(highlightNewRows){this.addRows("before",highlightNewRows)};GENTICS.Aloha.Table.prototype.addRowsAfter=function(highlightNewRows){this.addRows("after",highlightNewRows)};GENTICS.Aloha.Table.prototype.addRows=function(position,highlightNewRows){if(typeof GENTICS.Aloha.TablePlugin.activeTable!="undefined"){this.releaseLastCellEvents();var that=this;var numCols=this.numCols;var rowsToInsert=1;var rowId=1;if(GENTICS.Aloha.TableHelper.selectedCells.length>0){rowsToInsert=GENTICS.Aloha.TableHelper.selectedCells.length;switch(position){case"before":if(GENTICS.Aloha.TableHelper.selectedCells[0].length){rowId=GENTICS.Aloha.TableHelper.selectedCells[0][0].parentNode.rowIndex}break;case"after":var lastRow=GENTICS.Aloha.TableHelper.selectedCells.length-1;if(GENTICS.Aloha.TableHelper.selectedCells[lastRow].length){rowId=GENTICS.Aloha.TableHelper.selectedCells[lastRow][0].parentNode.rowIndex}break}}else{if(typeof GENTICS.Aloha.Table.Cell.lastActiveCell!="undefined"){rowId=GENTICS.Aloha.Table.Cell.lastActiveCell.obj.context.parentNode.rowIndex}}var newRowIndex=rowId;if(position=="after"){newRowIndex+=1}var rowIdArray=new Array();for(var j=0;j<rowsToInsert;j++){rowIdArray.push(newRowIndex);var insertionRow=jQuery("<tr>");var selectionColumn=jQuery("<td>");selectionColumn.addClass(this.get("classSelectionColumn"));this.attachRowSelectionEventsToCell(selectionColumn);insertionRow.append(selectionColumn);for(i=0;i<numCols;i++){var newCol=jQuery("<td>");newCol.html("\u00a0");var cell=new GENTICS.Aloha.Table.Cell(newCol.get(0),GENTICS.Aloha.TablePlugin.activeTable);cell.activate();this.cells.push(cell);insertionRow.append(cell.obj)}var currentRow=jQuery(GENTICS.Aloha.TablePlugin.activeTable.obj.find("tr").get(rowId));switch(position){case"before":currentRow.before(insertionRow);break;case"after":currentRow.after(insertionRow);break;default:this.warn(this,"Wrong call of GENTICS.Aloha.Table.prototype.addRow!")}newRowIndex++;this.numRows++}GENTICS.Aloha.TableHelper.unselectCells();this.rowsToSelect=rowIdArray;if(highlightNewRows){this.selectRows()}this.attachLastCellEvents()}};GENTICS.Aloha.Table.prototype.addColumnsRight=function(){this.addColumns("right")};GENTICS.Aloha.Table.prototype.addColumnsLeft=function(){this.addColumns("left")};GENTICS.Aloha.Table.prototype.addColumns=function(position){if(typeof GENTICS.Aloha.TablePlugin.activeTable!="undefined"){this.releaseLastCellEvents();var that=this;var columnsToInsert=1;var colId=1;if(GENTICS.Aloha.TableHelper.selectedCells.length>0){columnsToInsert=GENTICS.Aloha.TableHelper.selectedCells[0].length;switch(position){case"left":if(GENTICS.Aloha.TableHelper.selectedCells[0].length){colId=GENTICS.Aloha.TableHelper.selectedCells[0][0].cellIndex}break;case"right":var lastColumn=GENTICS.Aloha.TableHelper.selectedCells[0].length-1;if(GENTICS.Aloha.TableHelper.selectedCells[0].length){colId=GENTICS.Aloha.TableHelper.selectedCells[0][lastColumn].cellIndex}break}}else{if(typeof GENTICS.Aloha.Table.Cell.lastActiveCell!="undefined"){colId=GENTICS.Aloha.Table.Cell.lastActiveCell.obj.context.cellIndex}}var newColId=colId;var emptyCell=jQuery("<td>");var rows=this.obj.find("tr");var colIdArray=new Array();for(var i=0;i<rows.length;i++){var currentColId=newColId;var row=rows[i];for(var j=0;j<columnsToInsert;j++){var cell=emptyCell.clone();cell.html("\u00a0");if(i==0){this.attachColumnSelectEventsToCell(cell)}else{cellObj=new GENTICS.Aloha.Table.Cell(cell.get(0),GENTICS.Aloha.TablePlugin.activeTable);this.cells.push(cellObj);cellObj.activate();cell=cellObj.obj}var insertionColumn=jQuery(jQuery(row).find("td").get(newColId));switch(position){case"left":if(jQuery.inArray(currentColId,colIdArray)<0){colIdArray.push(currentColId)}insertionColumn.before(cell);break;case"right":if(jQuery.inArray((currentColId+1),colIdArray)<0){colIdArray.push(currentColId+1)}insertionColumn.after(cell);break}currentColId++}}this.numCols+=columnsToInsert;GENTICS.Aloha.TableHelper.unselectCells();this.columnsToSelect=colIdArray;this.selectColumns();this.attachLastCellEvents()}};GENTICS.Aloha.Table.prototype.focus=function(){if(!this.hasFocus){if(!this.parentEditable.isActive){this.parentEditable.obj.focus()}GENTICS.Aloha.TablePlugin.setFocusedTable(this)}};GENTICS.Aloha.Table.prototype.focusOut=function(){if(this.hasFocus){GENTICS.Aloha.TablePlugin.setFocusedTable(undefined);GENTICS.Aloha.TableHelper.selectionType=undefined}};GENTICS.Aloha.Table.prototype.selectColumns=function(){var selectClass=this.get("classCellSelected");GENTICS.Aloha.TableHelper.unselectCells();GENTICS.Aloha.TableHelper.selectionType="column";GENTICS.Aloha.FloatingMenu.setScope(GENTICS.Aloha.TablePlugin.getUID("column"));this.columnsToSelect.sort(function(a,b){return a-b});var rows=this.obj.find("tr").toArray();rows.shift();var toSelect=new Array();for(var i=0;i<rows.length;i++){var rowCells=rows[i].cells;var selectedCellsInCol=new Array();for(var j=0;j<this.columnsToSelect.length;j++){var colIndex=this.columnsToSelect[j];var cell=rowCells[colIndex];toSelect.push(cell);selectedCellsInCol.push(cell)}GENTICS.Aloha.TableHelper.selectedCells.push(selectedCellsInCol)}this.obj.find("div.GENTICS_Table_Cell_editable").blur();jQuery(toSelect).addClass(selectClass)};GENTICS.Aloha.Table.prototype.selectRows=function(){var selectClass=this.get("classCellSelected");GENTICS.Aloha.TableHelper.unselectCells();this.rowsToSelect.sort(function(a,b){return a-b});for(var i=0;i<this.rowsToSelect.length;i++){var rowId=this.rowsToSelect[i];var rowCells=jQuery(this.obj.find("tr").get(rowId).cells).toArray();rowCells.shift();GENTICS.Aloha.TableHelper.selectedCells.push(rowCells);jQuery(rowCells).addClass(this.get("classCellSelected"))}GENTICS.Aloha.TableHelper.selectionType="row";GENTICS.Aloha.FloatingMenu.setScope(GENTICS.Aloha.TablePlugin.getUID("row"));this.obj.find("div.GENTICS_Table_Cell_editable").blur()};GENTICS.Aloha.Table.prototype.deactivate=function(){this.obj.removeClass(this.get("className"));if(GENTICS.Aloha.trim(this.obj.attr("class"))==""){this.obj.removeAttr("class")}if(this.obj.parents("."+this.get("classTableWrapper")).length){this.obj.unwrap()}this.obj.find("tr."+this.get("classSelectionRow")+":first").remove();var that=this;jQuery.each(this.obj.context.rows,function(){jQuery(this).children("td."+that.get("classSelectionColumn")).remove()});this.obj.find("td, th").removeClass(this.get("classCellSelected"));this.obj.unbind();for(var i=0;i<this.cells.length;i++){var Cell=this.cells[i];Cell.deactivate()}this.obj.find("caption div").each(function(){jQuery(this).contents().unwrap()});this.isActive=false};GENTICS.Aloha.Table.prototype.toString=function(){return"GENTICS.Aloha.Table"};GENTICS.Aloha.Table.Cell=function(originalTd,tableObj){this.obj=jQuery(originalTd);this.tableObj=tableObj};GENTICS.Aloha.Table.Cell.prototype.tableObj=undefined;GENTICS.Aloha.Table.Cell.prototype.obj=undefined;GENTICS.Aloha.Table.Cell.prototype.wrapper=undefined;GENTICS.Aloha.Table.Cell.prototype.hasFocus=false;GENTICS.Aloha.Table.Cell.activeCell=undefined;GENTICS.Aloha.Table.Cell.lastActiveCell=undefined;GENTICS.Aloha.Table.Cell.prototype.editableFocus=function(e){if(!this.hasFocus){this.tableObj.focus();GENTICS.Aloha.Table.Cell.activeCell=this;GENTICS.Aloha.Table.Cell.lastActiveCell=this;this.obj.addClass("GENTICS_Table_Cell_active");this.hasFocus=true;this.selectAll(this.wrapper.get(0));GENTICS.Aloha.TableHelper.selectionType="cell"}};GENTICS.Aloha.Table.Cell.prototype.editableBlur=function(jqEvent){GENTICS.Aloha.Table.Cell.activeCell=undefined;this.hasFocus=false;this.obj.removeClass("GENTICS_Table_Cell_active")};GENTICS.Aloha.Table.Cell.prototype.activate=function(){this.obj.wrapInner("<div/>");var wrapper=this.obj.children("div").eq(0);wrapper.contentEditable(true);wrapper.addClass("GENTICS_Table_Cell_editable");var that=this;wrapper.bind("focus",function(jqEvent){if(jqEvent.currentTarget){jqEvent.currentTarget.indexOf=function(){return -1}}that.editableFocus(jqEvent)});wrapper.bind("mousedown",function(jqEvent){if(jqEvent.currentTarget){jqEvent.currentTarget.indexOf=function(){return -1}}that.editableMouseDown(jqEvent)});wrapper.bind("blur",function(jqEvent){that.editableBlur(jqEvent)});wrapper.bind("keyup",function(jqEvent){that.editableKeyUp(jqEvent)});wrapper.bind("keydown",function(jqEvent){that.editableKeyDown(jqEvent)});wrapper.GENTICS_contentEditableSelectionChange(function(event){GENTICS.Aloha.Selection.onChange(wrapper,event);return wrapper});this.obj.bind("mousedown",function(jqEvent){setTimeout(function(){that.wrapper.trigger("focus")},1);GENTICS.Aloha.TableHelper.unselectCells();jqEvent.stopPropagation()});this.obj.get(0).onselectstart=function(jqEvent){return false};this.wrapper=this.obj.children();this.wrapper.get(0).onselectstart=function(){window.event.cancelBubble=true};return this};GENTICS.Aloha.Table.Cell.prototype.deactivate=function(){var wrapper=this.obj.children(".GENTICS_Table_Cell_editable");if(wrapper.length){var innerHtml=wrapper.html();wrapper.unbind();wrapper.remove();this.obj.unbind("click");if(GENTICS.Aloha.trim(this.obj.attr("class"))==""){this.obj.removeAttr("class")}this.obj.html(innerHtml)}};GENTICS.Aloha.Table.Cell.prototype.toString=function(){return"GENTICS.Aloha.Table.Cell"};GENTICS.Aloha.Table.Cell.prototype.selectAll=function(editableNode){var e=(editableNode.jquery)?editableNode.get(0):editableNode;if(!jQuery.browser.msie){var s=window.getSelection();if(s.setBaseAndExtent){s.setBaseAndExtent(e,0,e,e.innerText.length-1)}else{if(window.opera&&e.innerHTML.substring(e.innerHTML.length-4)=="<BR>"){e.innerHTML=e.innerHTML+"&#160;"}var r=document.createRange();r.selectNodeContents(e);s.removeAllRanges();s.addRange(r)}}else{if(document.getSelection){var s=document.getSelection();var r=document.createRange();r.selectNodeContents(e);s.removeAllRanges();s.addRange(r)}else{if(document.selection){var r=document.body.createTextRange();r.moveToElementText(e);r.select()}}}GENTICS.Aloha.Selection.updateSelection(editableNode)};GENTICS.Aloha.Table.Cell.prototype.editableMouseDown=function(jqEvent){GENTICS.Aloha.TableHelper.unselectCells();if(this.tableObj.hasFocus){jqEvent.stopPropagation()}};GENTICS.Aloha.Table.Cell.prototype.editableKeyUp=function(jqEvent){this.checkForEmptyEvent(jqEvent)};GENTICS.Aloha.Table.Cell.prototype.editableKeyDown=function(jqEvent){this.checkForEmptyEvent(jqEvent);if(!jqEvent.ctrlKey&&!jqEvent.shiftKey){if(GENTICS.Aloha.TableHelper.selectedCells.length>0&&GENTICS.Aloha.TableHelper.selectedCells[0].length>0){GENTICS.Aloha.TableHelper.selectedCells[0][0].firstChild.focus();GENTICS.Aloha.TableHelper.unselectCells();jqEvent.stopPropagation()}}else{if(jqEvent.shiftKey&&GENTICS.Aloha.TableHelper.selectedCells.length>0){var KEYCODE_ARROWLEFT=37;var KEYCODE_ARROWUP=38;var KEYCODE_ARROWRIGHT=39;var KEYCODE_ARROWDOWN=40;switch(GENTICS.Aloha.TableHelper.selectionType){case"row":switch(jqEvent.keyCode){case KEYCODE_ARROWUP:var firstSelectedRow=GENTICS.Aloha.TableHelper.selectedCells[0][0].parentNode.rowIndex;if(firstSelectedRow>1){this.tableObj.rowsToSelect.push(firstSelectedRow-1)}break;case KEYCODE_ARROWDOWN:var lastRowIndex=GENTICS.Aloha.TableHelper.selectedCells.length-1;var lastSelectedRow=GENTICS.Aloha.TableHelper.selectedCells[lastRowIndex][0].parentNode.rowIndex;if(lastSelectedRow<this.tableObj.numRows){this.tableObj.rowsToSelect.push(lastSelectedRow+1)}break}this.tableObj.selectRows();break;case"column":switch(jqEvent.keyCode){case KEYCODE_ARROWLEFT:var firstColSelected=GENTICS.Aloha.TableHelper.selectedCells[0][0].cellIndex;if(firstColSelected>1){this.tableObj.columnsToSelect.push(firstColSelected-1)}break;case KEYCODE_ARROWRIGHT:var lastColIndex=GENTICS.Aloha.TableHelper.selectedCells[0].length-1;var lastColSelected=GENTICS.Aloha.TableHelper.selectedCells[0][lastColIndex].cellIndex;if(lastColSelected<this.tableObj.numCols){this.tableObj.columnsToSelect.push(lastColSelected+1)}break}this.tableObj.selectColumns();break}jqEvent.stopPropagation();jqEvent.preventDefault();return false}}};GENTICS.Aloha.Table.Cell.prototype.checkForEmptyEvent=function(jqEvent){if(jQuery(this.wrapper).children().length>0){return}var text=this.wrapper.text();if(text==""){this.wrapper.text("\u00a0");this.wrapper.get(0).blur();this.wrapper.get(0).focus()}};GENTICS.Aloha.Table.CreateLayer=function(){};GENTICS.Aloha.Table.CreateLayer.prototype.parameters={elemId:"GENTICS_Aloha_Table_createLayer",className:"GENTICS_Table_Createdialog",numX:10,numY:10,layer:undefined,target:undefined};GENTICS.Aloha.Table.CreateLayer.prototype.config=new Object();GENTICS.Aloha.Table.CreateLayer.prototype.visible=false;GENTICS.Aloha.Table.CreateLayer.prototype.show=function(){var layer=this.get("layer");if(layer==null){this.create()}else{this.setPosition(layer);layer.find("td").removeClass("hover");layer.show()}this.visible=true};GENTICS.Aloha.Table.CreateLayer.prototype.create=function(){var that=this;var layer=jQuery("<div></div>");layer.id=this.get("elemId");layer.addClass(this.get("className"));var table=jQuery("<table></table>");table.css("width",(this.get("numX")+6)*15);var tr;var td;for(var i=0;i<this.get("numY");i++){tr=jQuery("<tr></tr>");for(var j=0;j<this.get("numX");j++){td=jQuery("<td>\u00a0</td>");if(i==0&&j==0){td.addClass("hover")}td.bind("mouseover",{rowId:i,colId:j},function(e){that.handleMouseOver(e,table)});td.bind("click",{rowId:i,colId:j},function(e){var rows=e.data.rowId+1;var cols=e.data.colId+1;GENTICS.Aloha.TablePlugin.createTable(cols,rows);that.hide()});tr.append(td)}table.append(tr)}layer.append(table);this.set("layer",layer);this.setPosition();layer.bind("click",function(e){e.stopPropagation()}).mousedown(function(e){e.stopPropagation()});jQuery("body").append(layer).bind("click",function(e){if(e.target!=that.get("target")&&that.visible){that.hide()}})};GENTICS.Aloha.Table.CreateLayer.prototype.handleMouseOver=function(e,table){var rowId=e.data.rowId;var colId=e.data.colId;var innerRows=table.find("tr");for(var n=0;n<=innerRows.length;n++){var innerCells=jQuery(innerRows[n]).find("td");for(var k=0;k<=innerCells.length;k++){if(n<=rowId&&k<=colId){jQuery(innerCells[k]).addClass("hover")}else{jQuery(innerCells[k]).removeClass("hover")}}}};GENTICS.Aloha.Table.CreateLayer.prototype.setPosition=function(){var targetObj=jQuery(this.get("target"));var pos=targetObj.offset();this.get("layer").css("left",pos.left+"px");this.get("layer").css("top",(pos.top+targetObj.height())+"px")};GENTICS.Aloha.Table.CreateLayer.prototype.hide=function(){this.get("layer").hide();this.visible=false};GENTICS.Aloha.Table.CreateLayer.prototype.get=function(property){if(this.config[property]){return this.config[property]}if(this.parameters[property]){return this.parameters[property]}return undefined};GENTICS.Aloha.Table.CreateLayer.prototype.set=function(key,value){if(this.config[key]){this.config[key]=value}else{this.parameters[key]=value}};GENTICS.Aloha.TableHelper=function(){};GENTICS.Aloha.TableHelper.prototype.selectionType=undefined;GENTICS.Aloha.TableHelper.prototype.selectedCells=new Array();GENTICS.Aloha.TableHelper.prototype.unselectCells=function(){if(this.selectedCells.length>0){for(var i=0;i<this.selectedCells.length;i++){jQuery(this.selectedCells[i]).removeClass(GENTICS.Aloha.TablePlugin.get("classCellSelected"))}this.selectedCells=new Array();this.selectionType=undefined}};GENTICS.Aloha.TableHelper.prototype.getNewTableID=function(){var idPrefix="GENTICS_Table_";var factor=1000000;for(this.tableCounter;true;this.tableCounter++){var id=idPrefix+(Math.ceil(Math.random()*factor));for(var j=id.length;j<idPrefix.length+factor.toString().length;j++){id+="0"}if(!jQuery("#"+id).length){return id}}};GENTICS.Aloha.TableHelper=new GENTICS.Aloha.TableHelper();
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Hide the border for contenteditables
3
+ */
4
+ .GENTICS_Table_Cell_editable,
5
+ .GENTICS_Aloha_Table_wrapper {
6
+ outline: 0px solid transparent;
7
+ }
8
+
9
+ /* :TODO: make custom cursors visible in IE */
10
+ .GENTICS_Aloha_Table tr.GENTICS_Aloha_Table_selectColumn td.GENTICS_Aloha_Table_leftUpperCorner,
11
+ .GENTICS_Aloha_Table tr.GENTICS_Aloha_Table_selectColumn td.GENTICS_Aloha_Table_leftUpperCorner:hover {
12
+ cursor: default;
13
+ background-color: transparent;
14
+ }
15
+
16
+ tr.GENTICS_Aloha_Table_selectColumn td,
17
+ td.GENTICS_Aloha_Table_selectRow {
18
+ visibility: hidden;
19
+ }
20
+
21
+ .GENTICS_editable_active tr.GENTICS_Aloha_Table_selectColumn td,
22
+ .GENTICS_editable_active td.GENTICS_Aloha_Table_selectRow {
23
+ visibility: visible;
24
+ }
25
+
26
+ .GENTICS_Aloha_Table tr.GENTICS_Aloha_Table_selectColumn {
27
+ height: 10px;
28
+ }
29
+
30
+ .GENTICS_Aloha_Table td .GENTICS_Table_Cell_editable {
31
+ cursor: text !important;
32
+ }
33
+
34
+ .GENTICS_Aloha_Table tr.GENTICS_Aloha_Table_selectColumn td {
35
+ cursor: url(down.cur),default;
36
+ }
37
+
38
+ /* :TODO: make custom cursors visible in IE */
39
+ .GENTICS_Aloha_Table td.GENTICS_Aloha_Table_selectRow {
40
+ cursor: url(left.cur),default;
41
+ }
42
+
43
+ .GENTICS_WAI_RED {
44
+ background-image: url(wai_red.png);
45
+ }
46
+
47
+ .GENTICS_WAI_GREEN {
48
+ background-image: url(wai_green.png);
49
+ }
50
+
51
+ .GENTICS_Aloha_Table td.GENTICS_Aloha_Table_leftUpperCorner div {
52
+ cursor: pointer !important;
53
+ }
54
+
55
+ .GENTICS_Aloha_Table td.GENTICS_Aloha_Table_selectRow,
56
+ .GENTICS_Aloha_Table tr.GENTICS_Aloha_Table_selectColumn td {
57
+ border: 0;
58
+ margin:0;
59
+ padding:0;
60
+ background-color: #D0D0D0;
61
+ font-size: 0.01em;
62
+ }
63
+
64
+ .GENTICS_Aloha_Table td.GENTICS_Aloha_Table_selectRow:hover,
65
+ .GENTICS_Aloha_Table tr.GENTICS_Aloha_Table_selectColumn td:hover {
66
+ background-color: #C0C0C0;
67
+ }
68
+
69
+ /**
70
+ * Create dialog
71
+ */
72
+ .GENTICS_Table_Createdialog {
73
+ z-index: 99999;
74
+ position: absolute;
75
+ background-color: #F0F0F0;
76
+ border: 1px solid #cccccc;
77
+ -moz-border-radius: 2px;
78
+ -webkit-border-radius: 2px;
79
+ border-radius: 2px;
80
+ }
81
+ .GENTICS_Table_Createdialog table {
82
+ padding: 0px;
83
+ margin: 0px;
84
+ }
85
+ .GENTICS_Table_Createdialog table td {
86
+ margin: 0px;
87
+ padding: 0px;
88
+ border: 1px solid #AFAFAF;
89
+ font-size: 8px;
90
+ width: 15px;
91
+ height: 15px;
92
+ }
93
+ .GENTICS_Table_Createdialog table td.hover {
94
+ background-color: #1c94c4;
95
+ }
96
+ .GENTICS_Table_Createdialog #table-size-info {
97
+ text-align: center;
98
+ font-size: 0.8em;
99
+ }
100
+ .GENTICS_Aloha_Cell_selected {
101
+ background-color: #3399FF !important;
102
+ color: #FFF;
103
+ }
104
+ div.GENTICS_Table_Cell_editable {
105
+ height: 100%;
106
+ min-height: 100%;
107
+ width: 100%;
108
+ z-index: 99999;
109
+ }
110
+ button.GENTICS_button_table_caption {
111
+ background-position: -320px 0px !important;
112
+ }
@@ -0,0 +1,3 @@
1
+
2
+ var GENTICS_Aloha_base = '/assets/aloha/';
3
+
@@ -0,0 +1,3 @@
1
+ $ ->
2
+ $('[contenteditable]').aloha()
3
+