Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

first commit

  • Loading branch information...
commit 6ceb0ea0af3ab2097b160e5625741c0e3e972083 0 parents
did authored
Showing with 220,758 additions and 0 deletions.
  1. +8 −0 .gitignore
  2. +18 −0 LICENSE
  3. +44 −0 README.md
  4. +57 −0 Rakefile
  5. +3 −0  assets/integration/aloha.css
  6. +2 −0  assets/integration/aloha.js
  7. +1 −0  assets/integration/aloha/preinit.js.erb
  8. +44 −0 assets/vendor/aloha/css/aloha-core.css
  9. +284 −0 assets/vendor/aloha/css/aloha-sidebar.css
  10. +7,774 −0 assets/vendor/aloha/css/aloha.css
  11. +33 −0 assets/vendor/aloha/css/ext-aloha-reset.css
  12. +357 −0 assets/vendor/aloha/css/ext-aloha.css
  13. BIN  assets/vendor/aloha/img/arrow-down.png
  14. BIN  assets/vendor/aloha/img/arrow-left.png
  15. BIN  assets/vendor/aloha/img/arrow.png
  16. BIN  assets/vendor/aloha/img/base-big.png
  17. BIN  assets/vendor/aloha/img/base-multi.png
  18. BIN  assets/vendor/aloha/img/base.png
  19. BIN  assets/vendor/aloha/img/bg.png
  20. BIN  assets/vendor/aloha/img/breadcrumb-divider.png
  21. BIN  assets/vendor/aloha/img/fade-in.png
  22. BIN  assets/vendor/aloha/img/fade-out.png
  23. BIN  assets/vendor/aloha/img/gentics-logo.png
  24. BIN  assets/vendor/aloha/img/grabhandle.png
  25. BIN  assets/vendor/aloha/img/maximize.png
  26. BIN  assets/vendor/aloha/img/multisplit-base.jpg
  27. BIN  assets/vendor/aloha/img/multisplit-close.gif
  28. BIN  assets/vendor/aloha/img/multisplit-open.gif
  29. BIN  assets/vendor/aloha/img/pin.png
  30. BIN  assets/vendor/aloha/img/removeformat.png
  31. BIN  assets/vendor/aloha/img/text_indent.png
  32. BIN  assets/vendor/aloha/img/text_indent_remove.png
  33. +27,645 −0 assets/vendor/aloha/lib/aloha-bootstrap.js
  34. +88,750 −0 assets/vendor/aloha/lib/aloha.js
  35. +246 −0 assets/vendor/aloha/lib/aloha/command.js
  36. +330 −0 assets/vendor/aloha/lib/aloha/console.js
  37. +65 −0 assets/vendor/aloha/lib/aloha/contenthandlermanager.js
  38. +560 −0 assets/vendor/aloha/lib/aloha/core.js
  39. +194 −0 assets/vendor/aloha/lib/aloha/ecma5.js
  40. +280 −0 assets/vendor/aloha/lib/aloha/ecma5shims.js
  41. +854 −0 assets/vendor/aloha/lib/aloha/editable.js
  42. +8,306 −0 assets/vendor/aloha/lib/aloha/engine.js
  43. +86 −0 assets/vendor/aloha/lib/aloha/ext-alohaproxy.js
  44. +50 −0 assets/vendor/aloha/lib/aloha/ext-alohareader.js
  45. +77 −0 assets/vendor/aloha/lib/aloha/ext-alohatreeloader.js
  46. +32 −0 assets/vendor/aloha/lib/aloha/ext.js
  47. +1,304 −0 assets/vendor/aloha/lib/aloha/floatingmenu.js
  48. +546 −0 assets/vendor/aloha/lib/aloha/ierange-m2.js
  49. +324 −0 assets/vendor/aloha/lib/aloha/jquery.aloha.js
  50. +24 −0 assets/vendor/aloha/lib/aloha/jquery.js
  51. +115 −0 assets/vendor/aloha/lib/aloha/jquery.patch.js
  52. +977 −0 assets/vendor/aloha/lib/aloha/markup.js
  53. +115 −0 assets/vendor/aloha/lib/aloha/message.js
  54. +10 −0 assets/vendor/aloha/lib/aloha/nls/de/i18n.js
  55. +20 −0 assets/vendor/aloha/lib/aloha/nls/i18n.js
  56. +106 −0 assets/vendor/aloha/lib/aloha/observable.js
  57. +276 −0 assets/vendor/aloha/lib/aloha/plugin.js
  58. +146 −0 assets/vendor/aloha/lib/aloha/pluginmanager.js
  59. +3,242 −0 assets/vendor/aloha/lib/aloha/rangy-core.js
  60. +59 −0 assets/vendor/aloha/lib/aloha/registry.js
  61. +241 −0 assets/vendor/aloha/lib/aloha/repository.js
  62. +570 −0 assets/vendor/aloha/lib/aloha/repositorymanager.js
  63. +146 −0 assets/vendor/aloha/lib/aloha/repositoryobjects.js
  64. +2,083 −0 assets/vendor/aloha/lib/aloha/selection.js
  65. +1,133 −0 assets/vendor/aloha/lib/aloha/sidebar.js
  66. +530 −0 assets/vendor/aloha/lib/aloha/ui-attributefield.js
  67. +214 −0 assets/vendor/aloha/lib/aloha/ui-browser.js
  68. +889 −0 assets/vendor/aloha/lib/aloha/ui.js
  69. +313 −0 assets/vendor/aloha/lib/css.js
  70. +153 −0 assets/vendor/aloha/lib/i18n.js
  71. +46 −0 assets/vendor/aloha/lib/jquery-plugin.js
  72. +140 −0 assets/vendor/aloha/lib/order.js
  73. +2,013 −0 assets/vendor/aloha/lib/require.js
  74. +262 −0 assets/vendor/aloha/lib/text.js
  75. +80 −0 assets/vendor/aloha/lib/util/class.js
  76. +1,673 −0 assets/vendor/aloha/lib/util/dom.js
  77. +481 −0 assets/vendor/aloha/lib/util/json2.js
  78. +66 −0 assets/vendor/aloha/lib/util/lang.js
  79. +158 −0 assets/vendor/aloha/lib/util/position.js
  80. +923 −0 assets/vendor/aloha/lib/util/range.js
  81. +2,470 −0 assets/vendor/aloha/lib/vendor/ext-3.2.1/adapter/jquery/ext-jquery-adapter-debug.js
  82. +7 −0 assets/vendor/aloha/lib/vendor/ext-3.2.1/adapter/jquery/ext-jquery-adapter.js
  83. +47,684 −0 assets/vendor/aloha/lib/vendor/ext-3.2.1/ext-all-debug.js
  84. +13 −0 assets/vendor/aloha/lib/vendor/ext-3.2.1/ext-all.js
  85. +674 −0 assets/vendor/aloha/lib/vendor/ext-3.2.1/gpl-3.0.txt
  86. +42 −0 assets/vendor/aloha/lib/vendor/ext-3.2.1/license.txt
  87. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/charts.swf
  88. +5,903 −0 assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/css/ext-all.css
  89. +6,795 −0 assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/css/ext-all.less
  90. +1,692 −0 assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/css/xtheme-gray.css
  91. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/expressinstall.swf
  92. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/corners-blue.gif
  93. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/corners.gif
  94. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/l-blue.gif
  95. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/l.gif
  96. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/r-blue.gif
  97. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/r.gif
  98. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/tb-blue.gif
  99. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/tb.gif
  100. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/arrow.gif
  101. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/btn.gif
  102. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/group-cs.gif
  103. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/group-lr.gif
  104. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/group-tb.gif
  105. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-b-noline.gif
  106. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-b.gif
  107. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-bo.gif
  108. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-noline.gif
  109. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-o.gif
  110. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow.gif
  111. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/dd/drop-add.gif
  112. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/dd/drop-no.gif
  113. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/dd/drop-yes.gif
  114. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/editor/tb-sprite.gif
  115. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/checkbox.gif
  116. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/clear-trigger.gif
  117. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/clear-trigger.psd
  118. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/date-trigger.gif
  119. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/date-trigger.psd
  120. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/error-tip-corners.gif
  121. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/exclamation.gif
  122. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/radio.gif
  123. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/search-trigger.gif
  124. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/search-trigger.psd
  125. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/text-bg.gif
  126. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger-square.gif
  127. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger-square.psd
  128. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger-tpl.gif
  129. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger.gif
  130. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger.psd
  131. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/gradient-bg.gif
  132. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/arrow-left-white.gif
  133. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/arrow-right-white.gif
  134. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/col-move-bottom.gif
  135. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/col-move-top.gif
  136. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/columns.gif
  137. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/dirty.gif
  138. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/done.gif
  139. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/drop-no.gif
  140. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/drop-yes.gif
  141. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/footer-bg.gif
  142. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-blue-hd.gif
  143. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-blue-split.gif
  144. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-hrow.gif
  145. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-loading.gif
  146. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-split.gif
  147. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-vista-hd.gif
  148. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-hd-btn.gif
  149. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-hrow-over.gif
  150. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-hrow.gif
  151. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-special-col-bg.gif
  152. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-special-col-sel-bg.gif
  153. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-by.gif
  154. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-collapse.gif
  155. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-expand-sprite.gif
  156. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-expand.gif
  157. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hd-pop.gif
  158. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-asc.gif
  159. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-desc.gif
  160. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-lock.gif
  161. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-lock.png
  162. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-unlock.gif
  163. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-unlock.png
  164. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/invalid_line.gif
  165. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/loading.gif
  166. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/mso-hd.gif
  167. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/nowait.gif
  168. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-first-disabled.gif
  169. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-first.gif
  170. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-last-disabled.gif
  171. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-last.gif
  172. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-next-disabled.gif
  173. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-next.gif
  174. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-prev-disabled.gif
  175. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-prev.gif
  176. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/pick-button.gif
  177. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/refresh.gif
  178. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-check-sprite.gif
  179. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-expand-sprite.gif
  180. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-over.gif
  181. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-sel.gif
  182. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/sort-hd.gif
  183. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/sort_asc.gif
  184. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/sort_desc.gif
  185. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/wait.gif
  186. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/collapse.gif
  187. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/expand.gif
  188. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/gradient-bg.gif
  189. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-bottom.gif
  190. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-left.gif
  191. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-right.gif
  192. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-top.gif
  193. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/ns-collapse.gif
  194. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/ns-expand.gif
  195. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/panel-close.gif
  196. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/panel-title-bg.gif
  197. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/panel-title-light-bg.gif
  198. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/stick.gif
  199. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/stuck.gif
  200. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/tab-close-on.gif
  201. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/tab-close.gif
  202. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/checked.gif
  203. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/group-checked.gif
  204. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/item-over.gif
  205. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/menu-parent.gif
  206. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/menu.gif
  207. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/unchecked.gif
  208. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/corners-sprite.gif
  209. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/left-right.gif
  210. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/light-hd.gif
  211. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/tool-sprite-tpl.gif
  212. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/tool-sprites.gif
  213. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/tools-sprites-trans.gif
  214. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/top-bottom.gif
  215. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/top-bottom.png
  216. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/white-corners-sprite.gif
  217. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/white-left-right.gif
  218. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/white-top-bottom.gif
  219. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/progress/progress-bg.gif
  220. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/bg.gif
  221. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/close.gif
  222. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/tip-anchor-sprite.gif
  223. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/tip-sprite.gif
  224. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/s.gif
  225. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/shadow-c.png
  226. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/shadow-lr.png
  227. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/shadow.png
  228. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/blue-loading.gif
  229. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/calendar.gif
  230. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/glass-bg.gif
  231. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/hd-sprite.gif
  232. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/large-loading.gif
  233. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/left-btn.gif
  234. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/loading-balls.gif
  235. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/right-btn.gif
  236. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/warning.gif
  237. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/e-handle-dark.gif
  238. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/e-handle.gif
  239. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/ne-handle-dark.gif
  240. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/ne-handle.gif
  241. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/nw-handle-dark.gif
  242. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/nw-handle.gif
  243. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/s-handle-dark.gif
  244. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/s-handle.gif
  245. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/se-handle-dark.gif
  246. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/se-handle.gif
  247. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/square.gif
  248. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/sw-handle-dark.gif
  249. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/sw-handle.gif
  250. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-bg.png
  251. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-thumb.png
  252. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-v-bg.png
  253. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-v-thumb.png
  254. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/scroll-left.gif
  255. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/scroll-right.gif
  256. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/scroller-bg.gif
  257. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-inactive-left-bg.gif
  258. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-inactive-right-bg.gif
  259. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-left-bg.gif
  260. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-over-left-bg.gif
  261. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-over-right-bg.gif
  262. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-right-bg.gif
  263. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-close.gif
  264. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-strip-bg.gif
  265. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-strip-bg.png
  266. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-strip-btm-bg.gif
  267. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tabs-sprite.gif
  268. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/bg.gif
  269. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/btn-arrow-light.gif
  270. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/btn-arrow.gif
  271. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/btn-over-bg.gif
  272. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/gray-bg.gif
  273. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/more.gif
  274. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-bg.gif
  275. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-btn-sprite.gif
  276. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-xl-btn-sprite.gif
  277. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-xl-sep.gif
  278. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/arrows.gif
  279. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-add.gif
  280. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-between.gif
  281. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-no.gif
  282. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-over.gif
  283. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-under.gif
  284. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-yes.gif
  285. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-minus-nl.gif
  286. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-minus.gif
  287. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-plus-nl.gif
  288. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-plus.gif
  289. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end.gif
  290. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-line.gif
  291. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-minus-nl.gif
  292. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-minus.gif
  293. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-plus-nl.gif
  294. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-plus.gif
  295. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow.gif
  296. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/folder-open.gif
  297. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/folder.gif
  298. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/leaf.gif
  299. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/loading.gif
  300. BIN  assets/vendor/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/s.gif
Sorry, we could not display the entire diff because too many files (1,620) changed.
8 .gitignore
@@ -0,0 +1,8 @@
+.DS_Store
+.bundle
+/tmp
+tmp/**/*
+*.gem
+.rvmrc
+.rbenv-version
+pkg/
18 LICENSE
@@ -0,0 +1,18 @@
+Copyright (C) 2012 by Didier Lafforgue
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
44 README.md
@@ -0,0 +1,44 @@
+Rails 3.1 Integration for Aloha Editor
+=================================
+
+The `aloha-rails` gem integrates the [AlohaEditor](http://aloha-editor.org/) editor with the Rails 3.1 asset pipeline.
+
+
+Instructions
+------------
+
+**1. Add `aloha-rails` to your Gemfile**
+
+ gem 'aloha-rails'
+
+Then run `bundle install`.
+
+
+**2. Use AlohaEditor**
+
+Add to your application.js:
+
+ //= require aloha
+
+and use AlohaEditor in your view:
+
+ <script type="text/javascript">
+ Aloha.ready( function() {
+
+ // Make #content editable once Aloha is loaded and ready.
+ Aloha.jQuery('#content').aloha();
+
+ });
+ </script
+
+Credits
+-------
+
+[Sam Pohlenz](https://github.com/spohlenz) for his [tinymce-rails plugin](https://github.com/spohlenz/tinymce-rails) as a blueprint.
+
+Contact
+-------
+
+Feel free to contact me at didier at nocoffee dot fr.
+
+Copyright (c) 2012 NoCoffee
57 Rakefile
@@ -0,0 +1,57 @@
+require 'rubygems'
+require 'rake'
+require 'rubygems/package_task'
+
+gemspec = eval(File.read('locomotive-aloha-rails.gemspec'))
+Gem::PackageTask.new(gemspec) do |pkg|
+ pkg.gem_spec = gemspec
+end
+
+unless defined? Aloha::VERSION
+ $:.unshift File.expand_path("../lib", __FILE__)
+ require "aloha/version"
+end
+
+def step(name)
+ print "#{name} ..."
+ yield
+ puts " DONE"
+end
+
+def download(url, filename)
+ puts "Downloading #{url} ..."
+ `mkdir -p tmp`
+ `curl -L -# #{url} -o tmp/#{filename}`
+end
+
+desc "Update Aloha Editor to version specified in lib/tinymce/version.rb"
+task :update => [ :fetch, :extract, :process ]
+
+task :fetch do
+ download("https://github.com/downloads/alohaeditor/Aloha-Editor/alohaeditor-#{Aloha::ALOHA_EDITOR_VERSION}.zip", "alohaeditor.zip")
+end
+
+task :extract do
+ step "Extracting core files" do
+ `rm -rf tmp/aloha`
+ `unzip -u tmp/alohaeditor.zip -d tmp`
+
+ %w(build.txt package.json).each { |file| `rm tmp/aloha/#{file}` }
+ %w(demo test).each { |folder| `rm -rf tmp/aloha/#{folder}` }
+
+ `rm -rf assets/vendor/aloha`
+ `mkdir -p assets/vendor/aloha`
+ `mv tmp/aloha assets/vendor/.`
+ end
+end
+
+task :process do
+ step "Fixing file encoding" do
+ require 'iconv'
+ converter = Iconv.new('UTF-8', 'ISO-8859-1')
+ Dir["assets/vendor/aloha/**/*.js"].each do |file|
+ contents = converter.iconv(File.read(file)).force_encoding('UTF-8')
+ File.open(file, 'w') { |f| f.write(contents) }
+ end
+ end
+end
3  assets/integration/aloha.css
@@ -0,0 +1,3 @@
+/*
+ *= require aloha/css/aloha.css
+*/
2  assets/integration/aloha.js
@@ -0,0 +1,2 @@
+//= require aloha/preinit.js
+//= require aloha/lib/aloha.js
1  assets/integration/aloha/preinit.js.erb
@@ -0,0 +1 @@
+Aloha.settings.baseUrl = '<%= Rails.application.config.assets.prefix %>/aloha/lib/';
44 assets/vendor/aloha/css/aloha-core.css
@@ -0,0 +1,44 @@
+.aloha-editable {
+ min-height: 1.2em;
+ outline: none;
+}
+.aloha-editable ::selection,
+.aloha-editable ::-moz-selection {
+ background: #80B5F2;
+ color: white;
+}
+.aloha-editable-zerowidthfix {
+ padding: 0px 5px 0px 5px !important;
+}
+
+
+
+.aloha-logo {
+ width:37px !important;
+ height:25px !important;
+ background-image: url('../img/gentics-logo.png') !important;
+}
+.aloha-maximize {
+ background-image: url('../img/gentics-logo.png') !important;
+}
+.aloha-fade-out {
+ background-image: url('../img/fade-out.png') !important;
+ width:20px !important;
+ height:20px !important;
+}
+.aloha-fade-in {
+ background-image: url('../img/fade-in.png') !important;
+ width:20px !important;
+ height:20px !important;
+}
+.aloha-maximize {
+ width:20px !important;
+ height:20px !important;
+ background-image: url('../img/maximize.png') !important;
+}
+.aloha-textarea {
+ overflow: hidden;
+ border:1px solid #ccc;
+ padding:6px;
+ overflow:auto;
+}
284 assets/vendor/aloha/css/aloha-sidebar.css
@@ -0,0 +1,284 @@
+.aloha-sidebar-bar {
+ z-index: 999999999;
+ position: fixed;
+ top: 0;
+ left: 0;
+ text-align: left;
+ font-family: Arial, sans-serif;
+ font-size: 12px;
+ border-right: 1px solid #888;
+ -moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, .5);
+ -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, .5);
+ box-shadow: 0px 0px 10px rgba(0, 0, 0, .5);
+
+}
+.aloha-sidebar-bar.aloha-sidebar-right {
+ left: auto;
+ right: 0;
+ border-right-width: 0;
+ border-left: 1px solid #888;
+}
+.aloha-sidebar-inner {
+ position: relative;
+ background-color: #ccc;
+ background-image: -webkit-radial-gradient(
+ rgba(0, 0, 0, 0.0) 20%,
+ rgba(0, 0, 0, 0.2) 80%,
+ rgba(0, 0, 0, 0.3) 100%
+ );
+ background-image: -moz-radial-gradient(
+ rgba(0, 0, 0, 0.0) 20%,
+ rgba(0, 0, 0, 0.2) 80%,
+ rgba(0, 0, 0, 0.3) 100%
+ );
+}
+.aloha-sidebar-panels {
+ margin: 0;
+ padding: 15px 0;
+}
+.aloha-sidebar-panels li {
+ overflow: hidden;
+ margin: 0;
+ padding: 0 15px;
+}
+.aloha-sidebar-panel-top {
+ -webkit-border-top-left-radius: 5px;
+ -webkit-border-top-right-radius: 5px;
+ -moz-border-radius-topleft: 5px;
+ -moz-border-radius-topright: 5px;
+}
+.aloha-sidebar-panel-content.aloha-sidebar-panel-bottom {
+ padding-bottom: 0;
+ -webkit-border-bottom-left-radius: 5px;
+ -webkit-border-bottom-right-radius: 5px;
+ -moz-border-radius-bottomleft: 5px;
+ -moz-border-radius-bottomright: 5px;
+ border-bottom-width: 1px;
+}
+.aloha-sidebar-panel-title {
+ position: relative;
+ overflow: hidden;
+ padding: 8px 0 0 8px;
+ border: 1px solid rgba(0, 0, 0, 0.3);
+ border-bottom-width: 0;
+ background-color: #303539;
+ background-image: -webkit-gradient(
+ linear,
+ center top,
+ center bottom,
+ color-stop(0.00, #6c6f74),
+ color-stop(0.05, #4c4f54),
+ color-stop(0.10, #3f4448),
+ color-stop(0.45, #383d41),
+ color-stop(0.50, #303539),
+ color-stop(0.95, #33363b)
+ );
+ background-image: -moz-linear-gradient(
+ center top,
+ #6c6f74 0%,
+ #4c4f54 5%,
+ #3f4448 10%,
+ #383d41 45%,
+ #303539 50%,
+ #33363b 95%
+ );
+
+ color: #ccc;
+ cursor: pointer;
+ font-size: 13px;
+ font-weight: bold;
+ line-height: 1.5em;
+ text-shadow: 0 0 6px #23262b;
+}
+.aloha-sidebar-panel-title:hover {
+ color: #fff;
+}
+.aloha-sidebar-panel-title-arrow {
+ position: absolute;
+ top: 8px;
+ left: 8px;
+ width: 16px;
+ height: 16px;
+ background: url(../img/arrow.png) no-repeat center center;
+ opacity: 0.3;
+
+}
+.aloha-sidebar-panel-title:hover .aloha-sidebar-panel-title-arrow {
+ opacity: 0.9;
+
+}
+.aloha-sidebar-panel-title .aloha-sidebar-panel-title-arrow.aloha-sidebar-panel-title-arrow-down {
+ background-image: url(../img/arrow-down.png);
+}
+.aloha-sidebar-panel-title-text {
+ margin-left: 24px;
+ white-space: nowrap;
+}
+.aloha-sidebar-panel-content {
+ overflow: hidden;
+ height: 5px;
+ background: #303539;
+}
+.aloha-sidebar-panel-content-inner {
+ margin: 5px 0 0;
+ padding: 0;
+ color: #888;
+ background: #fff;
+ background-image: -webkit-radial-gradient(
+ rgba(0, 0, 0, 0.0) 50%,
+ rgba(0, 0, 0, 0.1) 90%,
+ rgba(0, 0, 0, 0.2) 100%
+ );
+ background-image: -moz-radial-gradient(
+ rgba(0, 0, 0, 0.0) 50%,
+ rgba(0, 0, 0, 0.1) 90%,
+ rgba(0, 0, 0, 0.2) 100%
+ );
+}
+.aloha-sidebar-panel-content input {
+ margin: 5px;
+ padding: 5px;
+}
+.aloha-sidebar-handle {
+ position: absolute;
+ top: 30px;
+ right: -30px;
+ width: 40px;
+ height: 30px;
+ overflow: hidden;
+
+ background-color: #303539;
+ background-image: -webkit-gradient(
+ linear,
+ center top,
+ center bottom,
+ color-stop(0.00, #6c6f74),
+ color-stop(0.05, #4c4f54),
+ color-stop(0.10, #3f4448),
+ color-stop(0.45, #383d41),
+ color-stop(0.50, #303539),
+ color-stop(0.95, #33363b)
+ );
+ background-image: -moz-linear-gradient(
+ center top,
+ #6c6f74 0%,
+ #4c4f54 5%,
+ #3f4448 10%,
+ #383d41 45%,
+ #303539 50%,
+ #33363b 95%
+ );
+
+
+ cursor: pointer;
+
+ -moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, .5);
+ -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, .5);
+ box-shadow: 0px 0px 10px rgba(0, 0, 0, .5);
+
+ border-top-right-radius: 5px;
+ border-bottom-right-radius: 5px;
+ -moz-border-radius-topright: 5px;
+ -moz-border-radius-bottomright: 5px;
+ -webkit-border-top-right-radius: 5px;
+ -webkit-border-bottom-right-radius: 5px;
+}
+.aloha-sidebar-right .aloha-sidebar-handle {
+ left: -30px;
+ border-top-right-radius: 0px;
+ border-bottom-right-radius: 0px;
+ -moz-border-radius-topright: 0px;
+ -moz-border-radius-bottomright: 0px;
+ -webkit-border-top-right-radius: 0px;
+ -webkit-border-bottom-right-radius: 0px;
+
+ border-top-left-radius: 5px;
+ border-bottom-left-radius: 5px;
+ -moz-border-radius-topleft: 5px;
+ -moz-border-radius-bottomleft: 5px;
+ -webkit-border-top-left-radius: 5px;
+ -webkit-border-bottom-left-radius: 5px;
+}
+.aloha-sidebar-handle-icon {
+ display: block;
+ position: absolute;
+ top: 5px;
+ right: 5px;
+ background: url(../img/arrow.png) no-repeat center center;
+ width: 20px;
+ height: 20px;
+ opacity: 0.5;
+
+}
+.aloha-sidebar-right .aloha-sidebar-handle-icon {
+ left: 5px;
+ right: auto;
+}
+.aloha-sidebar-handle-icon.aloha-sidebar-handle-icon-left {
+ background-image: url(../img/arrow-left.png);
+}
+.aloha-sidebar-panel-parent-path {
+ background-color: #303539;
+ background-image: -webkit-gradient(
+ linear,
+ center top,
+ center bottom,
+ color-stop(0.00, #6c6f74),
+ color-stop(0.05, #4c4f54),
+ color-stop(0.10, #3f4448),
+ color-stop(0.45, #383d41),
+ color-stop(0.50, #303539),
+ color-stop(0.95, #33363b)
+ );
+ background-image: -moz-linear-gradient(
+ center top,
+ #6c6f74 0%,
+ #4c4f54 5%,
+ #3f4448 10%,
+ #383d41 45%,
+ #303539 50%,
+ #33363b 95%
+ );
+
+ color: #fff;
+ cursor: pointer;
+ font-size: 12px;
+ text-shadow: 0 0 6px #23262b;
+ white-space: nowrap;
+ line-height: 1em;
+}
+.aloha-sidebar-panel-parent-path:hover {
+ opacity: 0.9;
+
+}
+.aloha-sidebar-panel-parent-path span {
+ display: inline-block;
+ padding: 0 10px 0 5px;
+ background: url(../img/breadcrumb-divider.png) no-repeat right center;
+ opacity: 0.25;
+
+ line-height: 1.6em;
+}
+.aloha-sidebar-panel-parent-path span:first-child {
+ font-weight: bold;
+ opacity: 0.8;
+
+}
+.aloha-sidebar-panel-parent-path span:last-child {
+ background: none;
+}
+.aloha-sidebar-panel-parent-content {
+ padding: 4px;
+ background-image: -webkit-gradient(
+ linear,
+ center top,
+ center bottom,
+ color-stop(0.0, rgba(0, 0, 0, 0.25)),
+ color-stop(0.05, rgba(0, 0, 0, 0.0))
+ );
+ background-image: -moz-linear-gradient(
+ center top,
+ rgba(0, 0, 0, 0.25) 0%,
+ rgba(0, 0, 0, 0.0) 5%
+ );
+}
7,774 assets/vendor/aloha/css/aloha.css
7,774 additions, 0 deletions not shown
33 assets/vendor/aloha/css/ext-aloha-reset.css
@@ -0,0 +1,33 @@
+.aloha-floatingmenu table, .aloha-floatingmenu tr, .aloha-floatingmenu td,
+.ext-root table, .ext-root tr, .ext-root td,
+table.x-layer, .x-layer tr, .x-layer td,
+table.x-window, .x-window tr, .x-window td,
+table.x-toolbar-ct, .x-toolbar-ct tr, .x-toolbar-ct td,
+table.x-toolbar-left, .x-toolbar-left tr, .x-toolbar-left td,
+table.x-table-layout, .x-table-layout tr, .x-table-layout td,
+table.x-toolbar-ct table, .x-toolbar-cell td, .x-table-layout-cell td {
+ width: 0 !important;
+ height: 0 !important;
+ border: 0 !important;
+ padding: 0 !important;
+ margin: 0 !important;
+ background-color: transparent !important;
+}
+/* reset for floatingmenu */
+div.aloha-floatingmenu, div.aloha-shadow {
+ min-width: 0px;
+}
+/* more specific for browsers that support nth-child. */
+.ext-root tr:nth-child(2n), .ext-root tr:nth-child(3n), .ext-root tr:nth-child(4n), .ext-root tr:nth-child(5n) {
+ width: 0 !important;
+ height: 0 !important;
+ border: 0 !important;
+ padding: 0 !important;
+ margin: 0 !important;
+ background-color: transparent !important;
+}
+.ext-root ol, .ext-root ul, .x-menu ul, .x-menu ol {
+ list-style:none;
+ margin:0;
+ padding:0;
+}
357 assets/vendor/aloha/css/ext-aloha.css
@@ -0,0 +1,357 @@
+.aloha-floatingmenu {
+ position: absolute;
+}
+.aloha-floatingmenu.fixed {
+ position: fixed !important;
+}
+.aloha-floatingmenu .x-tab-panel-header {
+ border-width: 0px 0px 1px 0px !important;
+ background: none !important;
+}
+.aloha-floatingmenu .x-tab-panel-header .x-tab-strip-wrap, .aloha-floatingmenu ul.x-tab-strip-top {
+ background: none !important;
+}
+.x-tab-strip-wrap ul li a:hover {
+ border: none;
+ text-decoration:none;
+}
+.aloha-floatingmenu .x-tab-panel-header {
+ padding-bottom: 0px !important;
+}
+.aloha-floatingmenu:hover {
+ background-color: #E0E0E0;
+ -moz-border-radius-topleft: 3px;
+ -moz-border-radius-topright: 3px;
+ -webkit-border-top-left-radius: 3px;
+ -webkit-border-top-right-radius: 3px;
+ border-top-left-radius: 3px;
+ border-top-right-radius: 3px;
+ background: url(../img/grabhandle.png) no-repeat scroll center 5px rgba(0, 0, 0, 0.4);
+}
+.aloha-floatingmenu:hover .aloha-floatingmenu-pin {
+ display: block;
+}
+.aloha-floatingmenu-pin {
+ background: url("../img/pin.png") no-repeat scroll 0 6px transparent;
+ cursor: pointer;
+ margin-left: 5px !important;
+ width: 16px;
+ position: absolute !important;
+ right: 10px;
+ display: none;
+}
+.aloha-floatingmenu-pinned {
+ background-position: -16px 6px;
+}
+#aloha-floatingmenu-shadow {
+ position: absolute;
+ top: -1000;
+ left: -1000;
+ display: none;
+ z-index: 8800;
+}
+#aloha-floatingmenu-shadow.fixed {
+ position: fixed !important;
+}
+
+.x-tree-root-ct {
+ padding: 0px;
+}
+.x-tree-node {
+ list-style: none;
+}
+.x-tree-node-ct {
+ padding: 0px;
+}
+.aloha-button a:focus {
+ outline: none;
+}
+button.aloha-button {
+ background: url('../img/base.png') no-repeat !important;
+}
+button.aloha-button-big {
+ background: url('../img/base-big.png') no-repeat !important;
+}
+button.aloha-button-b {
+ background-position: 0px 0px;
+}
+button.aloha-button-i {
+ background-position: -16px 0px !important;
+}
+button.aloha-button-u {
+ background-position: -32px 0px !important;
+}
+button.aloha-button-del {
+ background-position: -48px 0px !important;
+}
+button.aloha-button-sub {
+ background-position: -64px 0px !important;
+}
+button.aloha-button-sup {
+ background-position: -80px 0px !important;
+}
+button.aloha-button-ul {
+ background-position: -256px 0px !important;
+}
+button.aloha-button-ol {
+ background-position: -272px 0px !important;
+}
+button.aloha-button-indent-list {
+ background-image: url(../img/text_indent.png) !important;
+}
+button.aloha-button-outdent-list {
+ background-image: url(../img/text_indent_remove.png) !important;
+}
+button.aloha-button-a {
+ background-position: -288px 0px !important;
+}
+button.aloha-button-a-remove {
+ background-position: -304px 0px !important;
+}
+button.aloha-button-p {
+ background-position: 0px 0 !important;
+}
+button.aloha-button-p-de {
+ background-position: 0px -42px !important;
+}
+button.aloha-button-h1 {
+ background-position: -52px 0 !important;
+}
+button.aloha-button-h1-de {
+ background-position: -52px -42px !important;
+}
+button.aloha-button-h2 {
+ background-position: -104px 0 !important;
+}
+button.aloha-button-h2-de {
+ background-position: -104px -42px !important;
+}
+button.aloha-button-h3 {
+ background-position: -156px 0 !important;
+}
+button.aloha-button-h3-de {
+ background-position: -156px -42px !important;
+}
+button.aloha-button-h4 {
+ background-position: -208px 0 !important;
+}
+button.aloha-button-h4-de {
+ background-position: -208px -42px !important;
+}
+button.aloha-button-h5 {
+ background-position: -260px 0 !important;
+}
+button.aloha-button-h5-de {
+ background-position: -260px -42px !important;
+}
+button.aloha-button-h6 {
+ background-position: -312px 0 !important;
+}
+button.aloha-button-h6-de {
+ background-position: -312px -42px !important;
+}
+button.aloha-button-pre {
+ background-position: -364px 0 !important;
+}
+button.aloha-button-pre-de {
+ background-position: -364px -42px !important;
+}
+button.aloha-button-title {
+ background-position: -416px 0 !important;
+}
+button.aloha-button-title-de {
+ background-position: -416px -42px !important;
+}
+button.aloha-button-table {
+ background-position: -96px 0 !important;
+}
+button.aloha-button-addColumnLeft {
+ background-position: -112px 0 !important;
+}
+button.aloha-button-addColumnRight {
+ background-position: -128px 0 !important;
+}
+button.aloha-button-addRowBefore {
+ background-position: -144px 0 !important;
+}
+button.aloha-button-addRowAfter {
+ background-position: -160px 0 !important;
+}
+button.aloha-button-deleteRows {
+ background-position: -176px 0 !important;
+}
+button.aloha-button-deleteColumns {
+ background-position: -192px 0 !important;
+}
+button.aloha-button-addPerson {
+ background-position: -224px 0 !important;
+}
+button.aloha-button-addEvent {
+ background-position: -208px 0 !important;
+}
+button.aloha-button-abbr {
+ background-position: -336px 0px !important;
+}
+button.aloha-button-row-header {
+ background-position: -352px 0px !important;
+}
+button.aloha-button-col-header {
+ background-position: -368px 0px !important;
+}
+button.aloha-button-tree {
+ background-position: -0 0 !important;
+}
+div.aloha-button a:hover {
+ border: 1px solid #b2cbff;
+}
+.aloha-floatingmenu {
+ display: none;
+}
+.aloha-floatingmenu .pressed a {
+ border:1px solid #ccc;
+}
+
+html body #aloha-ribbon {
+ z-index:90000;
+ position:fixed;
+ top:0;
+ left:0;
+ width:100%;
+ padding-left:0;
+ padding-right:0;
+ display: none;
+}
+.x-menu-list-item {
+ text-align:left;
+}
+.aloha-shadow {
+ -moz-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
+ -webkit-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
+ box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
+}
+ul.aloha-multisplit button.aloha-button {
+ background-image: url(../img/base-multi.png) !important;
+ background-repeat: no-repeat;
+ background-position: 0 0;
+
+ width: 54px !important;
+ height: 44px !important;
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+ border-radius: 3px;
+}
+.aloha-multisplit {
+ float: left;
+ list-style: none;
+}
+ul.aloha-multisplit, div.aloha-multisplit-wrapper {
+ width: 232px;
+ height: 46px;
+ overflow: hidden;
+ margin: 0px;
+ padding: 0px;
+}
+div.aloha-multisplit-wrapper {
+ width: 248px;
+}
+ul.aloha-multisplit li {
+ float: left;
+ padding: 0px 1px;
+ margin: 0px;
+}
+ul.aloha-multisplit button.aloha-multisplit-wide {
+ font: 11px tahoma,arial,helvetica;
+ height: 18px !important;
+ width: 234px !important;
+ border: 0;
+ border-top: 1px solid #cccccc;
+ cursor: pointer;
+ background-color: white;
+ background-repeat: no-repeat;
+ background-position: 6px 1px !important;
+ text-align: left;
+ margin-left: -2px;
+ padding-left: 26px;
+}
+button.aloha-multisplit-toggle {
+ float: right;
+ margin: 0;
+ padding: 0;
+ width: 15px;
+ height: 12px;
+ margin-top: 32px;
+ cursor: pointer;
+ border: 0;
+}
+button.aloha-multisplit-toggle-open {
+ background-image: url(../img/multisplit-open.gif);
+}
+button.aloha-multisplit-toggle-close {
+ background-image: url(../img/multisplit-close.gif);
+}
+ul.aloha-multisplit button {
+ border: 1px solid #cccccc;
+ margin: 1px;
+ cursor: pointer;
+}
+ul.aloha-multisplit button:hover {
+ border: 1px solid #666666;
+}
+ul.aloha-multisplit button.aloha-multisplit-wide:hover {
+ border: 0;
+ border-top: 1px solid #cccccc;
+}
+ul.aloha-multisplit .aloha-multisplit-activeitem button {
+ border: 2px solid #3B73D7;
+}
+ul.aloha-multisplit-expanded {
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ z-index: 20000;
+ background-color: white;
+ border: 1px solid #afafaf;
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+ border-radius: 3px;
+}
+ul.aloha-multisplit button.aloha-button-removeFormat {
+ background-image: url(../img/removeformat.png) !important;
+}
+
+/**
+ * combo-list box
+ */
+.x-combo-list {
+ text-align: left;
+}
+.x-combo-list-inner {
+ padding: 3px;
+}
+.x-combo-list-inner .loading-indicator {
+ margin: 0;
+}
+.x-combo-selected {
+ color: #fff !important;
+ background-color: #3B73D7 !important;
+}
+
+/**
+ * ui-attribute field
+ */
+.x-form-field.x-form-text {
+ color: #333 !important;
+ padding: 3px;
+}
+.x-form-field.x-form-text::selection {
+ color: #fff;
+ background: #3B73D7;
+}
+.x-form-field.x-form-text::-moz-selection {
+ color: #fff;
+ background: #3B73D7;
+}
+.x-form-field.x-form-text::-webkit-selection {
+ color: #fff;
+ background: #3B73D7;
+}
BIN  assets/vendor/aloha/img/arrow-down.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/arrow-left.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/arrow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/base-big.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/base-multi.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/base.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/bg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/breadcrumb-divider.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/fade-in.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/fade-out.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/gentics-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/grabhandle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/maximize.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/multisplit-base.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/multisplit-close.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/multisplit-open.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/pin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/removeformat.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/text_indent.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  assets/vendor/aloha/img/text_indent_remove.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27,645 assets/vendor/aloha/lib/aloha-bootstrap.js
27,645 additions, 0 deletions not shown
88,750 assets/vendor/aloha/lib/aloha.js
88,750 additions, 0 deletions not shown
246 assets/vendor/aloha/lib/aloha/command.js
@@ -0,0 +1,246 @@
+/*!
+* CommandManager file is part of Aloha Editor Project http://aloha-editor.org
+* Copyright (c) 2010-2011 Gentics Software GmbH, aloha@gentics.com
+* Contributors http://aloha-editor.org/contribution.php
+* Licensed unter the terms of http://www.aloha-editor.org/license.html
+*//*
+* Aloha Editor is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.*
+*
+* Aloha Editor is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with CommandManager program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+define( [ 'aloha/core', 'aloha/registry', 'aloha/engine', 'util/dom', 'aloha/contenthandlermanager' ],
+function( Aloha, Registry, Engine, Dom, ContentHandlerManager ) {
+
+// Action: What the command does when executed via execCommand(). Every command defined
+// in CommandManager specification has an action defined for it in the relevant section. For example,
+// the bold command's action generally makes the current selection bold, or removes bold if
+// the selection is already bold. An editing toolbar might provide buttons that execute the
+// action for a command if clicked, or a script might run an action without user interaction
+// to achieve some particular effect.
+//
+// Indeterminate: A boolean value returned by queryCommandIndeterm(), depending on the
+// current state of the document. Generally, a command that has a state defined will be
+// indeterminate if the state is true for part but not all of the current selection, and a
+// command that has a value defined will be indeterminate if different parts of the
+// selection have different values. An editing toolbar might display a button or control
+// in a special way if the command is indeterminate, like showing a "bold" button as
+// partially depressed, or leaving a font size selector blank instead of showing the font
+// size of the current selection. As a rule, a command can only be indeterminate if its
+// state is false, supposing it has a state.
+//
+// State: A boolean value returned by queryCommandState(), depending on the current state
+// of the document. The state of a command is true if it is already in effect, in some
+// sense specific to the command. Most commands that have a state defined will take opposite
+// actions depending on whether the state is true or false, such as making the selection
+// bold if the state is false and removing bold if the state is true. Others will just
+// have no effect if the state is true, like the justifyCenter command. Still others will
+// have the same effect regardless, like the styleWithCss command. An editing toolbar might
+// display a button or control differently depending on the state and indeterminacy of the
+// command.
+//
+// Value: A string returned by queryCommandValue(), depending on the current state of the
+// document. A command usually has a value instead of a state if the property it modifies
+// can take more than two different values, like the foreColor command. If the command is
+// indeterminate, its value is generally based on the start of the selection. Otherwise,
+// in most cases the value holds true for the entire selection, but see the justifyCenter
+// command and its three companions for an exception. An editing toolbar might display the
+// value of a command as selected in a drop-down or filled in in a text box, if the command
+// isn't indeterminate.
+//
+// Relevant CSS property: CommandManager is defined for certain inline formatting commands, and
+// is used in algorithms specific to those commands. It is an implementation detail, and
+// is not exposed to authors. If a command does not have a relevant CSS property
+// specified, it defaults to null.
+
+ var CommandManager = {
+
+ execCommand: function( commandId, showUi, value, range ) {
+
+ // Read current selection if not passed
+ if ( !range ) {
+ if ( !Aloha.getSelection().getRangeCount() ) {
+ return;
+ }
+ range = Aloha.getSelection().getRangeAt( 0 );
+ }
+
+ // For the insertHTML command we provide contenthandler API
+ if ( commandId == 'insertHTML' ) {
+ //if (typeof Aloha.settings.contentHandler.insertHtml === 'undefined') {
+ // use all registered content handler; used for copy & paste atm (or write log message)
+ // Aloha.settings.contentHandler.insertHtml = Aloha.defaults.contentHandler.insertHtml;
+ //}
+ value = ContentHandlerManager.handleContent( value, {
+ contenthandler: Aloha.settings.contentHandler.insertHtml
+ });
+ }
+
+ Engine.execCommand( commandId, showUi, value, range );
+
+ // Read range after engine modification
+ range = Aloha.getSelection().getRangeAt( 0 );
+
+ // FIX: doCleanup should work with W3C range
+ var startnode = range.commonAncestorContainer.parentNode;
+ var rangeObject = new window.GENTICS.Utils.RangeObject();
+ rangeObject.startContainer = range.startContainer;
+ rangeObject.startOffset = range.startOffset;
+ rangeObject.endContainer = range.endContainer;
+ rangeObject.endOffset = range.endOffset;
+ Dom.doCleanup({merge:true, removeempty: false}, rangeObject, startnode);
+ rangeObject.select();
+ Aloha.trigger('aloha-command-executed', commandId);
+ },
+
+ // If command is available and not disabled or the active range is not null
+ // the command is enabled
+ queryCommandEnabled: function( commandId, range ) {
+
+ // Take current selection if not passed
+ if ( !range ) {
+ if ( !Aloha.getSelection().getRangeCount() ) {
+ return;
+ }
+ range = Aloha.getSelection().getRangeAt(0);
+ }
+ return Engine.queryCommandEnabled( commandId, range );
+ },
+
+ // "Return true if command is indeterminate, otherwise false."
+ queryCommandIndeterm: function( commandId, range ) {
+
+ // Take current selection if not passed
+ if ( !range ) {
+ if ( !Aloha.getSelection().getRangeCount() ) {
+ return;
+ }
+ range = Aloha.getSelection().getRangeAt(0);
+ }
+ return Engine.queryCommandIndeterm( commandId, range );
+
+ },
+
+ queryCommandState: function( commandId, range ) {
+
+ // Take current selection if not passed
+ if ( !range ) {
+ if ( !Aloha.getSelection().getRangeCount() ) {
+ return;
+ }
+ range = Aloha.getSelection().getRangeAt(0);
+ }
+ return Engine.queryCommandState( commandId, range );
+
+ },
+
+ // "When the queryCommandSupported(command) method on the HTMLDocument
+ // interface is invoked, the user agent must return true if command is
+ // supported, and false otherwise."
+ queryCommandSupported: function( commandId ) {
+
+ return Engine.queryCommandSupported( commandId );
+ },
+
+ queryCommandValue: function( commandId, range ) {
+
+ // Take current selection if not passed
+ if ( !range ) {
+ if ( !Aloha.getSelection().getRangeCount() ) {
+ return;
+ }
+ range = Aloha.getSelection().getRangeAt(0);
+ }
+
+ // "Return command's value."
+ return Engine.queryCommandValue( commandId, range );
+ },
+ querySupportedCommands: function() {
+
+ var
+ commands = [],
+ command;
+
+ for ( command in Engine.commands ) {
+ commands.push( command );
+ }
+ return commands;
+ }
+ };
+
+ // create an instance
+ CommandManager = new ( Registry.extend( CommandManager ) )();
+
+ /**
+ * Executes a registered command.
+ * http://aryeh.name/spec/editing/editing.html#methods-of-the-htmldocument-interface
+ * @method
+ * @param command name of the command
+ * @param showUI has no effect for Aloha Editor and is only here because in spec...
+ * @param value depends on the used command and it impementation
+ * @range optional a range on which the command will be executed if not specified
+ * the current selection will be used as range
+ */
+ Aloha.execCommand = CommandManager.execCommand;
+
+ /**
+ * Check wheater the command in enabled.
+ * If command is not supported, raise a NOT_SUPPORTED_ERR exception.
+ * @param command name of the command
+ * @return true if command is enabled, false otherwise.
+ */
+ Aloha.queryCommandEnabled = CommandManager.queryCommandEnabled;
+
+ /**
+ * Check if the command has an indetermed state.
+ * If command is not supported, a NOT_SUPPORTED_ERR exception is thrown
+ * If command has no indeterminacy, INVALID_ACCESS_ERR exception is thrown
+ * If command is not enabled, return false.
+ * @param command name of the command
+ * @range optional a range on which the command will be executed if not specified
+ * the current selection will be used as range
+ * @return true if command is indeterminate, otherwise false.
+ */
+ Aloha.queryCommandIndeterm = CommandManager.queryCommandIndeterm;
+
+ /**
+ * Returns the state of a given command
+ * If command is not supported, a NOT_SUPPORTED_ERR exception is thrown
+ * If command has no state, an INVALID_ACCESS_ERR exception is thrown
+ * If command is not enabled, return false
+ * If the state override for command is set, it returns the state
+ * @param command name of the command
+ * @return state override or true if command's state is true, otherwise false.
+ */
+ Aloha.queryCommandState = CommandManager.queryCommandState;
+
+ /**
+ * Check if a given command is supported
+ * @return true if command is supported, and false otherwise.
+ */
+ Aloha.queryCommandSupported = CommandManager.queryCommandSupported;
+
+ /**
+ * Returns the Value of a given Command
+ * If command is not supported, a NOT_SUPPORTED_ERR exception is thrown
+ * If command is not enabled, returns an empty string
+ * If command is "fontSize" and its value override is set, an integer
+ * number of pixels is returned as font size for the result.
+ * If the value override for command is set, it returns that.
+ * @return command's value.
+ */
+ Aloha.queryCommandValue = CommandManager.queryCommandValue;
+
+ Aloha.querySupportedCommands = CommandManager.querySupportedCommands;
+
+ return CommandManager;
+});
330 assets/vendor/aloha/lib/aloha/console.js
@@ -0,0 +1,330 @@
+/*!
+* This file is part of Aloha Editor Project http://aloha-editor.org
+* Copyright © 2010-2011 Gentics Software GmbH, aloha@gentics.com
+* Contributors http://aloha-editor.org/contribution.php
+* Licensed unter the terms of http://www.aloha-editor.org/license.html
+*//*
+* Aloha Editor is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.*
+*
+* Aloha Editor is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+define(
+['aloha/core', 'util/class', 'aloha/jquery'],
+function(Aloha, Class, jQuery ) {
+
+
+ var
+// $ = jQuery,
+// Aloha = window.Aloha,
+ console = window.console;
+// Class = window.Class
+// GENTICS = window.GENTICS;
+
+/**
+ * This is the aloha Log
+ * @namespace Aloha
+ * @class Log
+ * @singleton
+ */
+var alohaConsole = Class.extend({
+ /**
+ * Initialize the logging
+ * @hide
+ */
+ init: function() {
+
+ // initialize the logging settings (if not present)
+ if (typeof Aloha.settings.logLevels === 'undefined' || !Aloha.settings.logLevels) {
+ Aloha.settings.logLevels = {'error' : true, 'warn' : true};
+ }
+
+ // initialize the logHistory settings (if not present)
+ if (typeof Aloha.settings.logHistory === 'undefined' || !Aloha.settings.logHistory) {
+ Aloha.settings.logHistory = {};
+ }
+ // set the default values for the loghistory
+ if (!Aloha.settings.logHistory.maxEntries) {
+ Aloha.settings.logHistory.maxEntries = 100;
+ }
+ if (!Aloha.settings.logHistory.highWaterMark) {
+ Aloha.settings.logHistory.highWaterMark = 90;
+ }
+ if (!Aloha.settings.logHistory.levels) {
+ Aloha.settings.logHistory.levels = {'error' : true, 'warn' : true};
+ }
+ this.flushLogHistory();
+
+ Aloha.trigger('aloha-logger-ready');
+ },
+
+ /**
+ * Log History as array of Message Objects. Every object has the properties
+ * 'level', 'component' and 'message'
+ * @property
+ * @type Array
+ * @hide
+ */
+ logHistory: [],
+
+ /**
+ * Flag, which is set as soon as the highWaterMark for the log history is reached.
+ * This flag is reset on every call of flushLogHistory()
+ * @hide
+ */
+ highWaterMarkReached: false,
+
+ /**
+ * Logs a message to the console
+ * @method
+ * @param {String} level Level of the log ('error', 'warn' or 'info', 'debug')
+ * @param {String} component Component that calls the log
+ * @param {String} message log message
+ */
+ log: function(level, component, message) {
+
+
+ // log ('Logging message');
+ if ( typeof component === 'undefined' ) {
+ message = level;
+ }
+ if ( typeof component !== 'string' && component && component.toString ) {
+ component = component.toString();
+ }
+
+ // log ('warn', 'Warning message');
+ if ( typeof message === 'undefined' ) {
+ message = component;
+ component = undefined;
+ }
+
+ if (typeof level === 'undefined' || !level) {
+ level = 'log';
+ }
+
+ level = level.toLowerCase();
+
+ if ( typeof Aloha.settings.logLevels === "undefined" ) {
+ return;
+ }
+
+ // now check whether the log level is activated
+ if ( !Aloha.settings.logLevels[ level ] ) {
+ return;
+ }
+
+ component = component || "Unkown Aloha Component";
+
+ this.addToLogHistory({'level' : level, 'component' : component, 'message' : message, 'date' : new Date()});
+
+ switch (level) {
+ case 'error':
+ if (window.console && console.error) {
+ // FIXME:
+ // Using console.error rather than throwing an error is very
+ // problematic because we get not stack.
+ // We ought to consider doing the following:
+ // throw component + ': ' + message;
+ if(!component && !message) {
+ console.error("Error occured without message and component");
+ } else {
+ console.error(component + ': ' + message);
+ }
+ }
+ break;
+ case 'warn':
+ if (window.console && console.warn) {
+ console.warn(component + ': ' + message);
+ }
+ break;
+ case 'info':
+ if (window.console && console.info) {
+ console.info(component + ': ' + message);
+ }
+ break;
+ case 'debug':
+ if (window.console && console.log) {
+ console.log(component + ' [' + level + ']: ' + message);
+ }
+ break;
+ default:
+ if (window.console && console.log) {
+ console.log(component + ' [' + level + ']: ' + message);
+ }
+ break;
+ }
+ },
+
+ /**
+ * Log a message of log level 'error'
+ * @method
+ * @param {String} component Component that calls the log
+ * @param {String} message log message
+ */
+ error: function(component, message) {
+ this.log('error', component, message);
+ },
+
+ /**
+ * Log a message of log level 'warn'
+ * @method
+ * @param {String} component Component that calls the log
+ * @param {String} message log message
+ */
+ warn: function(component, message) {
+ this.log('warn', component, message);
+ },
+
+ /**
+ * Log a message of log level 'info'
+ * @method
+ * @param {String} component Component that calls the log
+ * @param {String} message log message
+ */
+ info: function(component, message) {
+ this.log('info', component, message);
+ },
+
+ /**
+ * Log a message of log level 'debug'
+ * @param {String} component Component that calls the log
+ * @param {String} message log message
+ */
+ debug: function(component, message) {
+ this.log('debug', component, message);
+ },
+
+ /**
+ * Methods to mark function as deprecated for developers.
+ * @param {String} component String that calls the log
+ * @param {String} message log message
+ */
+ deprecated: function(component, message) {
+ this.log( 'warn', component, message );
+ // help the developer to locate the call.
+ if ( Aloha.settings.logLevels[ 'deprecated' ] ) {
+ throw new Error ( message );
+ }
+ },
+
+ /**
+ * Check whether the given log level is currently enabled
+ * @param {String} level
+ * @return true when log level is enabled, false if not
+ */
+ isLogLevelEnabled: function(level) {
+ return Aloha.settings && Aloha.settings.logLevels && Aloha.settings.logLevels[level];
+ },
+
+ /**
+ * Check whether error logging is enabled
+ * @return true if error logging is enabled, false if not
+ */
+ isErrorEnabled: function() {
+ return this.isLogLevelEnabled('error');
+ },
+
+ /**
+ * Check whether warn logging is enabled
+ * @return true if warn logging is enabled, false if not
+ */
+ isWarnEnabled: function() {
+ return this.isLogLevelEnabled('warn');
+ },
+
+ /**
+ * Check whether info logging is enabled
+ * @return true if info logging is enabled, false if not
+ */
+ isInfoEnabled: function() {
+ return this.isLogLevelEnabled('info');
+ },
+
+ /**
+ * Check whether debug logging is enabled
+ * @return true if debug logging is enabled, false if not
+ */
+ isDebugEnabled: function() {
+ return this.isLogLevelEnabled('debug');
+ },
+
+ /**
+ * Add the given entry to the log history. Check whether the highWaterMark has been reached, and fire an event if yes.
+ * @param {Object} entry entry to be added to the log history
+ * @hide
+ */
+ addToLogHistory: function(entry) {
+
+ if ( !Aloha.settings.logHistory ) {
+ this.init();
+ }
+
+ // when maxEntries is set to something illegal, we do nothing (log history is disabled)
+ // check whether the level is one we like to have logged
+ if ( Aloha.settings.logHistory.maxEntries <= 0
+ || !Aloha.settings.logHistory.levels[ entry.level ]
+ ) {
+
+ return;
+ }
+
+ // first add the entry as last element to the history array
+ this.logHistory.push( entry );
+
+ // check whether the highWaterMark was reached, if so, fire an event
+ if ( !this.highWaterMarkReached ) {
+
+ if ( this.logHistory.length >= Aloha.settings.logHistory.maxEntries * Aloha.settings.logHistory.highWaterMark / 100 ) {
+
+ // fire the event
+ Aloha.trigger('aloha-log-full');
+ // set the flag (so we will not fire the event again until the logHistory is flushed)
+ this.highWaterMarkReached = true;
+ }
+ }
+
+ // check whether the log is full and eventually remove the oldest entries
+ while ( this.logHistory.length > Aloha.settings.logHistory.maxEntries ) {
+ this.logHistory.shift();
+ }
+ },
+
+ /**
+ * Get the log history
+ * @return log history as array of objects
+ * @hide
+ */
+ getLogHistory: function() {
+ return this.logHistory;
+ },
+
+ /**
+ * Flush the log history. Remove all log entries and reset the flag for the highWaterMark
+ * @return void
+ * @hide
+ */
+ flushLogHistory: function() {
+ this.logHistory = [];
+ this.highWaterMarkReached = false;
+ }
+});
+
+/**
+ * Create the Log object
+ * @hide
+ */
+alohaConsole = new alohaConsole();
+
+// add to log namespace for compatiblility.
+return Aloha.Log = Aloha.Console = alohaConsole;
+
+});
65 assets/vendor/aloha/lib/aloha/contenthandlermanager.js
@@ -0,0 +1,65 @@
+/*!
+ * Aloha Editor
+ * Author & Copyright (c) 2010 Gentics Software GmbH
+ * aloha-sales@gentics.com
+ * Licensed unter the terms of http://www.aloha-editor.com/license.html
+ */
+define(
+['aloha/jquery', 'aloha/registry'],
+function( jQuery, Registry ) {
+
+
+ /**
+ * Create an contentHandler from the given definition. Acts as a factory method
+ * for contentHandler.
+ *
+ * @param {Object} definition
+ */
+ return new ( Registry.extend({
+
+ createHandler: function( definition ) {
+
+ if ( typeof definition.handleContent != 'function' ) {
+ throw 'ContentHandler has no function handleContent().';
+ }
+
+ var AbstractContentHandler = Class.extend({
+ handleContent: function( content ) {
+ // Implement in subclass!
+ }
+ }, definition);
+
+ return new AbstractContentHandler();
+ },
+
+ handleContent: function ( content, options ) {
+ var handler,
+ handlers = this.getEntries();
+
+ if ( typeof options.contenthandler === 'undefined') {
+ options.contenthandler = [];
+ for ( handler in handlers ) {
+ if ( handlers.hasOwnProperty(handler) ) {
+ options.contenthandler.push(handler);
+ }
+ }
+ }
+
+ for ( handler in handlers ) {
+ if ( handlers.hasOwnProperty(handler) ) {
+ if (jQuery.inArray( handler, options.contenthandler ) < 0 ) {
+ continue;
+ }
+
+ if ( typeof handlers[handler].handleContent === 'function') {
+ content = handlers[handler].handleContent( content, options );
+ } else {
+ console.error( 'A valid content handler needs the method handleContent.' );
+ }
+ }
+ }
+
+ return content;
+ }
+ }))();
+});
560 assets/vendor/aloha/lib/aloha/core.js
@@ -0,0 +1,560 @@
+/*!
+* This file is part of Aloha Editor Project http://aloha-editor.org
+* Copyright © 2010-2011 Gentics Software GmbH, aloha@gentics.com
+* Contributors http://aloha-editor.org/contribution.php
+* Licensed unter the terms of http://www.aloha-editor.org/license.html
+*//*
+* Aloha Editor is free software: you can redistribute it and/or modify
+* it under the terms of the GNU Affero General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.*
+*
+* Aloha Editor is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
+*
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+define(
+
+[
+ 'aloha/jquery',
+ 'aloha/pluginmanager'
+],
+
+function ( jQuery, PluginManager ) {
+
+
+
+ //----------------------------------------
+ // Private variables
+ //----------------------------------------
+
+ /**
+ * Hash table that will be populated through the loadPlugins method.
+ * Maps the names of plugins with their urls for easy assess in the getPluginsUrl method
+ */
+ var pluginPaths = {};
+
+ /**
+ * Base Aloha Object
+ * @namespace Aloha
+ * @class Aloha The Aloha base object, which contains all the core functionality
+ * @singleton
+ */
+ jQuery.extend(true, Aloha, {
+
+ /**
+ * The Aloha Editor Version we are using
+ * It should be set by us and updated for the particular branch
+ * @property
+ */
+ version: '0.10.0',
+
+ /**
+ * Array of editables that are managed by Aloha
+ * @property
+ * @type Array
+ */
+ editables: [],
+
+ /**
+ * The currently active editable is referenced here
+ * @property
+ * @type Aloha.Editable
+ */
+ activeEditable: null,
+
+ /**
+ * settings object, which will contain all Aloha settings
+ * @cfg {Object} object Aloha's settings
+ */
+ settings: {},
+
+ /**
+ * defaults object, which will contain all Aloha defaults
+ * @cfg {Object} object Aloha's settings
+ */
+ defaults: {},
+
+ /**
+ * Namespace for ui components
+ */
+ ui: {},
+
+ /**
+ * This represents the name of the users OS. Could be:
+ * 'Mac', 'Linux', 'Win', 'Unix', 'Unknown'
+ * @property
+ * @type string
+ */
+ OSName: 'Unknown',
+
+ /**
+ * Which stage is the aloha init process at?
+ * @property
+ * @type string
+ */
+ stage: 'loadingAloha',
+
+ /**
+ * A list of loaded plugin names. Available after the
+ * "loadPlugins" stage.
+ *
+ * @property
+ * @type array
+ * @internal
+ */
+ loadedPlugins: [],
+
+ requirePaths: [],
+ /**
+ * Initialize the initialization process
+ */
+ init: function () {
+
+ // merge defaults and settings and provide all in settings
+ Aloha.settings = jQuery.extendObjects( true, {}, Aloha.defaults, Aloha.settings );
+
+ // initialize rangy. This is probably necessary here,
+ // because due to the current loading mechanism, rangy
+ // doesn't initialize itself in all browsers
+ if (window.rangy) {
+ window.rangy.init();
+ }
+
+ // Load & Initialise
+ Aloha.stage = 'loadPlugins';
+ Aloha.loadPlugins(function(){
+ Aloha.stage = 'initAloha';
+ Aloha.initAloha(function(){
+ Aloha.stage = 'initPlugins';
+ Aloha.initPlugins(function(){
+ Aloha.stage = 'initGui';
+ Aloha.initGui(function(){
+ Aloha.stage = 'alohaReady';
+ Aloha.trigger('aloha-ready');
+ });
+ });
+ });
+ });
+ },
+
+ /**
+ * Load Plugins
+ */
+ loadPlugins: function (next) {
+ // contains an array like [common/format, common/block]
+ var configuredPluginsWithBundle = this.getPluginsToBeLoaded();
+
+ if (configuredPluginsWithBundle.length) {
+ var paths = {},
+ pluginNames = [],
+ requiredInitializers = [],
+ pathsToPlugins = {};
+
+ // Background: We do not use CommonJS packages for our Plugins
+ // as this breaks the loading order when these modules have
+ // other dependencies.
+ // We "emulate" the commonjs modules with the path mapping.
+ /* require(
+ * { paths: {
+ * 'format': 'plugins/common/format/lib',
+ * 'format/nls': 'plugins/common/format/nls',
+ * ... for every plugin ...
+ * }
+ * },
+ * ['format/format-plugin', ... for every plugin ...],
+ * next <-- when everything is loaded, we continue
+ */
+ jQuery.each(configuredPluginsWithBundle, function (i, configuredPluginWithBundle) {
+ var tmp, bundleName, pluginName, bundlePath = '';
+
+ tmp = configuredPluginWithBundle.split('/');
+ bundleName = tmp[0];
+ pluginName = tmp[1];
+
+ // TODO assertion if pluginName or bundleName NULL _-> ERROR!!
+
+ if (Aloha.settings.basePath) {
+ bundlePath = Aloha.settings.basePath;
+ }
+
+ if (Aloha.settings.bundles && Aloha.settings.bundles[bundleName]) {
+ bundlePath += Aloha.settings.bundles[bundleName];
+ } else {
+ bundlePath += '../plugins/' + bundleName;
+ }
+
+ pluginNames.push(pluginName);
+ paths[pluginName] = bundlePath + '/' + pluginName + '/lib';
+
+ pathsToPlugins[pluginName] = bundlePath + '/' + pluginName;
+
+ // As the "nls" path lies NOT inside /lib/, but is a sibling to /lib/, we need
+ // to register it explicitely. The same goes for the "css" folder.
+ jQuery.each(['nls', 'css', 'vendor', 'res'], function() {
+ paths[pluginName + '/' + this] = bundlePath + '/' + pluginName + '/' + this;
+ });
+
+ requiredInitializers.push(pluginName + '/' + pluginName + '-plugin');
+ });
+
+ this.loadedPlugins = pluginNames;
+ this.requirePaths = paths;
+
+ // Main Require.js loading call, which fetches all the plugins.
+ require(
+ {
+ context: 'aloha',
+ paths: paths,
+ locale: this.settings.locale || this.defaults.locale || 'en'
+ },
+ requiredInitializers,
+ next
+ );
+
+ pluginPaths = pathsToPlugins;
+ } else {
+ next();
+ }
+ },
+
+ /**
+ * Fetches plugins the user wants to have loaded. Returns all plugins the user
+ * has specified with the data-plugins property as array, with the bundle
+ * name in front.
+ *
+ * @return array
+ * @internal
+ */
+ getPluginsToBeLoaded: function() {
+ // look for data-aloha-plugins attributes and load values
+ var
+ plugins = jQuery('[data-aloha-plugins]').data('aloha-plugins');
+
+ // Determine Plugins
+ if ( typeof plugins === 'string' && plugins !== "") {
+ return plugins.replace(/\s+/g, '').split(',');
+ }
+ // Return
+ return [];
+
+ },
+
+ /**
+ * Returns list of loaded plugins (without Bundle name)
+ *
+ * @return array
+ */
+ getLoadedPlugins: function() {
+ return this.loadedPlugins;
+ },
+
+ /**
+ * Returns true if a certain plugin is loaded, false otherwise.
+ */
+ isPluginLoaded: function(pluginName) {
+ var found = false;
+ jQuery.each(this.loadedPlugins, function() {
+ if (pluginName.toString() === this.toString()) {
+ found = true;
+ }
+ });
+ return found;
+ },
+
+ /**
+ * Initialise Aloha
+ */
+ initAloha: function(next){
+ // check browser version on init
+ // this has to be revamped, as
+ if (jQuery.browser.webkit && parseFloat(jQuery.browser.version) < 532.5 || // Chrome/Safari 4
+ jQuery.browser.mozilla && parseFloat(jQuery.browser.version) < 1.9 || // FF 3.5
+ jQuery.browser.msie && jQuery.browser.version < 7 || // IE 7
+ jQuery.browser.opera && jQuery.browser.version < 11 ) { // right now, Opera needs some work
+ if (window.console && window.console.log) {
+ window.console.log( 'Your browser is not supported.' );
+ }
+ }
+
+ // register the body click event to blur editables
+ jQuery('html').mousedown(function(e) {
+ // if an Ext JS modal is visible, we don't want to loose the focus on
+ // the editable as we assume that the user must have clicked somewhere
+ // in the modal... where else could he click?
+ // loosing the editable focus in this case hinders correct table
+ // column/row deletion, as the table module will clean it's selection
+ // as soon as the editable is deactivated. Fusubscriberthermore you'd have to
+ // refocus the editable again, which is just strange UX
+ if (Aloha.activeEditable && !Aloha.isMessageVisible() && !Aloha.eventHandled) {
+ Aloha.activeEditable.blur();
+ Aloha.activeEditable = null;
+ }
+ }).mouseup(function(e) {
+ Aloha.eventHandled = false;
+ });
+
+ // Initialise the base path to the aloha files
+ Aloha.settings.base = Aloha.getAlohaUrl();
+
+ // initialize the Log
+ Aloha.Log.init();
+
+ // initialize the error handler for general javascript errors
+ if ( Aloha.settings.errorhandling ) {
+ window.onerror = function (msg, url, linenumber) {
+ Aloha.Log.error(Aloha, 'Error message: ' + msg + '\nURL: ' + url + '\nLine Number: ' + linenumber);
+ // TODO eventually add a message to the message line?
+ return true;
+ };
+ }
+
+ // OS detection
+ if (navigator.appVersion.indexOf('Win') != -1) {
+ Aloha.OSName = 'Win';
+ }
+ if (navigator.appVersion.indexOf('Mac') != -1) {
+ Aloha.OSName = 'Mac';
+ }
+ if (navigator.appVersion.indexOf('X11') != -1) {
+ Aloha.OSName = 'Unix';
+ }
+ if (navigator.appVersion.indexOf('Linux') != -1) {
+ Aloha.OSName = 'Linux';
+ }
+
+ try {
+ // this will disable browsers image resizing facilities
+ // disable resize handles
+ var supported;
+ try {
+ supported = document.queryCommandSupported( 'enableObjectResizing' );
+ } catch ( e ) {
+ supported = false;
+ Aloha.Log.log( 'enableObjectResizing is not supported.' );
+ }
+
+ if ( supported ) {
+ document.execCommand( 'enableObjectResizing', false, false);
+ Aloha.Log.log( 'enableObjectResizing disabled.' );
+ }
+ } catch (e) {
+ Aloha.Log.error( e, 'Could not disable enableObjectResizing' );
+ // this is just for others, who will not support disabling enableObjectResizing
+ }
+ // Forward
+ next();
+ },
+
+ /**
+ * Loads plugins Aloha
+ * @return void
+ */
+ initPlugins: function (next) {
+ PluginManager.init(function(){
+ next();
+ }, this.getLoadedPlugins() );
+ },
+
+ /**
+ * Loads GUI components
+ * @return void
+ */
+ initGui: function (next) {
+
+ Aloha.RepositoryManager.init();
+
+ // activate registered editables
+ for (var i = 0, editablesLength = Aloha.editables.length; i < editablesLength; i++) {
+ if ( !Aloha.editables[i].ready ) {
+ Aloha.editables[i].init();
+ }
+ }
+
+ // Forward
+ next();
+ },
+
+ /**