kiteditor 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. data/POST_INSTALL +21 -0
  2. data/{vendor → app}/assets/images/mercury/button.png +0 -0
  3. data/{vendor → app}/assets/images/mercury/close.png +0 -0
  4. data/app/assets/images/mercury/default-snippet.png +0 -0
  5. data/{vendor → app}/assets/images/mercury/loading-dark.gif +0 -0
  6. data/{vendor → app}/assets/images/mercury/loading-light.gif +0 -0
  7. data/{vendor → app}/assets/images/mercury/missing-image.png +0 -0
  8. data/{vendor → app}/assets/images/mercury/search-icon.png +0 -0
  9. data/{vendor → app}/assets/images/mercury/temp-logo.png +0 -0
  10. data/app/assets/images/mercury/toolbar/editable/buttons.png +0 -0
  11. data/app/assets/images/mercury/toolbar/primary/_expander.png +0 -0
  12. data/app/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
  13. data/app/assets/images/mercury/toolbar/primary/action.png +0 -0
  14. data/app/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
  15. data/app/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
  16. data/app/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
  17. data/app/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
  18. data/app/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
  19. data/app/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
  20. data/app/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
  21. data/app/assets/images/mercury/toolbar/primary/preview.png +0 -0
  22. data/app/assets/images/mercury/toolbar/primary/redo.png +0 -0
  23. data/app/assets/images/mercury/toolbar/primary/save.png +0 -0
  24. data/app/assets/images/mercury/toolbar/primary/snippetpanel.png +0 -0
  25. data/app/assets/images/mercury/toolbar/primary/tools.png +0 -0
  26. data/app/assets/images/mercury/toolbar/primary/undo.png +0 -0
  27. data/app/assets/images/mercury/toolbar/primary/user.png +0 -0
  28. data/app/assets/images/mercury/toolbar/snippets/buttons.png +0 -0
  29. data/{vendor/assets/javascripts/mercury/dependencies → app/assets/javascripts}/jquery-1.7.js +0 -0
  30. data/{vendor → app}/assets/javascripts/mercury.js +60 -87
  31. data/{vendor → app}/assets/javascripts/mercury/dependencies/jquery-ui-1.8.13.custom.js +0 -0
  32. data/{vendor → app}/assets/javascripts/mercury/dependencies/jquery.additions.js +103 -13
  33. data/{vendor → app}/assets/javascripts/mercury/dependencies/jquery.htmlClean.js +0 -0
  34. data/{vendor → app}/assets/javascripts/mercury/dependencies/liquidmetal.js +0 -0
  35. data/{vendor → app}/assets/javascripts/mercury/dependencies/showdown.js +0 -0
  36. data/{vendor → app}/assets/javascripts/mercury/dialog.js.coffee +0 -0
  37. data/{vendor → app}/assets/javascripts/mercury/dialogs/backcolor.js.coffee +0 -0
  38. data/{vendor → app}/assets/javascripts/mercury/dialogs/forecolor.js.coffee +1 -1
  39. data/{vendor → app}/assets/javascripts/mercury/dialogs/formatblock.js.coffee +0 -0
  40. data/{vendor → app}/assets/javascripts/mercury/dialogs/snippetpanel.js.coffee +1 -1
  41. data/{vendor → app}/assets/javascripts/mercury/dialogs/style.js.coffee +0 -0
  42. data/{vendor → app}/assets/javascripts/mercury/finalize.js.coffee +0 -0
  43. data/{vendor → app}/assets/javascripts/mercury/history_buffer.js.coffee +0 -0
  44. data/{vendor → app}/assets/javascripts/mercury/lightview.js.coffee +38 -17
  45. data/app/assets/javascripts/mercury/locales/ar.locale.js.coffee +201 -0
  46. data/app/assets/javascripts/mercury/locales/da.locale.js.coffee +208 -0
  47. data/{vendor → app}/assets/javascripts/mercury/locales/de.locale.js.coffee +4 -10
  48. data/{vendor → app}/assets/javascripts/mercury/locales/es.locale.js.coffee +3 -9
  49. data/{vendor → app}/assets/javascripts/mercury/locales/example.local.js.coffee +3 -5
  50. data/{vendor → app}/assets/javascripts/mercury/locales/fr.locale.js.coffee +3 -9
  51. data/app/assets/javascripts/mercury/locales/hu.locale.js.coffee +209 -0
  52. data/{vendor → app}/assets/javascripts/mercury/locales/it.locale.js.coffee +3 -9
  53. data/{vendor → app}/assets/javascripts/mercury/locales/ko.local.js.coffee +4 -10
  54. data/{vendor → app}/assets/javascripts/mercury/locales/nl.locale.js.coffee +3 -9
  55. data/app/assets/javascripts/mercury/locales/pl.locale.js.coffee +213 -0
  56. data/{vendor → app}/assets/javascripts/mercury/locales/pt.locale.js.coffee +3 -9
  57. data/app/assets/javascripts/mercury/locales/ru.locale.js.coffee +200 -0
  58. data/{vendor → app}/assets/javascripts/mercury/locales/sv.local.js.coffee +3 -9
  59. data/{vendor → app}/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee +3 -9
  60. data/app/assets/javascripts/mercury/locales/uk.locale.js.coffee +200 -0
  61. data/app/assets/javascripts/mercury/locales/zh.local.js.coffee +203 -0
  62. data/app/assets/javascripts/mercury/mercury-compiled.js +10720 -0
  63. data/{vendor → app}/assets/javascripts/mercury/mercury.js.coffee +10 -1
  64. data/{vendor → app}/assets/javascripts/mercury/modal.js.coffee +62 -40
  65. data/{vendor → app}/assets/javascripts/mercury/modals/htmleditor.js.coffee +1 -0
  66. data/{vendor → app}/assets/javascripts/mercury/modals/insertcharacter.js.coffee +1 -0
  67. data/app/assets/javascripts/mercury/modals/insertlink.js.coffee +152 -0
  68. data/app/assets/javascripts/mercury/modals/insertmedia.js.coffee +132 -0
  69. data/{vendor → app}/assets/javascripts/mercury/modals/insertsnippet.js.coffee +2 -0
  70. data/app/assets/javascripts/mercury/modals/inserttable.js.coffee +68 -0
  71. data/{vendor → app}/assets/javascripts/mercury/native_extensions.js.coffee +0 -6
  72. data/{vendor → app}/assets/javascripts/mercury/page_editor.js.coffee +84 -50
  73. data/{vendor → app}/assets/javascripts/mercury/palette.js.coffee +1 -1
  74. data/{vendor → app}/assets/javascripts/mercury/panel.js.coffee +3 -2
  75. data/{vendor → app}/assets/javascripts/mercury/plugins/save_as_xml/mercury/page_editor.js.coffee +2 -2
  76. data/{vendor → app}/assets/javascripts/mercury/plugins/save_as_xml/plugin.js +0 -0
  77. data/{vendor → app}/assets/javascripts/mercury/region.js.coffee +18 -17
  78. data/{vendor/assets/javascripts/mercury/regions/editable.js.coffee → app/assets/javascripts/mercury/regions/full.js.coffee} +41 -31
  79. data/app/assets/javascripts/mercury/regions/image.js.coffee +93 -0
  80. data/{vendor/assets/javascripts/mercury/regions/markupable.js.coffee → app/assets/javascripts/mercury/regions/markdown.js.coffee} +29 -24
  81. data/{vendor → app}/assets/javascripts/mercury/regions/simple.js.coffee +11 -54
  82. data/{vendor/assets/javascripts/mercury/regions/snippetable.js.coffee → app/assets/javascripts/mercury/regions/snippets.js.coffee} +10 -9
  83. data/{vendor → app}/assets/javascripts/mercury/select.js.coffee +1 -1
  84. data/app/assets/javascripts/mercury/snippet.js.coffee +136 -0
  85. data/{vendor → app}/assets/javascripts/mercury/snippet_toolbar.js.coffee +19 -6
  86. data/{vendor → app}/assets/javascripts/mercury/statusbar.js.coffee +0 -0
  87. data/{vendor → app}/assets/javascripts/mercury/support/history.js +0 -0
  88. data/{vendor → app}/assets/javascripts/mercury/table_editor.js.coffee +16 -0
  89. data/{vendor → app}/assets/javascripts/mercury/toolbar.button.js.coffee +45 -30
  90. data/{vendor → app}/assets/javascripts/mercury/toolbar.button_group.js.coffee +2 -2
  91. data/{vendor → app}/assets/javascripts/mercury/toolbar.expander.js.coffee +4 -4
  92. data/{vendor → app}/assets/javascripts/mercury/toolbar.js.coffee +10 -6
  93. data/{vendor → app}/assets/javascripts/mercury/tooltip.js.coffee +0 -0
  94. data/{vendor → app}/assets/javascripts/mercury/uploader.js.coffee +37 -19
  95. data/app/assets/stylesheets/_mercury-bootstrap-overrides.scss +61 -0
  96. data/app/assets/stylesheets/_mercury-sass.scss +33 -0
  97. data/{vendor → app}/assets/stylesheets/mercury.css +1 -5
  98. data/{vendor → app}/assets/stylesheets/mercury/all_images.css.erb +6 -2
  99. data/app/assets/stylesheets/mercury/bootstrap-ish.css +1367 -0
  100. data/app/assets/stylesheets/mercury/bootstrap-overrides.css +61 -0
  101. data/{vendor → app}/assets/stylesheets/mercury/dialog.css +21 -8
  102. data/{vendor → app}/assets/stylesheets/mercury/lightview.css +6 -56
  103. data/app/assets/stylesheets/mercury/mercury.css +43 -0
  104. data/{vendor → app}/assets/stylesheets/mercury/modal.css +15 -32
  105. data/{vendor → app}/assets/stylesheets/mercury/statusbar.css +0 -0
  106. data/{vendor → app}/assets/stylesheets/mercury/toolbar.css +4 -1
  107. data/{vendor → app}/assets/stylesheets/mercury/tooltip.css +0 -0
  108. data/{vendor → app}/assets/stylesheets/mercury/uploader.css +4 -4
  109. data/app/helpers/mercury_helper.rb +7 -0
  110. data/app/views/layouts/mercury.html.erb +10 -20
  111. data/app/views/layouts/mercury.html.haml +19 -0
  112. data/app/views/layouts/mercury.html.slim +19 -0
  113. data/app/views/mercury/modals/character.html +1 -1
  114. data/app/views/mercury/modals/htmleditor.html +3 -7
  115. data/app/views/mercury/modals/link.html +37 -51
  116. data/app/views/mercury/modals/media.html +102 -0
  117. data/app/views/mercury/modals/table.html +79 -73
  118. data/app/views/mercury/panels/snippets.html +6 -1
  119. data/app/views/mercury/snippets/example/options.html.erb +23 -27
  120. data/app/views/mercury/snippets/no_options/preview.html.erb +1 -0
  121. data/config/routes.rb +9 -0
  122. data/features/generators/authentication.feature +10 -0
  123. data/features/generators/images.feature +41 -0
  124. data/features/generators/install.feature +21 -0
  125. data/features/loading/loading.feature +5 -2
  126. data/features/loading/user_interface.feature +9 -7
  127. data/features/regions/{editable → full}/advanced_editing.feature +0 -0
  128. data/features/regions/full/basic_editing.feature +198 -0
  129. data/features/regions/{editable → full}/inserting_links.feature +20 -19
  130. data/features/regions/{editable → full}/inserting_media.feature +36 -18
  131. data/features/regions/{editable → full}/inserting_snippets.feature +28 -18
  132. data/features/regions/{editable → full}/inserting_special_characters.feature +2 -2
  133. data/features/regions/full/inserting_tables.feature +109 -0
  134. data/features/regions/{editable → full}/pasting.feature +0 -0
  135. data/features/regions/{editable → full}/uploading_images.feature +0 -0
  136. data/features/regions/{markupable → image}/uploading_images.feature +0 -0
  137. data/features/regions/{markupable → markdown}/advanced_editing.feature +0 -0
  138. data/features/regions/{markupable → markdown}/basic_editing.feature +0 -0
  139. data/features/regions/{markupable → markdown}/inserting_links.feature +0 -0
  140. data/features/regions/{markupable → markdown}/inserting_media.feature +0 -0
  141. data/features/regions/{markupable → markdown}/inserting_snippets.feature +0 -0
  142. data/features/regions/{markupable → markdown}/inserting_special_characters.feature +0 -0
  143. data/features/regions/{markupable → markdown}/inserting_tables.feature +0 -0
  144. data/features/regions/{snippetable/advanced_editing.feature → markdown/uploading_images.feature} +0 -0
  145. data/features/regions/simple/basic_editing.feature +5 -0
  146. data/features/regions/{snippetable/basic_editing.feature → snippets/advanced_editing.feature} +0 -0
  147. data/features/regions/{snippetable/inserting_snippets.feature → snippets/basic_editing.feature} +0 -0
  148. data/{vendor/assets/javascripts/mercury/locales/da.locale.js.coffee → features/regions/snippets/inserting_snippets.feature} +0 -0
  149. data/features/saving/saving.feature +8 -8
  150. data/features/step_definitions/custom_web_steps.rb +22 -0
  151. data/features/step_definitions/generator_steps.rb +23 -0
  152. data/features/step_definitions/mercury_steps.rb +1 -438
  153. data/features/support/aruba.rb +28 -0
  154. data/features/support/env.rb +11 -1
  155. data/features/support/selectors.rb +23 -0
  156. data/lib/generators/mercury/install/authentication/authentication_generator.rb +17 -0
  157. data/lib/generators/mercury/install/images/images_generator.rb +47 -0
  158. data/{app/models/mercury/image.rb → lib/generators/mercury/install/images/templates/ar_paperclip_image.rb} +7 -0
  159. data/{db/migrate/20110526035601_create_mercury_images.rb → lib/generators/mercury/install/images/templates/ar_paperclip_image_migration.rb} +0 -0
  160. data/{app/controllers/mercury → lib/generators/mercury/install/images/templates}/images_controller.rb +0 -0
  161. data/lib/generators/mercury/install/{templates → images/templates}/mongoid_paperclip_image.rb +0 -0
  162. data/lib/generators/mercury/install/install_generator.rb +12 -23
  163. data/lib/mercury-rails.rb +1 -2
  164. data/lib/mercury/authentication.rb +1 -0
  165. data/lib/mercury/cucumber/step_definitions.rb +13 -0
  166. data/lib/mercury/cucumber/step_definitions/mercury_steps.rb +408 -0
  167. data/{features → lib/mercury/cucumber}/support/mercury_contents.rb +3 -3
  168. data/{features → lib/mercury/cucumber}/support/mercury_selectors.rb +0 -20
  169. data/lib/mercury/engine.rb +19 -0
  170. data/lib/mercury/rails.rb +5 -0
  171. data/lib/mercury/version.rb +3 -0
  172. data/spec/dummy/Rakefile +7 -0
  173. data/spec/dummy/app/assets/javascripts/application.js +0 -0
  174. data/spec/dummy/app/assets/javascripts/prototype.js +6082 -0
  175. data/spec/dummy/app/assets/stylesheets/application.css.scss +110 -0
  176. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  177. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  178. data/spec/dummy/app/views/layouts/mercury.html.erb +28 -0
  179. data/spec/dummy/config.ru +4 -0
  180. data/spec/dummy/config/application.rb +58 -0
  181. data/spec/dummy/config/boot.rb +10 -0
  182. data/spec/dummy/config/database.yml +10 -0
  183. data/spec/dummy/config/environment.rb +5 -0
  184. data/spec/dummy/config/environments/development.rb +37 -0
  185. data/spec/dummy/config/environments/production.rb +67 -0
  186. data/spec/dummy/config/environments/test.rb +37 -0
  187. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  188. data/spec/dummy/config/initializers/inflections.rb +15 -0
  189. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  190. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  191. data/spec/dummy/config/initializers/session_store.rb +8 -0
  192. data/spec/dummy/config/initializers/teabag.rb +9 -0
  193. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  194. data/spec/dummy/config/locales/en.yml +5 -0
  195. data/spec/dummy/config/routes.rb +5 -0
  196. data/spec/dummy/db/.gitkeep +0 -0
  197. data/spec/dummy/public/500.html +25 -0
  198. data/spec/dummy/public/blank.html +1 -0
  199. data/spec/dummy/public/favicon.ico +0 -0
  200. data/spec/dummy/public/images/bunny.gif +0 -0
  201. data/spec/dummy/public/images/bunny2.jpg +0 -0
  202. data/spec/dummy/public/index.html +279 -0
  203. data/spec/dummy/script/rails +6 -0
  204. data/spec/javascripts/{templates → fixtures}/mercury/dialog.html +0 -0
  205. data/spec/javascripts/{templates → fixtures}/mercury/dialogs/backcolor.html +0 -0
  206. data/spec/javascripts/{templates → fixtures}/mercury/dialogs/forecolor.html +0 -0
  207. data/spec/javascripts/{templates → fixtures}/mercury/dialogs/formatblock.html +0 -0
  208. data/spec/javascripts/{templates → fixtures}/mercury/dialogs/snippetpanel.html +0 -0
  209. data/spec/javascripts/{templates → fixtures}/mercury/dialogs/style.html +0 -0
  210. data/spec/javascripts/{templates → fixtures}/mercury/lightview.html +0 -0
  211. data/spec/javascripts/{templates → fixtures}/mercury/modal.html +0 -0
  212. data/spec/javascripts/{templates → fixtures}/mercury/modals/htmleditor.html +0 -0
  213. data/spec/javascripts/{templates → fixtures}/mercury/modals/insertcharacter.html +0 -0
  214. data/spec/javascripts/fixtures/mercury/modals/insertlink.html +67 -0
  215. data/spec/javascripts/fixtures/mercury/modals/insertmedia.html +87 -0
  216. data/spec/javascripts/{templates → fixtures}/mercury/modals/insertsnippet.html +0 -0
  217. data/spec/javascripts/fixtures/mercury/modals/inserttable.html +73 -0
  218. data/spec/javascripts/{templates → fixtures}/mercury/page_editor.html +4 -4
  219. data/spec/javascripts/{templates → fixtures}/mercury/palette.html +0 -0
  220. data/spec/javascripts/{templates → fixtures}/mercury/panel.html +0 -0
  221. data/spec/javascripts/fixtures/mercury/region.html +6 -0
  222. data/spec/javascripts/fixtures/mercury/regions/full.html +1 -0
  223. data/spec/javascripts/fixtures/mercury/regions/image.html +1 -0
  224. data/spec/javascripts/fixtures/mercury/regions/markdown.html +1 -0
  225. data/spec/javascripts/fixtures/mercury/regions/simple.html +1 -0
  226. data/spec/javascripts/fixtures/mercury/regions/snippets.html +4 -0
  227. data/spec/javascripts/{templates → fixtures}/mercury/select.html +0 -0
  228. data/spec/javascripts/{templates → fixtures}/mercury/snippet.html +0 -0
  229. data/spec/javascripts/{templates → fixtures}/mercury/snippet_toolbar.html +0 -0
  230. data/spec/javascripts/{templates → fixtures}/mercury/statusbar.html +0 -0
  231. data/spec/javascripts/{templates → fixtures}/mercury/table_editor.html +0 -0
  232. data/spec/javascripts/{templates → fixtures}/mercury/toolbar.button.html +0 -0
  233. data/spec/javascripts/{templates → fixtures}/mercury/toolbar.button_group.html +0 -0
  234. data/spec/javascripts/{templates → fixtures}/mercury/toolbar.expander.html +0 -0
  235. data/spec/javascripts/{templates → fixtures}/mercury/toolbar.html +0 -0
  236. data/spec/javascripts/{templates → fixtures}/mercury/tooltip.html +0 -0
  237. data/spec/javascripts/{templates → fixtures}/mercury/uploader.html +0 -0
  238. data/spec/javascripts/mercury/{dialog_spec.js.coffee → dialog_spec.coffee} +11 -12
  239. data/spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee +2 -3
  240. data/spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee +3 -4
  241. data/spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee +2 -3
  242. data/spec/javascripts/mercury/dialogs/snippetpanel_spec.js.coffee +2 -3
  243. data/spec/javascripts/mercury/dialogs/style_spec.js.coffee +2 -3
  244. data/spec/javascripts/mercury/lightview_spec.js.coffee +180 -142
  245. data/spec/javascripts/mercury/mercury_spec.js.coffee +19 -13
  246. data/spec/javascripts/mercury/modal_spec.js.coffee +192 -148
  247. data/spec/javascripts/mercury/modals/htmleditor_spec.js.coffee +4 -5
  248. data/spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee +2 -3
  249. data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +107 -34
  250. data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +106 -26
  251. data/spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee +2 -3
  252. data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +50 -40
  253. data/spec/javascripts/mercury/page_editor_spec.js.coffee +124 -80
  254. data/spec/javascripts/mercury/palette_spec.js.coffee +4 -5
  255. data/spec/javascripts/mercury/panel_spec.js.coffee +9 -12
  256. data/spec/javascripts/mercury/region_spec.js.coffee +22 -17
  257. data/spec/javascripts/mercury/regions/{editable_spec.js.coffee → full_spec.js.coffee} +26 -28
  258. data/spec/javascripts/mercury/regions/image_spec.js.coffee +33 -0
  259. data/spec/javascripts/mercury/regions/{markupable_spec.js.coffee → markdown_spec.js.coffee} +32 -34
  260. data/spec/javascripts/mercury/regions/simple_spec.js.coffee +32 -0
  261. data/spec/javascripts/mercury/regions/{snippetable_spec.js.coffee → snippets_spec.js.coffee} +54 -55
  262. data/spec/javascripts/mercury/select_spec.js.coffee +4 -5
  263. data/spec/javascripts/mercury/snippet_spec.js.coffee +92 -16
  264. data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +31 -16
  265. data/spec/javascripts/mercury/statusbar_spec.js.coffee +9 -10
  266. data/spec/javascripts/mercury/table_editor_spec.js.coffee +1 -2
  267. data/spec/javascripts/mercury/toolbar.button_group_spec.js.coffee +7 -9
  268. data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +55 -26
  269. data/spec/javascripts/mercury/toolbar.expander_spec.js.coffee +13 -13
  270. data/spec/javascripts/mercury/toolbar_spec.js.coffee +43 -14
  271. data/spec/javascripts/mercury/tooltip_spec.js.coffee +1 -2
  272. data/spec/javascripts/mercury/uploader_spec.js.coffee +47 -33
  273. data/spec/javascripts/spec_helper.coffee +4 -0
  274. data/spec/javascripts/{spec_helper.js → support/event_simulation.js} +0 -2
  275. data/spec/teabag_env.rb +32 -0
  276. metadata +366 -196
  277. data/features/regions/editable/basic_editing.feature +0 -195
  278. data/features/regions/editable/inserting_tables.feature +0 -109
  279. data/spec/javascripts/templates/mercury/modals/insertlink.html +0 -30
  280. data/spec/javascripts/templates/mercury/modals/insertmedia.html +0 -35
  281. data/spec/javascripts/templates/mercury/modals/inserttable.html +0 -27
  282. data/spec/javascripts/templates/mercury/region.html +0 -2
  283. data/spec/javascripts/templates/mercury/regions/editable.html +0 -3
  284. data/spec/javascripts/templates/mercury/regions/snippetable.html +0 -4
  285. data/vendor/assets/javascripts/mercury/modals/inserttable.js.coffee +0 -54
  286. data/vendor/assets/javascripts/mercury_loader.js +0 -193
  287. data/vendor/assets/javascripts/mercury_overrides.js +0 -6
  288. data/vendor/assets/stylesheets/mercury/mercury.css +0 -151
  289. data/vendor/assets/stylesheets/mercury_overrides.css +0 -17
@@ -0,0 +1,61 @@
1
+ /*
2
+ * Bootsrap Overrides (overrides what's in bootstrap-ish)
3
+ *---------------------------------------------------------------------------*/
4
+ .btn-group > .btn {
5
+ margin-right: 0;
6
+ }
7
+ form {
8
+ margin-bottom: 0;
9
+ }
10
+ fieldset {
11
+ margin-bottom: 15px;
12
+ background: #F6F6F6;
13
+ border: 1px solid #CCC;
14
+ border-radius: 7px;
15
+ padding: 10px;
16
+ }
17
+ legend {
18
+ display: block;
19
+ position: relative;
20
+ margin-left: 10px;
21
+ margin-bottom: 0;
22
+ font-weight: bold;
23
+ width: auto;
24
+ padding: 0;
25
+ font-size: 12px;
26
+ color: #333333;
27
+ border: 0;
28
+ line-height: 1px;
29
+ }
30
+ select {
31
+ width: auto;
32
+ }
33
+ .form-actions {
34
+ margin-top: 0;
35
+ margin-bottom: 0;
36
+ background-color: transparent;
37
+ }
38
+ .control-group {
39
+ margin-bottom: 0;
40
+ }
41
+ legend + .control-group {
42
+ margin-top: 0;
43
+ -webkit-margin-top-collapse: separate;
44
+ }
45
+ .form-horizontal .control-group {
46
+ margin-bottom: 0;
47
+ }
48
+ .form-horizontal .controls {
49
+ margin-left: 150px;
50
+ }
51
+ .form-horizontal hr {
52
+ margin-left: 150px;
53
+ border: 0;
54
+ border-top: 1px solid #ccc;
55
+ }
56
+ label input[type=radio] {
57
+ margin-right: 5px;
58
+ }
59
+ .form-actions {
60
+ padding-bottom: 0;
61
+ }
@@ -15,11 +15,12 @@
15
15
  border-radius: 2px;
16
16
  -moz-border-radius: 2px;
17
17
  margin-top: -1px;
18
- background-color: #E2E1E2;
18
+ background-color: #FFFFFF;
19
19
  box-shadow: 1px 1px 4px rgba(0,0,0, .5);
20
20
  -moz-box-shadow: 1px 1px 4px rgba(0,0,0, .5);
21
21
  font-family: Helvetica, Tahoma, Arial, sans-serif;
22
22
  font-size: 8.5pt;
23
+ color: #333;
23
24
  }
24
25
  .mercury-dialog.loading,
25
26
  .mercury-select.loading,
@@ -40,15 +41,15 @@
40
41
  * Panels
41
42
  *----------------------------------------------------------------------------*/
42
43
  .mercury-panel {
43
- position: absolute;
44
+ position: fixed;
44
45
  z-index: 10011;
45
- background-color: #111;
46
+ background-color: #f5f5f5;
46
47
  opacity: .9;
47
48
  box-shadow: 1px 1px 4px rgba(0,0,0, .5);
48
49
  -moz-box-shadow: 1px 1px 4px rgba(0,0,0, .5);
49
- border-radius: 4px;
50
- -moz-border-radius: 4px;
51
- color: #FFF;
50
+ border-radius: 6px;
51
+ -moz-border-radius: 6px;
52
+ color: #333;
52
53
  font-family: Helvetica, Tahoma, Arial, sans-serif;
53
54
  font-size: 9.5pt;
54
55
  max-width: 500px;
@@ -64,19 +65,29 @@
64
65
  margin: 0;
65
66
  background: #333;
66
67
  white-space: nowrap;
68
+ line-height: normal;
67
69
  }
68
70
  .mercury-panel h1 {
69
71
  -webkit-user-select: none;
70
72
  -moz-user-select: none;
71
73
  user-select: none;
72
- font-size: 10pt;
74
+ -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
75
+ -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
76
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
73
77
  -moz-border-radius-topleft: 4px;
74
78
  -moz-border-radius-topright: 4px;
75
79
  border-top-left-radius: 4px;
76
80
  border-top-right-radius: 4px;
81
+ color: #f5f5f5;
82
+ font-size: 10pt;
83
+ text-shadow: 1px 1px 2px rgba(0,0,0, .9);
84
+ border-bottom: 1px solid #222;
77
85
  height: 15px;
78
86
  cursor: move;
79
- text-shadow: 1px 1px 2px rgba(0,0,0, .9);
87
+ }
88
+ .mercury-panel h1 span {
89
+ display: block;
90
+ width: 100%;
80
91
  }
81
92
  .mercury-panel h1 a.mercury-panel-close {
82
93
  position: absolute;
@@ -176,6 +187,7 @@
176
187
  -moz-box-sizing: border-box;
177
188
  -webkit-box-sizing: border-box;
178
189
  width: 100%;
190
+ height: auto;
179
191
  padding-left: 20px;
180
192
  background-color: #FFF;
181
193
  background-repeat: no-repeat;
@@ -192,6 +204,7 @@
192
204
  }
193
205
  .mercury-snippet-panel ul li img {
194
206
  float: left;
207
+ cursor: move;
195
208
  }
196
209
  .mercury-snippet-panel ul li h4,
197
210
  .mercury-snippet-panel ul li .description {
@@ -10,13 +10,13 @@
10
10
  height: 100%;
11
11
  opacity: 0;
12
12
  display: none;
13
- background: rgba(0, 0, 0, .65);
13
+ background: rgba(255, 255, 255, .8);
14
14
  }
15
15
  .mercury-lightview {
16
16
  position: fixed;
17
17
  z-index: 10040;
18
18
  top: 20px;
19
- background: #000;
19
+ background: rgba(239, 239, 239, .7);
20
20
  opacity: 0;
21
21
  overflow: hidden;
22
22
  display: none;
@@ -28,7 +28,7 @@
28
28
  font: normal normal normal 12px/normal Helvetica, Tahoma, Arial, sans-serif;
29
29
  -moz-box-sizing: border-box;
30
30
  box-sizing: border-box;
31
- color: #CCC;
31
+ color: #000;
32
32
  }
33
33
  .mercury-lightview.loading {
34
34
  background-repeat: no-repeat;
@@ -40,8 +40,8 @@
40
40
  .mercury-lightview h1.mercury-lightview-title {
41
41
  margin: 0;
42
42
  padding: 10px 20px 8px;
43
- border-bottom: 1px solid #222;
44
- color: #FFF;
43
+ border-bottom: 1px solid #CCC;
44
+ color: #000;
45
45
  -webkit-user-select: none;
46
46
  -moz-user-select: none;
47
47
  user-select: none;
@@ -70,38 +70,6 @@
70
70
  border-top: 1px solid #333;
71
71
  text-align: right;
72
72
  }
73
- /*
74
- * Forms
75
- *----------------------------------------------------------------------------*/
76
- .mercury-lightview form fieldset {
77
- background: #111;
78
- border: 1px solid #333;
79
- }
80
- .mercury-lightview form fieldset.buttons {
81
- background: none;
82
- border: none;
83
- }
84
- .mercury-lightview form select,
85
- .mercury-lightview form input[type="text"],
86
- .mercury-lightview form input[type="password"],
87
- .mercury-lightview form textarea,
88
- .mercury-lightview form input.text {
89
- background: #444;
90
- color: #FFF;
91
- border: 2px solid #555;
92
- -moz-box-shadow: inset 0 0 3px #000000;
93
- -webkit-box-shadow: inset 0 0 3px #000000;
94
- box-shadow: inset 0 0 3px #000000;
95
- }
96
- .mercury-lightview form input[type="button"] {
97
- border: 2px solid #555;
98
- border-radius: 4px;
99
- background: #222;
100
- color: #FFF;
101
- }
102
- .mercury-lightview hr {
103
- border-color: #333;
104
- }
105
73
  /*
106
74
  * Specific Lightviews
107
75
  *----------------------------------------------------------------------------*/
@@ -129,23 +97,5 @@
129
97
  color: #09F;
130
98
  }
131
99
  #mercury_about a:hover {
132
- color: #FFF;
133
- }
134
- /* character */
135
- .mercury-lightview #mercury_character .character {
136
- border: 1px solid #444;
137
- background: #222;
138
- }
139
- .mercury-lightview #mercury_character .character:hover {
140
- background: #555;
141
- border: 1px solid #CCC;
142
- }
143
- /* table */
144
- .mercury-lightview #mercury_table #table_display {
145
- background: #222;
146
- border: 1px solid #444;
147
- height: 301px;
148
- }
149
- .mercury-lightview #mercury_table #table_display td.selected {
150
- background: #09F;
100
+ color: #333;
151
101
  }
@@ -0,0 +1,43 @@
1
+ /*
2
+ *= require_self
3
+ *= require ./bootstrap-overrides
4
+ *= require ./dialog
5
+ *= require ./lightview
6
+ *= require ./modal
7
+ *= require ./statusbar
8
+ *= require ./toolbar
9
+ *= require ./tooltip
10
+ *= require ./uploader
11
+ *= require ./all_images
12
+ */
13
+
14
+ /*
15
+ * General Layout
16
+ *---------------------------------------------------------------------------*/
17
+
18
+ /* Disable text sizing in webkit (ipad/iphone etc -- should apply to mercury only) */
19
+ html {
20
+ -webkit-text-size-adjust: none;
21
+ }
22
+
23
+ html, body {
24
+ -webkit-transition: -webkit-transform 3s;
25
+ margin: 0;
26
+ padding: 0;
27
+ }
28
+
29
+ .mercury-iframe {
30
+ position: absolute;
31
+ top: 0;
32
+ width: 100%;
33
+ visibility: hidden;
34
+ }
35
+ .mercury-focusable {
36
+ position: absolute;
37
+ opacity: 0;
38
+ }
39
+
40
+ .filter {
41
+ margin: 0;
42
+ padding: 0;
43
+ }
@@ -10,7 +10,7 @@
10
10
  height: 100%;
11
11
  opacity: 0;
12
12
  display: none;
13
- background: rgba(0,0,0, .65);
13
+ background: rgba(255, 255, 255, .8);
14
14
  }
15
15
  .mercury-modal {
16
16
  position: fixed;
@@ -98,40 +98,30 @@
98
98
  .mercury-modal .mercury-display-pane-container {
99
99
  overflow: auto;
100
100
  margin: -20px -20px 0;
101
- padding: 20px 20px 10px;
101
+ padding: 20px 20px 0;
102
102
  }
103
103
  .mercury-modal .mercury-display-pane-container .mercury-display-pane {
104
104
  float: left;
105
105
  }
106
106
  .mercury-modal .mercury-display-controls {
107
- padding: 15px 0 0;
107
+ padding-right: 0;
108
108
  border-top: 1px solid #CCC;
109
109
  text-align: right;
110
110
  }
111
111
  /*
112
- * Forms
112
+ * Specific Modals (eg. htmlEditor)
113
113
  *----------------------------------------------------------------------------*/
114
- .mercury-modal textarea {
114
+ /* html editor */
115
+ #mercury_html_editor textarea {
115
116
  resize: none;
116
117
  padding: 0;
117
118
  box-sizing: border-box;
118
119
  -moz-box-sizing: border-box;
119
120
  -webkit-box-sizing: border-box;
120
- }
121
- /*
122
- * Specific Modals (eg. htmlEditor)
123
- *----------------------------------------------------------------------------*/
124
- /* html editor */
125
- #mercury_html_editor textarea {
126
121
  margin: 0 0 -2px 0;
127
- padding: 0;
128
122
  border: 2px solid #CCC;
129
123
  width: 100%;
130
124
  }
131
- #mercury_html_editor .mercury-modal-controls {
132
- border: 0;
133
- margin-top: -2px;
134
- }
135
125
  /* character */
136
126
  #mercury_character .character {
137
127
  float: left;
@@ -156,28 +146,21 @@
156
146
  }
157
147
  /* table */
158
148
  #mercury_table #table_display {
159
- width: 285px;
160
- height: 285px;
161
149
  float: left;
150
+ margin-right: 13px;
151
+ overflow: auto;
152
+ padding: 0;
153
+ }
154
+ #mercury_table #table_display .controls {
155
+ margin: 0;
156
+ width: 225px;
157
+ height: 259px;
162
158
  padding: 10px;
163
- background: #F6F6F6;
164
- border: 1px solid #CCC;
165
- border-radius: 7px;
166
- -moz-border-radius: 7px;
167
- overflow: auto;
168
159
  }
169
160
  #mercury_table #table_display table {
170
161
  width: 100%;
171
162
  height: 100%;
172
163
  }
173
- #mercury_table #table_display td.selected {
164
+ #mercury_table #table_display .selected {
174
165
  background: #09F;
175
166
  }
176
- #mercury_table #table_options {
177
- width: 383px;
178
- float: left;
179
- margin-left: 10px;
180
- }
181
- #mercury_table #table_options .inputs:first-child label {
182
- width: 36%
183
- }
@@ -46,6 +46,9 @@
46
46
  width: 1px;
47
47
  background: #727272;
48
48
  }
49
+ .mercury-button {
50
+ cursor: pointer;
51
+ }
49
52
  .mercury-button em {
50
53
  display: block;
51
54
  font-style: normal;
@@ -253,7 +256,7 @@
253
256
  .mercury-editable-toolbar .mercury-htmlEditor-button { background-position: -612px 0 }
254
257
  .mercury-editable-toolbar .mercury-htmlEditor-button.active { background-position: -612px -18px }
255
258
  /*
256
- * Toolbar: Snippetable Region Toolbar
259
+ * Toolbar: Snippets Region Toolbar
257
260
  *----------------------------------------------------------------------------*/
258
261
  .mercury-snippet-toolbar {
259
262
  position: absolute;
@@ -12,7 +12,7 @@
12
12
  width: 100%;
13
13
  height: 100%;
14
14
  opacity: .95;
15
- background: rgba(0, 0, 0, .65);
15
+ background: rgba(255, 255, 255, .8);
16
16
  }
17
17
  .mercury-uploader {
18
18
  position: absolute;
@@ -23,13 +23,13 @@
23
23
  height: 150px;
24
24
  overflow: hidden;
25
25
  padding: 15px;
26
- background: rgba(0,0,0, .70);
26
+ background: rgba(239, 239, 239, .70);
27
27
  border-radius: 10px;
28
28
  -moz-border-radius: 10px;
29
29
  -moz-box-shadow: 0 0 40px rgba(0, 0, 0, .9);
30
30
  box-shadow: 0 0 40px rgba(0, 0, 0, .9);
31
31
  font: normal normal normal 12px/normal Helvetica, Tahoma, Arial, sans-serif;
32
- color: #CCC;
32
+ color: #000;
33
33
  }
34
34
  .mercury-uploader .mercury-uploader-preview {
35
35
  float: left;
@@ -95,9 +95,9 @@
95
95
  background: -moz-repeating-linear-gradient(top left -30deg, rgba(255,255,255, 0.17), rgba(255,255,255, 0.17) 15px, rgba(255,255,255, 0) 15px, rgba(255,255,255, 0) 30px),
96
96
  -moz-linear-gradient(rgba(255,255,255, 0.1) 0%, rgba(255,255,255, 0.37) 100%);
97
97
  background-color: #09F;
98
+ border: 1px solid #0083DA;
98
99
  box-shadow: inset 0 1px 0 0 rgba(255,255,255, 0.4), inset 0 -1px 1px rgba(0,0,0, 0.2);
99
100
  -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255, 0.4), inset 0 -1px 1px rgba(0,0,0, 0.2);
100
- border: 1px solid #0083DA;
101
101
  }
102
102
  .mercury-uploader .mercury-uploader-progress div.mercury-uploader-indicator div b {
103
103
  display: none;
@@ -0,0 +1,7 @@
1
+ module MercuryHelper
2
+
3
+ def mercury_edit_path(path = nil)
4
+ mercury_engine.mercury_editor_path(path.nil? ? request.path.gsub(/^\/\/?(editor)?/, '') : path)
5
+ end
6
+
7
+ end