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
@@ -1,8 +1,7 @@
1
1
  describe "Mercury.Toolbar", ->
2
2
 
3
- template 'mercury/toolbar.html'
4
-
5
3
  beforeEach ->
4
+ fixture.load('mercury/toolbar.html')
6
5
  $.fx.off = true
7
6
  spyOn($, 'ajax').andCallFake (url, options) =>
8
7
  options.success('data') if options.success
@@ -16,10 +15,10 @@ describe "Mercury.Toolbar", ->
16
15
  beforeEach ->
17
16
  @buildSpy = spyOn(Mercury.Toolbar.prototype, 'build').andCallFake(=>)
18
17
  @bindEventsSpy = spyOn(Mercury.Toolbar.prototype, 'bindEvents').andCallFake(=>)
19
- @toolbar = new Mercury.Toolbar({appendTo: '#test', foo: true})
18
+ @toolbar = new Mercury.Toolbar({appendTo: fixture.el, foo: true})
20
19
 
21
20
  it "accepts options as an argument", ->
22
- expect(@toolbar.options).toEqual({appendTo: '#test', foo: true})
21
+ expect(@toolbar.options).toEqual({appendTo: fixture.el, foo: true})
23
22
 
24
23
  it "calls build", ->
25
24
  expect(@buildSpy.callCount).toEqual(1)
@@ -48,7 +47,7 @@ describe "Mercury.Toolbar", ->
48
47
  it "builds out toolbar elements from the configuration", ->
49
48
  expect($('.mercury-primary-toolbar').length).toEqual(1)
50
49
  expect($('.mercury-editable-toolbar').length).toEqual(1)
51
- expect($('.mercury-editable-toolbar').data('regions')).toEqual('editable,markupable')
50
+ expect($('.mercury-editable-toolbar').data('regions')).toEqual('full,markdown')
52
51
 
53
52
  it "builds buttons etc.", ->
54
53
  expect(@buildButtonSpy.callCount).toBeGreaterThan(10)
@@ -82,7 +81,7 @@ describe "Mercury.Toolbar", ->
82
81
  describe "#buildButton", ->
83
82
 
84
83
  beforeEach ->
85
- @toolbar = new Mercury.Toolbar({appendTo: '#test'})
84
+ @toolbar = new Mercury.Toolbar({appendTo: fixture.el})
86
85
 
87
86
  it "throws an exception when invalid options are passed", ->
88
87
  expect(=> @toolbar.buildButton('foo', false)).toThrow('Unknown button structure -- please provide an array, object, or string for "foo".')
@@ -127,24 +126,24 @@ describe "Mercury.Toolbar", ->
127
126
  describe "observed events", ->
128
127
 
129
128
  beforeEach ->
130
- @toolbar = new Mercury.Toolbar({appendTo: '#test'})
129
+ @toolbar = new Mercury.Toolbar({appendTo: fixture.el})
131
130
 
132
131
  describe "custom event: region:focused", ->
133
132
 
134
133
  it "enables toolbars based on the region type", ->
135
134
  $('.mercury-editable-toolbar').addClass('disabled')
136
- Mercury.trigger('region:focused', {region: {type: 'editable'}})
135
+ Mercury.trigger('region:focused', {region: {type: -> 'full'}})
137
136
  expect($('.mercury.editable-toolbar').hasClass('disabled')).toEqual(false)
138
137
 
139
138
  $('.mercury-editable-toolbar').addClass('disabled')
140
- Mercury.trigger('region:focused', {region: {type: 'markupable'}})
139
+ Mercury.trigger('region:focused', {region: {type: -> 'markdown'}})
141
140
  expect($('.mercury.editable-toolbar').hasClass('disabled')).toEqual(false)
142
141
 
143
142
  describe "custom event: region:blurred", ->
144
143
 
145
144
  it "disables toolbars for the region type", ->
146
145
  $('.mercury-editable-toolbar').removeClass('disabled')
147
- Mercury.trigger('region:blurred', {region: {type: 'editable'}})
146
+ Mercury.trigger('region:blurred', {region: {type: -> 'full'}})
148
147
  expect($('.mercury-editable-toolbar').hasClass('disabled')).toEqual(true)
149
148
 
150
149
  describe "click", ->
@@ -167,7 +166,7 @@ describe "Mercury.Toolbar", ->
167
166
  describe "when visible", ->
168
167
 
169
168
  beforeEach ->
170
- @toolbar = new Mercury.Toolbar({appendTo: '#test', visible: true})
169
+ @toolbar = new Mercury.Toolbar({appendTo: fixture.el, visible: true})
171
170
 
172
171
  it "returns the element outerheight", ->
173
172
  expect(@toolbar.height()).toEqual($('.mercury-toolbar-container').outerHeight())
@@ -175,18 +174,48 @@ describe "Mercury.Toolbar", ->
175
174
  describe "when not visible", ->
176
175
 
177
176
  beforeEach ->
178
- @toolbar = new Mercury.Toolbar({appendTo: '#test', visible: false})
177
+ @toolbar = new Mercury.Toolbar({appendTo: fixture.el, visible: false})
179
178
 
180
179
  it "returns 0", ->
181
180
  expect(@toolbar.height()).toEqual(0)
182
181
 
182
+ describe "when forced", ->
183
+
184
+ beforeEach ->
185
+ @toolbar = new Mercury.Toolbar({appendTo: fixture.el, visible: false})
186
+
187
+ it "returns the element outerheight", ->
188
+ expect(@toolbar.height(true)).toEqual($('.mercury-toolbar-container').outerHeight())
189
+
190
+ describe "#top", ->
191
+
192
+ beforeEach ->
193
+ spyOn(Mercury.Toolbar.prototype, 'buildButton').andCallFake(=> $('<div>'))
194
+ spyOn(Mercury.Toolbar.prototype, 'bindEvents').andCallFake(=>)
195
+
196
+ describe "when visible", ->
197
+
198
+ beforeEach ->
199
+ @toolbar = new Mercury.Toolbar({appendTo: fixture.el, visible: true})
200
+
201
+ it "returns the element offests top", ->
202
+ expect(@toolbar.top()).toEqual($('.mercury-toolbar-container').offset().top)
203
+
204
+ describe "when not visible", ->
205
+
206
+ beforeEach ->
207
+ @toolbar = new Mercury.Toolbar({appendTo: fixture.el, visible: false})
208
+
209
+ it "returns the element offests top", ->
210
+ expect(@toolbar.top()).toEqual(0)
211
+
183
212
 
184
213
  describe "#show", ->
185
214
 
186
215
  beforeEach ->
187
216
  spyOn(Mercury.Toolbar.prototype, 'buildButton').andCallFake(=> $('<div>'))
188
217
  spyOn(Mercury.Toolbar.prototype, 'bindEvents').andCallFake(=>)
189
- @toolbar = new Mercury.Toolbar({appendTo: '#test', visible: false})
218
+ @toolbar = new Mercury.Toolbar({appendTo: fixture.el, visible: false})
190
219
 
191
220
  it "sets visible to true", ->
192
221
  @toolbar.visible = false
@@ -209,7 +238,7 @@ describe "Mercury.Toolbar", ->
209
238
  beforeEach ->
210
239
  spyOn(Mercury.Toolbar.prototype, 'buildButton').andCallFake(=> $('<div>'))
211
240
  spyOn(Mercury.Toolbar.prototype, 'bindEvents').andCallFake(=>)
212
- @toolbar = new Mercury.Toolbar({appendTo: '#test', visible: true})
241
+ @toolbar = new Mercury.Toolbar({appendTo: fixture.el, visible: true})
213
242
 
214
243
  it "sets visible to false", ->
215
244
  @toolbar.visible = true
@@ -1,8 +1,7 @@
1
1
  describe "Mercury.tooltip", ->
2
2
 
3
- template 'mercury/tooltip.html'
4
-
5
3
  beforeEach ->
4
+ fixture.load('mercury/tooltip.html')
6
5
  @forElement = $('#for_element')
7
6
  $.fx.off = true
8
7
 
@@ -1,9 +1,10 @@
1
1
  describe "Mercury.uploader", ->
2
2
 
3
- template 'mercury/uploader.html'
4
-
5
3
  beforeEach ->
4
+ fixture.load('mercury/uploader.html')
6
5
  Mercury.config.uploading.enabled = true
6
+ @fileReaderSupport = spyOn(Mercury.uploader, 'fileReaderSupported')
7
+ @fileReaderSupport.andCallFake(=> true)
7
8
  $.fx.off = true
8
9
  @mockFile = {
9
10
  size: 1024
@@ -120,7 +121,7 @@ describe "Mercury.uploader", ->
120
121
  describe "#build", ->
121
122
 
122
123
  beforeEach ->
123
- Mercury.uploader.options = {appendTo: '#test'}
124
+ Mercury.uploader.options = {appendTo: fixture.el}
124
125
 
125
126
  it "builds an element structure", ->
126
127
  Mercury.uploader.build()
@@ -158,7 +159,7 @@ describe "Mercury.uploader", ->
158
159
  describe "#appear", ->
159
160
 
160
161
  beforeEach ->
161
- Mercury.uploader.options = {appendTo: '#test'}
162
+ Mercury.uploader.options = {appendTo: fixture.el}
162
163
  Mercury.uploader.build()
163
164
  @fillDisplaySpy = spyOn(Mercury.uploader, 'fillDisplay').andCallFake(=>)
164
165
  @positionSpy = spyOn(Mercury.uploader, 'position').andCallFake(=>)
@@ -174,8 +175,8 @@ describe "Mercury.uploader", ->
174
175
 
175
176
  it "displays the overlay, and the element", ->
176
177
  Mercury.uploader.appear()
177
- expect($('#test .mercury-uploader').css('display')).toEqual('block')
178
- expect($('#test .mercury-uploader-overlay').css('display')).toEqual('block')
178
+ expect($('.mercury-uploader', fixture.el).css('display')).toEqual('block')
179
+ expect($('.mercury-uploader-overlay', fixture.el).css('display')).toEqual('block')
179
180
 
180
181
  it "sets visible to true", ->
181
182
  Mercury.uploader.appear()
@@ -189,7 +190,7 @@ describe "Mercury.uploader", ->
189
190
  describe "#position", ->
190
191
 
191
192
  beforeEach ->
192
- Mercury.uploader.options = {appendTo: '#test'}
193
+ Mercury.uploader.options = {appendTo: fixture.el}
193
194
  Mercury.uploader.build()
194
195
  @fillDisplaySpy = spyOn(Mercury.uploader, 'fillDisplay').andCallFake(=>)
195
196
  @positionSpy = spyOn(Mercury.uploader, 'position').andCallFake(=>)
@@ -198,28 +199,29 @@ describe "Mercury.uploader", ->
198
199
  # todo: this isn't really being tested
199
200
  Mercury.uploader.element.css({display: 'block'})
200
201
  Mercury.uploader.position()
201
- @expect($('#test .mercury-uploader').offset()).toEqual({top: 0, left: 0})
202
+ @expect($('.mercury-uploader', fixture.el).offset()).toEqual({top: 0, left: 0})
202
203
 
203
204
 
204
205
  describe "#fillDisplay", ->
205
206
 
206
207
  beforeEach ->
207
- Mercury.uploader.options = {appendTo: '#test'}
208
+ Mercury.uploader.options = {appendTo: fixture.el}
208
209
  Mercury.uploader.file = {name: 'image.png', size: 1024, type: 'image/png'}
209
210
  Mercury.uploader.build()
210
211
 
211
212
  it "puts the file details into the element", ->
212
213
  Mercury.uploader.fillDisplay()
213
- expect($('#test .mercury-uploader-details').html()).toEqual('Name: image.png<br>Size: undefined<br>Type: image/png')
214
+ expect($('.mercury-uploader-details', fixture.el).html()).toEqual('Name: image.png<br>Size: undefined<br>Type: image/png')
214
215
 
215
216
 
216
217
  describe "#loadImage", ->
217
218
 
218
219
  beforeEach ->
219
- Mercury.uploader.options = {appendTo: '#test'}
220
+ Mercury.uploader.options = {appendTo: fixture.el}
220
221
  Mercury.uploader.file = new Mercury.uploader.File(@mockFile)
221
222
  Mercury.uploader.build()
222
223
  spyOn(FileReader.prototype, 'readAsBinaryString').andCallFake(=>)
224
+ @fileReaderSupport.andCallFake(=> true)
223
225
  @readAsDataURLSpy = spyOn(Mercury.uploader.File.prototype, 'readAsDataURL').andCallFake((callback) => callback('data-url'))
224
226
 
225
227
  it "calls file.readAsDataURL", ->
@@ -228,7 +230,20 @@ describe "Mercury.uploader", ->
228
230
 
229
231
  it "sets the preview image src to the file contents", ->
230
232
  Mercury.uploader.loadImage()
231
- expect($('#test .mercury-uploader-preview img').attr('src')).toEqual('data-url')
233
+ expect($('.mercury-uploader-preview img', fixture.el).attr('src')).toEqual('data-url')
234
+
235
+ it "calls upload", ->
236
+ spy = spyOn(Mercury.uploader, 'upload').andCallFake(=>)
237
+ Mercury.uploader.loadImage()
238
+ expect(spy.callCount).toEqual(1)
239
+
240
+ describe "#loadImage without FileReader", ->
241
+
242
+ beforeEach ->
243
+ Mercury.uploader.options = {appendTo: fixture.el}
244
+ Mercury.uploader.file = new Mercury.uploader.File(@mockFile)
245
+ Mercury.uploader.build()
246
+ @fileReaderSupport.andCallFake(=> false)
232
247
 
233
248
  it "calls upload", ->
234
249
  spy = spyOn(Mercury.uploader, 'upload').andCallFake(=>)
@@ -238,61 +253,60 @@ describe "Mercury.uploader", ->
238
253
 
239
254
  describe "#upload", ->
240
255
 
241
- # todo: test this
242
- it "should build a multipart form and submit it", ->
256
+ it "should build a multipart form and submit it"
243
257
 
244
258
 
245
259
  describe "#updateStatus", ->
246
260
 
247
261
  beforeEach ->
248
- Mercury.uploader.options = {appendTo: '#test'}
262
+ Mercury.uploader.options = {appendTo: fixture.el}
249
263
  Mercury.uploader.build()
250
264
 
251
265
  it "updated the message in the progress display", ->
252
266
  Mercury.uploader.updateStatus('status message')
253
- expect($('#test .mercury-uploader-progress span').html()).toEqual('status message')
267
+ expect($('.mercury-uploader-progress span', fixture.el).html()).toEqual('status message')
254
268
 
255
269
  it "updates the progress indicator width", ->
256
270
  Mercury.uploader.updateStatus('message', 512)
257
- expect($('#test .mercury-uploader-indicator div').css('width')).toEqual('50px')
271
+ expect($('.mercury-uploader-indicator div', fixture.el).css('width')).toEqual('50px')
258
272
 
259
273
  it "updates the progress indicator value", ->
260
274
  Mercury.uploader.updateStatus('message', 512)
261
- expect($('#test .mercury-uploader-indicator b').html()).toEqual('50%')
275
+ expect($('.mercury-uploader-indicator b', fixture.el).html()).toEqual('50%')
262
276
 
263
277
 
264
278
  describe "#hide", ->
265
279
 
266
280
  beforeEach ->
267
281
  @setTimeoutSpy = spyOn(window, 'setTimeout')
268
- Mercury.uploader.options = {appendTo: '#test'}
282
+ Mercury.uploader.options = {appendTo: fixture.el}
269
283
  Mercury.uploader.build()
270
284
 
271
285
  it "accepts a delay", ->
272
286
  @setTimeoutSpy.andCallFake(=>)
273
287
  Mercury.uploader.hide(1)
274
288
  expect(@setTimeoutSpy.callCount).toEqual(1)
275
- expect(@setTimeoutSpy.argsForCall[0][0]).toEqual(1000)
289
+ expect(@setTimeoutSpy.argsForCall[0][1]).toEqual(1000)
276
290
 
277
291
  it "hides the overlay and element", ->
278
- @setTimeoutSpy.andCallFake((timeout, callback) => callback())
292
+ @setTimeoutSpy.andCallFake((callback, timeout) => callback())
279
293
  Mercury.uploader.hide()
280
- expect($('#test .mercury-uploader').css('opacity')).toEqual('0')
281
- expect($('#test .mercury-uploader-overlay').css('opacity')).toEqual('0')
294
+ expect($('.mercury-uploader', fixture.el).css('opacity')).toEqual('0')
295
+ expect($('.mercury-uploader-overlay', fixture.el).css('opacity')).toEqual('0')
282
296
 
283
297
  it "calls reset", ->
284
- @setTimeoutSpy.andCallFake((timeout, callback) => callback())
298
+ @setTimeoutSpy.andCallFake((callback, timeout) => callback())
285
299
  spy = spyOn(Mercury.uploader, 'reset').andCallFake(=>)
286
300
  Mercury.uploader.hide()
287
301
  expect(spy.callCount).toEqual(1)
288
302
 
289
303
  it "sets visible to false", ->
290
- @setTimeoutSpy.andCallFake((timeout, callback) => callback())
304
+ @setTimeoutSpy.andCallFake((callback, timeout) => callback())
291
305
  Mercury.uploader.hide()
292
306
  expect(Mercury.uploader.visible).toEqual(false)
293
307
 
294
308
  it "focuses the frame", ->
295
- @setTimeoutSpy.andCallFake((timeout, callback) => callback())
309
+ @setTimeoutSpy.andCallFake((callback, timeout) => callback())
296
310
  spy = spyOn(Mercury, 'trigger').andCallFake(=>)
297
311
  Mercury.uploader.hide()
298
312
  expect(spy.callCount).toEqual(1)
@@ -302,20 +316,20 @@ describe "Mercury.uploader", ->
302
316
  describe "#reset", ->
303
317
 
304
318
  beforeEach ->
305
- Mercury.uploader.options = {appendTo: '#test'}
319
+ Mercury.uploader.options = {appendTo: fixture.el}
306
320
  Mercury.uploader.build()
307
321
 
308
322
  it "removes the preview image", ->
309
- $('#test .mercury-uploader-indicator div').html('foo')
323
+ $('.mercury-uploader-indicator div', fixture.el).html('foo')
310
324
  Mercury.uploader.reset()
311
- expect($('#test .mercury-uploader-preview b').html()).toEqual('')
325
+ expect($('.mercury-uploader-preview b', fixture.el).html()).toEqual('')
312
326
 
313
327
  it "resets the progress back to 0", ->
314
- $('#test .mercury-uploader-indicator div').css({width: '50%'})
315
- $('#test .mercury-uploader-indicator b').html('50%')
328
+ $('.mercury-uploader-indicator div', fixture.el).css({width: '50%'})
329
+ $('.mercury-uploader-indicator b', fixture.el).html('50%')
316
330
  Mercury.uploader.reset()
317
- expect($('#test .mercury-uploader-indicator div').css('width')).toEqual('0px')
318
- expect($('#test .mercury-uploader-indicator b').html()).toEqual('0%')
331
+ expect($('.mercury-uploader-indicator div', fixture.el).css('width')).toEqual('0px')
332
+ expect($('.mercury-uploader-indicator b', fixture.el).html()).toEqual('0%')
319
333
 
320
334
  it "sets the status back to 'Processing...' for next time", ->
321
335
  spy = spyOn(Mercury.uploader, 'updateStatus').andCallFake(=>)
@@ -0,0 +1,4 @@
1
+ #= require jquery-1.7
2
+ #= require support/event_simulation
3
+ #
4
+ #= require mercury
@@ -1,5 +1,3 @@
1
- require('/assets/mercury.js');
2
-
3
1
  jasmine.simulate = {
4
2
 
5
3
  /**
@@ -0,0 +1,32 @@
1
+ # This file allows you to override various Teabag configuration directives when running from the command line. It is not
2
+ # required from within the Rails environment, so overriding directives that have been defined within the initializer
3
+ # is not possible.
4
+ #
5
+ # Set RAILS_ROOT and load the environment.
6
+ ENV["RAILS_ROOT"] = File.expand_path("../dummy", __FILE__)
7
+ require File.expand_path("../dummy/config/environment", __FILE__)
8
+
9
+ # Provide default configuration.
10
+ #
11
+ # You can override various configuration directives defined here by using arguments with the teabag command.
12
+ #
13
+ # teabag --driver=selenium --suppress-log
14
+ # rake teabag DRIVER=selenium SUPPRESS_LOG=false
15
+ Teabag.setup do |config|
16
+ # Driver
17
+ #config.driver = "phantomjs" # available: phantomjs, selenium
18
+
19
+ # Behaviors
20
+ #config.server_timeout = 20 # timeout for starting the server
21
+ #config.server_port = nil # defaults to any open port unless specified
22
+ #config.fail_fast = true # abort after the first failing suite
23
+
24
+ # Output
25
+ #config.formatters = "dot" # available: dot, tap_y, swayze_or_oprah
26
+ config.suppress_log = true # suppress logs coming from console[log/error/debug]
27
+ #config.color = true
28
+
29
+ # Coverage (requires istanbul -- https://github.com/gotwarlost/istanbul)
30
+ #config.coverage = true
31
+ #config.coverage_reports = "text,html,cobertura"
32
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiteditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -268,6 +268,38 @@ dependencies:
268
268
  - - ! '>='
269
269
  - !ruby/object:Gem::Version
270
270
  version: '0'
271
+ - !ruby/object:Gem::Dependency
272
+ name: railties
273
+ requirement: !ruby/object:Gem::Requirement
274
+ none: false
275
+ requirements:
276
+ - - ! '>='
277
+ - !ruby/object:Gem::Version
278
+ version: '3.2'
279
+ type: :runtime
280
+ prerelease: false
281
+ version_requirements: !ruby/object:Gem::Requirement
282
+ none: false
283
+ requirements:
284
+ - - ! '>='
285
+ - !ruby/object:Gem::Version
286
+ version: '3.2'
287
+ - !ruby/object:Gem::Dependency
288
+ name: coffee-rails
289
+ requirement: !ruby/object:Gem::Requirement
290
+ none: false
291
+ requirements:
292
+ - - ! '>='
293
+ - !ruby/object:Gem::Version
294
+ version: 3.2.2
295
+ type: :runtime
296
+ prerelease: false
297
+ version_requirements: !ruby/object:Gem::Requirement
298
+ none: false
299
+ requirements:
300
+ - - ! '>='
301
+ - !ruby/object:Gem::Version
302
+ version: 3.2.2
271
303
  description: This is a fork of the wonderful Mercury Rails WYSIWYG editor, modified
272
304
  very slightly for use with DSC's Kit Community and Content Management System. All
273
305
  credit for this Gem goes to the original author, Jeremy Jackson
@@ -278,19 +310,25 @@ executables: []
278
310
  extensions: []
279
311
  extra_rdoc_files:
280
312
  - LICENSE
313
+ - POST_INSTALL
281
314
  files:
315
+ - lib/generators/mercury/install/authentication/authentication_generator.rb
316
+ - lib/generators/mercury/install/images/images_generator.rb
317
+ - lib/generators/mercury/install/images/templates/ar_paperclip_image.rb
318
+ - lib/generators/mercury/install/images/templates/ar_paperclip_image_migration.rb
319
+ - lib/generators/mercury/install/images/templates/images_controller.rb
320
+ - lib/generators/mercury/install/images/templates/mongoid_paperclip_image.rb
282
321
  - lib/generators/mercury/install/install_generator.rb
283
- - lib/generators/mercury/install/templates/mongoid_paperclip_image.rb
284
322
  - lib/mercury/authentication.rb
323
+ - lib/mercury/cucumber/step_definitions/mercury_steps.rb
324
+ - lib/mercury/cucumber/step_definitions.rb
325
+ - lib/mercury/cucumber/support/mercury_contents.rb
326
+ - lib/mercury/cucumber/support/mercury_selectors.rb
327
+ - lib/mercury/engine.rb
328
+ - lib/mercury/rails.rb
329
+ - lib/mercury/version.rb
285
330
  - lib/mercury-rails.rb
286
- - vendor/assets/images/mercury/button.png
287
- - vendor/assets/images/mercury/close.png
288
331
  - vendor/assets/images/mercury/default-snippet.png
289
- - vendor/assets/images/mercury/loading-dark.gif
290
- - vendor/assets/images/mercury/loading-light.gif
291
- - vendor/assets/images/mercury/missing-image.png
292
- - vendor/assets/images/mercury/search-icon.png
293
- - vendor/assets/images/mercury/temp-logo.png
294
332
  - vendor/assets/images/mercury/toolbar/editable/buttons.png
295
333
  - vendor/assets/images/mercury/toolbar/primary/_expander.png
296
334
  - vendor/assets/images/mercury/toolbar/primary/_pressed.png
@@ -311,85 +349,125 @@ files:
311
349
  - vendor/assets/images/mercury/toolbar/primary/user.png
312
350
  - vendor/assets/images/mercury/toolbar/snippetable/buttons.png
313
351
  - vendor/assets/images/mercury/toolbar/snippets/buttons.png
314
- - vendor/assets/javascripts/mercury/dependencies/jquery-1.7.js
315
- - vendor/assets/javascripts/mercury/dependencies/jquery-ui-1.8.13.custom.js
316
352
  - vendor/assets/javascripts/mercury/dependencies/jquery-ui-1.8.18.custom.min.js
317
353
  - vendor/assets/javascripts/mercury/dependencies/jquery-ui.1.8.13.custom.min.js
318
- - vendor/assets/javascripts/mercury/dependencies/jquery.additions.js
319
- - vendor/assets/javascripts/mercury/dependencies/jquery.htmlClean.js
320
- - vendor/assets/javascripts/mercury/dependencies/liquidmetal.js
321
- - vendor/assets/javascripts/mercury/dependencies/showdown.js
322
- - vendor/assets/javascripts/mercury/dialog.js.coffee
323
- - vendor/assets/javascripts/mercury/dialogs/backcolor.js.coffee
324
- - vendor/assets/javascripts/mercury/dialogs/forecolor.js.coffee
325
- - vendor/assets/javascripts/mercury/dialogs/formatblock.js.coffee
326
- - vendor/assets/javascripts/mercury/dialogs/snippetpanel.js.coffee
327
- - vendor/assets/javascripts/mercury/dialogs/style.js.coffee
328
- - vendor/assets/javascripts/mercury/finalize.js.coffee
329
- - vendor/assets/javascripts/mercury/history_buffer.js.coffee
330
- - vendor/assets/javascripts/mercury/lightview.js.coffee
331
- - vendor/assets/javascripts/mercury/locales/da.locale.js.coffee
332
- - vendor/assets/javascripts/mercury/locales/de.locale.js.coffee
333
- - vendor/assets/javascripts/mercury/locales/es.locale.js.coffee
334
- - vendor/assets/javascripts/mercury/locales/example.local.js.coffee
335
- - vendor/assets/javascripts/mercury/locales/fr.locale.js.coffee
336
- - vendor/assets/javascripts/mercury/locales/it.locale.js.coffee
337
- - vendor/assets/javascripts/mercury/locales/ko.local.js.coffee
338
- - vendor/assets/javascripts/mercury/locales/nl.locale.js.coffee
339
- - vendor/assets/javascripts/mercury/locales/pt.locale.js.coffee
340
- - vendor/assets/javascripts/mercury/locales/sv.local.js.coffee
341
- - vendor/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee
342
- - vendor/assets/javascripts/mercury/mercury.js.coffee
343
- - vendor/assets/javascripts/mercury/modal.js.coffee
344
- - vendor/assets/javascripts/mercury/modals/htmleditor.js.coffee
345
- - vendor/assets/javascripts/mercury/modals/insertcharacter.js.coffee
346
354
  - vendor/assets/javascripts/mercury/modals/insertlink.js.coffee
347
355
  - vendor/assets/javascripts/mercury/modals/insertmedia.js.coffee
348
- - vendor/assets/javascripts/mercury/modals/insertsnippet.js.coffee
349
- - vendor/assets/javascripts/mercury/modals/inserttable.js.coffee
350
- - vendor/assets/javascripts/mercury/native_extensions.js.coffee
351
- - vendor/assets/javascripts/mercury/page_editor.js.coffee
352
- - vendor/assets/javascripts/mercury/palette.js.coffee
353
- - vendor/assets/javascripts/mercury/panel.js.coffee
354
- - vendor/assets/javascripts/mercury/plugins/save_as_xml/mercury/page_editor.js.coffee
355
- - vendor/assets/javascripts/mercury/plugins/save_as_xml/plugin.js
356
- - vendor/assets/javascripts/mercury/region.js.coffee
357
- - vendor/assets/javascripts/mercury/regions/editable.js.coffee
358
- - vendor/assets/javascripts/mercury/regions/markupable.js.coffee
359
- - vendor/assets/javascripts/mercury/regions/simple.js.coffee
360
- - vendor/assets/javascripts/mercury/regions/snippetable.js.coffee
361
- - vendor/assets/javascripts/mercury/select.js.coffee
362
356
  - vendor/assets/javascripts/mercury/snippet.js.coffee
363
- - vendor/assets/javascripts/mercury/snippet_toolbar.js.coffee
364
- - vendor/assets/javascripts/mercury/statusbar.js.coffee
365
- - vendor/assets/javascripts/mercury/support/history.js
366
- - vendor/assets/javascripts/mercury/table_editor.js.coffee
367
- - vendor/assets/javascripts/mercury/toolbar.button.js.coffee
368
- - vendor/assets/javascripts/mercury/toolbar.button_group.js.coffee
369
- - vendor/assets/javascripts/mercury/toolbar.expander.js.coffee
370
- - vendor/assets/javascripts/mercury/toolbar.js.coffee
371
- - vendor/assets/javascripts/mercury/tooltip.js.coffee
372
- - vendor/assets/javascripts/mercury/uploader.js.coffee
373
- - vendor/assets/javascripts/mercury.js
374
- - vendor/assets/javascripts/mercury_loader.js
375
- - vendor/assets/javascripts/mercury_overrides.js
376
357
  - vendor/assets/javascripts/popup.js
377
- - vendor/assets/stylesheets/mercury/all_images.css.erb
378
- - vendor/assets/stylesheets/mercury/dialog.css
379
- - vendor/assets/stylesheets/mercury/lightview.css
380
- - vendor/assets/stylesheets/mercury/mercury.css
381
- - vendor/assets/stylesheets/mercury/modal.css
382
- - vendor/assets/stylesheets/mercury/statusbar.css
383
- - vendor/assets/stylesheets/mercury/toolbar.css
384
- - vendor/assets/stylesheets/mercury/tooltip.css
385
- - vendor/assets/stylesheets/mercury/uploader.css
386
- - vendor/assets/stylesheets/mercury.css
387
- - vendor/assets/stylesheets/mercury_overrides.css
388
358
  - vendor/assets/stylesheets/popup.css.erb
389
- - app/controllers/mercury/images_controller.rb
359
+ - app/assets/images/mercury/button.png
360
+ - app/assets/images/mercury/close.png
361
+ - app/assets/images/mercury/default-snippet.png
362
+ - app/assets/images/mercury/loading-dark.gif
363
+ - app/assets/images/mercury/loading-light.gif
364
+ - app/assets/images/mercury/missing-image.png
365
+ - app/assets/images/mercury/search-icon.png
366
+ - app/assets/images/mercury/temp-logo.png
367
+ - app/assets/images/mercury/toolbar/editable/buttons.png
368
+ - app/assets/images/mercury/toolbar/primary/_expander.png
369
+ - app/assets/images/mercury/toolbar/primary/_pressed.png
370
+ - app/assets/images/mercury/toolbar/primary/action.png
371
+ - app/assets/images/mercury/toolbar/primary/historypanel.png
372
+ - app/assets/images/mercury/toolbar/primary/insertcharacter.png
373
+ - app/assets/images/mercury/toolbar/primary/insertlink.png
374
+ - app/assets/images/mercury/toolbar/primary/insertmedia.png
375
+ - app/assets/images/mercury/toolbar/primary/inserttable.png
376
+ - app/assets/images/mercury/toolbar/primary/inspectorpanel.png
377
+ - app/assets/images/mercury/toolbar/primary/notespanel.png
378
+ - app/assets/images/mercury/toolbar/primary/preview.png
379
+ - app/assets/images/mercury/toolbar/primary/redo.png
380
+ - app/assets/images/mercury/toolbar/primary/save.png
381
+ - app/assets/images/mercury/toolbar/primary/snippetpanel.png
382
+ - app/assets/images/mercury/toolbar/primary/tools.png
383
+ - app/assets/images/mercury/toolbar/primary/undo.png
384
+ - app/assets/images/mercury/toolbar/primary/user.png
385
+ - app/assets/images/mercury/toolbar/snippets/buttons.png
386
+ - app/assets/javascripts/jquery-1.7.js
387
+ - app/assets/javascripts/mercury/dependencies/jquery-ui-1.8.13.custom.js
388
+ - app/assets/javascripts/mercury/dependencies/jquery.additions.js
389
+ - app/assets/javascripts/mercury/dependencies/jquery.htmlClean.js
390
+ - app/assets/javascripts/mercury/dependencies/liquidmetal.js
391
+ - app/assets/javascripts/mercury/dependencies/showdown.js
392
+ - app/assets/javascripts/mercury/dialog.js.coffee
393
+ - app/assets/javascripts/mercury/dialogs/backcolor.js.coffee
394
+ - app/assets/javascripts/mercury/dialogs/forecolor.js.coffee
395
+ - app/assets/javascripts/mercury/dialogs/formatblock.js.coffee
396
+ - app/assets/javascripts/mercury/dialogs/snippetpanel.js.coffee
397
+ - app/assets/javascripts/mercury/dialogs/style.js.coffee
398
+ - app/assets/javascripts/mercury/finalize.js.coffee
399
+ - app/assets/javascripts/mercury/history_buffer.js.coffee
400
+ - app/assets/javascripts/mercury/lightview.js.coffee
401
+ - app/assets/javascripts/mercury/locales/ar.locale.js.coffee
402
+ - app/assets/javascripts/mercury/locales/da.locale.js.coffee
403
+ - app/assets/javascripts/mercury/locales/de.locale.js.coffee
404
+ - app/assets/javascripts/mercury/locales/es.locale.js.coffee
405
+ - app/assets/javascripts/mercury/locales/example.local.js.coffee
406
+ - app/assets/javascripts/mercury/locales/fr.locale.js.coffee
407
+ - app/assets/javascripts/mercury/locales/hu.locale.js.coffee
408
+ - app/assets/javascripts/mercury/locales/it.locale.js.coffee
409
+ - app/assets/javascripts/mercury/locales/ko.local.js.coffee
410
+ - app/assets/javascripts/mercury/locales/nl.locale.js.coffee
411
+ - app/assets/javascripts/mercury/locales/pl.locale.js.coffee
412
+ - app/assets/javascripts/mercury/locales/pt.locale.js.coffee
413
+ - app/assets/javascripts/mercury/locales/ru.locale.js.coffee
414
+ - app/assets/javascripts/mercury/locales/sv.local.js.coffee
415
+ - app/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee
416
+ - app/assets/javascripts/mercury/locales/uk.locale.js.coffee
417
+ - app/assets/javascripts/mercury/locales/zh.local.js.coffee
418
+ - app/assets/javascripts/mercury/mercury-compiled.js
419
+ - app/assets/javascripts/mercury/mercury.js.coffee
420
+ - app/assets/javascripts/mercury/modal.js.coffee
421
+ - app/assets/javascripts/mercury/modals/htmleditor.js.coffee
422
+ - app/assets/javascripts/mercury/modals/insertcharacter.js.coffee
423
+ - app/assets/javascripts/mercury/modals/insertlink.js.coffee
424
+ - app/assets/javascripts/mercury/modals/insertmedia.js.coffee
425
+ - app/assets/javascripts/mercury/modals/insertsnippet.js.coffee
426
+ - app/assets/javascripts/mercury/modals/inserttable.js.coffee
427
+ - app/assets/javascripts/mercury/native_extensions.js.coffee
428
+ - app/assets/javascripts/mercury/page_editor.js.coffee
429
+ - app/assets/javascripts/mercury/palette.js.coffee
430
+ - app/assets/javascripts/mercury/panel.js.coffee
431
+ - app/assets/javascripts/mercury/plugins/save_as_xml/mercury/page_editor.js.coffee
432
+ - app/assets/javascripts/mercury/plugins/save_as_xml/plugin.js
433
+ - app/assets/javascripts/mercury/region.js.coffee
434
+ - app/assets/javascripts/mercury/regions/full.js.coffee
435
+ - app/assets/javascripts/mercury/regions/image.js.coffee
436
+ - app/assets/javascripts/mercury/regions/markdown.js.coffee
437
+ - app/assets/javascripts/mercury/regions/simple.js.coffee
438
+ - app/assets/javascripts/mercury/regions/snippets.js.coffee
439
+ - app/assets/javascripts/mercury/select.js.coffee
440
+ - app/assets/javascripts/mercury/snippet.js.coffee
441
+ - app/assets/javascripts/mercury/snippet_toolbar.js.coffee
442
+ - app/assets/javascripts/mercury/statusbar.js.coffee
443
+ - app/assets/javascripts/mercury/support/history.js
444
+ - app/assets/javascripts/mercury/table_editor.js.coffee
445
+ - app/assets/javascripts/mercury/toolbar.button.js.coffee
446
+ - app/assets/javascripts/mercury/toolbar.button_group.js.coffee
447
+ - app/assets/javascripts/mercury/toolbar.expander.js.coffee
448
+ - app/assets/javascripts/mercury/toolbar.js.coffee
449
+ - app/assets/javascripts/mercury/tooltip.js.coffee
450
+ - app/assets/javascripts/mercury/uploader.js.coffee
451
+ - app/assets/javascripts/mercury.js
452
+ - app/assets/stylesheets/_mercury-bootstrap-overrides.scss
453
+ - app/assets/stylesheets/_mercury-sass.scss
454
+ - app/assets/stylesheets/mercury/all_images.css.erb
455
+ - app/assets/stylesheets/mercury/bootstrap-ish.css
456
+ - app/assets/stylesheets/mercury/bootstrap-overrides.css
457
+ - app/assets/stylesheets/mercury/dialog.css
458
+ - app/assets/stylesheets/mercury/lightview.css
459
+ - app/assets/stylesheets/mercury/mercury.css
460
+ - app/assets/stylesheets/mercury/modal.css
461
+ - app/assets/stylesheets/mercury/statusbar.css
462
+ - app/assets/stylesheets/mercury/toolbar.css
463
+ - app/assets/stylesheets/mercury/tooltip.css
464
+ - app/assets/stylesheets/mercury/uploader.css
465
+ - app/assets/stylesheets/mercury.css
390
466
  - app/controllers/mercury_controller.rb
391
- - app/models/mercury/image.rb
467
+ - app/helpers/mercury_helper.rb
392
468
  - app/views/layouts/mercury.html.erb
469
+ - app/views/layouts/mercury.html.haml
470
+ - app/views/layouts/mercury.html.slim
393
471
  - app/views/layouts/popup.html.haml
394
472
  - app/views/mercury/images/_list.html.haml
395
473
  - app/views/mercury/images/index.html.haml
@@ -409,42 +487,116 @@ files:
409
487
  - app/views/mercury/selects/style.html
410
488
  - app/views/mercury/snippets/example/options.html.erb
411
489
  - app/views/mercury/snippets/example/preview.html.erb
412
- - db/migrate/20110526035601_create_mercury_images.rb
490
+ - app/views/mercury/snippets/no_options/preview.html.erb
413
491
  - config/engine.rb
492
+ - config/routes.rb
414
493
  - LICENSE
494
+ - POST_INSTALL
495
+ - features/generators/authentication.feature
496
+ - features/generators/images.feature
497
+ - features/generators/install.feature
415
498
  - features/loading/loading.feature
416
499
  - features/loading/navigating.feature
417
500
  - features/loading/user_interface.feature
418
- - features/regions/editable/advanced_editing.feature
419
- - features/regions/editable/basic_editing.feature
420
- - features/regions/editable/inserting_links.feature
421
- - features/regions/editable/inserting_media.feature
422
- - features/regions/editable/inserting_snippets.feature
423
- - features/regions/editable/inserting_special_characters.feature
424
- - features/regions/editable/inserting_tables.feature
425
- - features/regions/editable/pasting.feature
426
- - features/regions/editable/uploading_images.feature
427
- - features/regions/markupable/advanced_editing.feature
428
- - features/regions/markupable/basic_editing.feature
429
- - features/regions/markupable/inserting_links.feature
430
- - features/regions/markupable/inserting_media.feature
431
- - features/regions/markupable/inserting_snippets.feature
432
- - features/regions/markupable/inserting_special_characters.feature
433
- - features/regions/markupable/inserting_tables.feature
434
- - features/regions/markupable/uploading_images.feature
435
- - features/regions/snippetable/advanced_editing.feature
436
- - features/regions/snippetable/basic_editing.feature
437
- - features/regions/snippetable/inserting_snippets.feature
501
+ - features/regions/full/advanced_editing.feature
502
+ - features/regions/full/basic_editing.feature
503
+ - features/regions/full/inserting_links.feature
504
+ - features/regions/full/inserting_media.feature
505
+ - features/regions/full/inserting_snippets.feature
506
+ - features/regions/full/inserting_special_characters.feature
507
+ - features/regions/full/inserting_tables.feature
508
+ - features/regions/full/pasting.feature
509
+ - features/regions/full/uploading_images.feature
510
+ - features/regions/image/uploading_images.feature
511
+ - features/regions/markdown/advanced_editing.feature
512
+ - features/regions/markdown/basic_editing.feature
513
+ - features/regions/markdown/inserting_links.feature
514
+ - features/regions/markdown/inserting_media.feature
515
+ - features/regions/markdown/inserting_snippets.feature
516
+ - features/regions/markdown/inserting_special_characters.feature
517
+ - features/regions/markdown/inserting_tables.feature
518
+ - features/regions/markdown/uploading_images.feature
519
+ - features/regions/simple/basic_editing.feature
520
+ - features/regions/snippets/advanced_editing.feature
521
+ - features/regions/snippets/basic_editing.feature
522
+ - features/regions/snippets/inserting_snippets.feature
438
523
  - features/saving/saving.feature
524
+ - features/step_definitions/custom_web_steps.rb
439
525
  - features/step_definitions/debug_steps.rb
526
+ - features/step_definitions/generator_steps.rb
440
527
  - features/step_definitions/mercury_steps.rb
441
528
  - features/step_definitions/web_steps.rb
529
+ - features/support/aruba.rb
442
530
  - features/support/env.rb
443
- - features/support/mercury_contents.rb
444
- - features/support/mercury_selectors.rb
445
531
  - features/support/paths.rb
446
532
  - features/support/selectors.rb
447
- - spec/javascripts/mercury/dialog_spec.js.coffee
533
+ - spec/dummy/Rakefile
534
+ - spec/dummy/app/assets/javascripts/application.js
535
+ - spec/dummy/app/assets/javascripts/prototype.js
536
+ - spec/dummy/app/assets/stylesheets/application.css.scss
537
+ - spec/dummy/app/controllers/application_controller.rb
538
+ - spec/dummy/app/views/layouts/application.html.erb
539
+ - spec/dummy/app/views/layouts/mercury.html.erb
540
+ - spec/dummy/config.ru
541
+ - spec/dummy/config/application.rb
542
+ - spec/dummy/config/boot.rb
543
+ - spec/dummy/config/database.yml
544
+ - spec/dummy/config/environment.rb
545
+ - spec/dummy/config/environments/development.rb
546
+ - spec/dummy/config/environments/production.rb
547
+ - spec/dummy/config/environments/test.rb
548
+ - spec/dummy/config/initializers/backtrace_silencers.rb
549
+ - spec/dummy/config/initializers/inflections.rb
550
+ - spec/dummy/config/initializers/mime_types.rb
551
+ - spec/dummy/config/initializers/secret_token.rb
552
+ - spec/dummy/config/initializers/session_store.rb
553
+ - spec/dummy/config/initializers/teabag.rb
554
+ - spec/dummy/config/initializers/wrap_parameters.rb
555
+ - spec/dummy/config/locales/en.yml
556
+ - spec/dummy/config/routes.rb
557
+ - spec/dummy/db/.gitkeep
558
+ - spec/dummy/public/500.html
559
+ - spec/dummy/public/blank.html
560
+ - spec/dummy/public/favicon.ico
561
+ - spec/dummy/public/images/bunny.gif
562
+ - spec/dummy/public/images/bunny2.jpg
563
+ - spec/dummy/public/index.html
564
+ - spec/dummy/script/rails
565
+ - spec/javascripts/fixtures/mercury/dialog.html
566
+ - spec/javascripts/fixtures/mercury/dialogs/backcolor.html
567
+ - spec/javascripts/fixtures/mercury/dialogs/forecolor.html
568
+ - spec/javascripts/fixtures/mercury/dialogs/formatblock.html
569
+ - spec/javascripts/fixtures/mercury/dialogs/snippetpanel.html
570
+ - spec/javascripts/fixtures/mercury/dialogs/style.html
571
+ - spec/javascripts/fixtures/mercury/lightview.html
572
+ - spec/javascripts/fixtures/mercury/modal.html
573
+ - spec/javascripts/fixtures/mercury/modals/htmleditor.html
574
+ - spec/javascripts/fixtures/mercury/modals/insertcharacter.html
575
+ - spec/javascripts/fixtures/mercury/modals/insertlink.html
576
+ - spec/javascripts/fixtures/mercury/modals/insertmedia.html
577
+ - spec/javascripts/fixtures/mercury/modals/insertsnippet.html
578
+ - spec/javascripts/fixtures/mercury/modals/inserttable.html
579
+ - spec/javascripts/fixtures/mercury/page_editor.html
580
+ - spec/javascripts/fixtures/mercury/palette.html
581
+ - spec/javascripts/fixtures/mercury/panel.html
582
+ - spec/javascripts/fixtures/mercury/region.html
583
+ - spec/javascripts/fixtures/mercury/regions/full.html
584
+ - spec/javascripts/fixtures/mercury/regions/image.html
585
+ - spec/javascripts/fixtures/mercury/regions/markdown.html
586
+ - spec/javascripts/fixtures/mercury/regions/simple.html
587
+ - spec/javascripts/fixtures/mercury/regions/snippets.html
588
+ - spec/javascripts/fixtures/mercury/select.html
589
+ - spec/javascripts/fixtures/mercury/snippet.html
590
+ - spec/javascripts/fixtures/mercury/snippet_toolbar.html
591
+ - spec/javascripts/fixtures/mercury/statusbar.html
592
+ - spec/javascripts/fixtures/mercury/table_editor.html
593
+ - spec/javascripts/fixtures/mercury/toolbar.button.html
594
+ - spec/javascripts/fixtures/mercury/toolbar.button_group.html
595
+ - spec/javascripts/fixtures/mercury/toolbar.expander.html
596
+ - spec/javascripts/fixtures/mercury/toolbar.html
597
+ - spec/javascripts/fixtures/mercury/tooltip.html
598
+ - spec/javascripts/fixtures/mercury/uploader.html
599
+ - spec/javascripts/mercury/dialog_spec.coffee
448
600
  - spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee
449
601
  - spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee
450
602
  - spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee
@@ -465,9 +617,11 @@ files:
465
617
  - spec/javascripts/mercury/palette_spec.js.coffee
466
618
  - spec/javascripts/mercury/panel_spec.js.coffee
467
619
  - spec/javascripts/mercury/region_spec.js.coffee
468
- - spec/javascripts/mercury/regions/editable_spec.js.coffee
469
- - spec/javascripts/mercury/regions/markupable_spec.js.coffee
470
- - spec/javascripts/mercury/regions/snippetable_spec.js.coffee
620
+ - spec/javascripts/mercury/regions/full_spec.js.coffee
621
+ - spec/javascripts/mercury/regions/image_spec.js.coffee
622
+ - spec/javascripts/mercury/regions/markdown_spec.js.coffee
623
+ - spec/javascripts/mercury/regions/simple_spec.js.coffee
624
+ - spec/javascripts/mercury/regions/snippets_spec.js.coffee
471
625
  - spec/javascripts/mercury/select_spec.js.coffee
472
626
  - spec/javascripts/mercury/snippet_spec.js.coffee
473
627
  - spec/javascripts/mercury/snippet_toolbar_spec.js.coffee
@@ -479,38 +633,9 @@ files:
479
633
  - spec/javascripts/mercury/toolbar_spec.js.coffee
480
634
  - spec/javascripts/mercury/tooltip_spec.js.coffee
481
635
  - spec/javascripts/mercury/uploader_spec.js.coffee
482
- - spec/javascripts/spec_helper.js
483
- - spec/javascripts/templates/mercury/dialog.html
484
- - spec/javascripts/templates/mercury/dialogs/backcolor.html
485
- - spec/javascripts/templates/mercury/dialogs/forecolor.html
486
- - spec/javascripts/templates/mercury/dialogs/formatblock.html
487
- - spec/javascripts/templates/mercury/dialogs/snippetpanel.html
488
- - spec/javascripts/templates/mercury/dialogs/style.html
489
- - spec/javascripts/templates/mercury/lightview.html
490
- - spec/javascripts/templates/mercury/modal.html
491
- - spec/javascripts/templates/mercury/modals/htmleditor.html
492
- - spec/javascripts/templates/mercury/modals/insertcharacter.html
493
- - spec/javascripts/templates/mercury/modals/insertlink.html
494
- - spec/javascripts/templates/mercury/modals/insertmedia.html
495
- - spec/javascripts/templates/mercury/modals/insertsnippet.html
496
- - spec/javascripts/templates/mercury/modals/inserttable.html
497
- - spec/javascripts/templates/mercury/page_editor.html
498
- - spec/javascripts/templates/mercury/palette.html
499
- - spec/javascripts/templates/mercury/panel.html
500
- - spec/javascripts/templates/mercury/region.html
501
- - spec/javascripts/templates/mercury/regions/editable.html
502
- - spec/javascripts/templates/mercury/regions/snippetable.html
503
- - spec/javascripts/templates/mercury/select.html
504
- - spec/javascripts/templates/mercury/snippet.html
505
- - spec/javascripts/templates/mercury/snippet_toolbar.html
506
- - spec/javascripts/templates/mercury/statusbar.html
507
- - spec/javascripts/templates/mercury/table_editor.html
508
- - spec/javascripts/templates/mercury/toolbar.button.html
509
- - spec/javascripts/templates/mercury/toolbar.button_group.html
510
- - spec/javascripts/templates/mercury/toolbar.expander.html
511
- - spec/javascripts/templates/mercury/toolbar.html
512
- - spec/javascripts/templates/mercury/tooltip.html
513
- - spec/javascripts/templates/mercury/uploader.html
636
+ - spec/javascripts/spec_helper.coffee
637
+ - spec/javascripts/support/event_simulation.js
638
+ - spec/teabag_env.rb
514
639
  homepage: http://github.com/dsc-os/kiteditor
515
640
  licenses:
516
641
  - MIT
@@ -537,39 +662,111 @@ signing_key:
537
662
  specification_version: 3
538
663
  summary: An HTML5 editor for use with DSC's Kit, the CCMS.
539
664
  test_files:
665
+ - features/generators/authentication.feature
666
+ - features/generators/images.feature
667
+ - features/generators/install.feature
540
668
  - features/loading/loading.feature
541
669
  - features/loading/navigating.feature
542
670
  - features/loading/user_interface.feature
543
- - features/regions/editable/advanced_editing.feature
544
- - features/regions/editable/basic_editing.feature
545
- - features/regions/editable/inserting_links.feature
546
- - features/regions/editable/inserting_media.feature
547
- - features/regions/editable/inserting_snippets.feature
548
- - features/regions/editable/inserting_special_characters.feature
549
- - features/regions/editable/inserting_tables.feature
550
- - features/regions/editable/pasting.feature
551
- - features/regions/editable/uploading_images.feature
552
- - features/regions/markupable/advanced_editing.feature
553
- - features/regions/markupable/basic_editing.feature
554
- - features/regions/markupable/inserting_links.feature
555
- - features/regions/markupable/inserting_media.feature
556
- - features/regions/markupable/inserting_snippets.feature
557
- - features/regions/markupable/inserting_special_characters.feature
558
- - features/regions/markupable/inserting_tables.feature
559
- - features/regions/markupable/uploading_images.feature
560
- - features/regions/snippetable/advanced_editing.feature
561
- - features/regions/snippetable/basic_editing.feature
562
- - features/regions/snippetable/inserting_snippets.feature
671
+ - features/regions/full/advanced_editing.feature
672
+ - features/regions/full/basic_editing.feature
673
+ - features/regions/full/inserting_links.feature
674
+ - features/regions/full/inserting_media.feature
675
+ - features/regions/full/inserting_snippets.feature
676
+ - features/regions/full/inserting_special_characters.feature
677
+ - features/regions/full/inserting_tables.feature
678
+ - features/regions/full/pasting.feature
679
+ - features/regions/full/uploading_images.feature
680
+ - features/regions/image/uploading_images.feature
681
+ - features/regions/markdown/advanced_editing.feature
682
+ - features/regions/markdown/basic_editing.feature
683
+ - features/regions/markdown/inserting_links.feature
684
+ - features/regions/markdown/inserting_media.feature
685
+ - features/regions/markdown/inserting_snippets.feature
686
+ - features/regions/markdown/inserting_special_characters.feature
687
+ - features/regions/markdown/inserting_tables.feature
688
+ - features/regions/markdown/uploading_images.feature
689
+ - features/regions/simple/basic_editing.feature
690
+ - features/regions/snippets/advanced_editing.feature
691
+ - features/regions/snippets/basic_editing.feature
692
+ - features/regions/snippets/inserting_snippets.feature
563
693
  - features/saving/saving.feature
694
+ - features/step_definitions/custom_web_steps.rb
564
695
  - features/step_definitions/debug_steps.rb
696
+ - features/step_definitions/generator_steps.rb
565
697
  - features/step_definitions/mercury_steps.rb
566
698
  - features/step_definitions/web_steps.rb
699
+ - features/support/aruba.rb
567
700
  - features/support/env.rb
568
- - features/support/mercury_contents.rb
569
- - features/support/mercury_selectors.rb
570
701
  - features/support/paths.rb
571
702
  - features/support/selectors.rb
572
- - spec/javascripts/mercury/dialog_spec.js.coffee
703
+ - spec/dummy/Rakefile
704
+ - spec/dummy/app/assets/javascripts/application.js
705
+ - spec/dummy/app/assets/javascripts/prototype.js
706
+ - spec/dummy/app/assets/stylesheets/application.css.scss
707
+ - spec/dummy/app/controllers/application_controller.rb
708
+ - spec/dummy/app/views/layouts/application.html.erb
709
+ - spec/dummy/app/views/layouts/mercury.html.erb
710
+ - spec/dummy/config.ru
711
+ - spec/dummy/config/application.rb
712
+ - spec/dummy/config/boot.rb
713
+ - spec/dummy/config/database.yml
714
+ - spec/dummy/config/environment.rb
715
+ - spec/dummy/config/environments/development.rb
716
+ - spec/dummy/config/environments/production.rb
717
+ - spec/dummy/config/environments/test.rb
718
+ - spec/dummy/config/initializers/backtrace_silencers.rb
719
+ - spec/dummy/config/initializers/inflections.rb
720
+ - spec/dummy/config/initializers/mime_types.rb
721
+ - spec/dummy/config/initializers/secret_token.rb
722
+ - spec/dummy/config/initializers/session_store.rb
723
+ - spec/dummy/config/initializers/teabag.rb
724
+ - spec/dummy/config/initializers/wrap_parameters.rb
725
+ - spec/dummy/config/locales/en.yml
726
+ - spec/dummy/config/routes.rb
727
+ - spec/dummy/db/.gitkeep
728
+ - spec/dummy/public/500.html
729
+ - spec/dummy/public/blank.html
730
+ - spec/dummy/public/favicon.ico
731
+ - spec/dummy/public/images/bunny.gif
732
+ - spec/dummy/public/images/bunny2.jpg
733
+ - spec/dummy/public/index.html
734
+ - spec/dummy/script/rails
735
+ - spec/javascripts/fixtures/mercury/dialog.html
736
+ - spec/javascripts/fixtures/mercury/dialogs/backcolor.html
737
+ - spec/javascripts/fixtures/mercury/dialogs/forecolor.html
738
+ - spec/javascripts/fixtures/mercury/dialogs/formatblock.html
739
+ - spec/javascripts/fixtures/mercury/dialogs/snippetpanel.html
740
+ - spec/javascripts/fixtures/mercury/dialogs/style.html
741
+ - spec/javascripts/fixtures/mercury/lightview.html
742
+ - spec/javascripts/fixtures/mercury/modal.html
743
+ - spec/javascripts/fixtures/mercury/modals/htmleditor.html
744
+ - spec/javascripts/fixtures/mercury/modals/insertcharacter.html
745
+ - spec/javascripts/fixtures/mercury/modals/insertlink.html
746
+ - spec/javascripts/fixtures/mercury/modals/insertmedia.html
747
+ - spec/javascripts/fixtures/mercury/modals/insertsnippet.html
748
+ - spec/javascripts/fixtures/mercury/modals/inserttable.html
749
+ - spec/javascripts/fixtures/mercury/page_editor.html
750
+ - spec/javascripts/fixtures/mercury/palette.html
751
+ - spec/javascripts/fixtures/mercury/panel.html
752
+ - spec/javascripts/fixtures/mercury/region.html
753
+ - spec/javascripts/fixtures/mercury/regions/full.html
754
+ - spec/javascripts/fixtures/mercury/regions/image.html
755
+ - spec/javascripts/fixtures/mercury/regions/markdown.html
756
+ - spec/javascripts/fixtures/mercury/regions/simple.html
757
+ - spec/javascripts/fixtures/mercury/regions/snippets.html
758
+ - spec/javascripts/fixtures/mercury/select.html
759
+ - spec/javascripts/fixtures/mercury/snippet.html
760
+ - spec/javascripts/fixtures/mercury/snippet_toolbar.html
761
+ - spec/javascripts/fixtures/mercury/statusbar.html
762
+ - spec/javascripts/fixtures/mercury/table_editor.html
763
+ - spec/javascripts/fixtures/mercury/toolbar.button.html
764
+ - spec/javascripts/fixtures/mercury/toolbar.button_group.html
765
+ - spec/javascripts/fixtures/mercury/toolbar.expander.html
766
+ - spec/javascripts/fixtures/mercury/toolbar.html
767
+ - spec/javascripts/fixtures/mercury/tooltip.html
768
+ - spec/javascripts/fixtures/mercury/uploader.html
769
+ - spec/javascripts/mercury/dialog_spec.coffee
573
770
  - spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee
574
771
  - spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee
575
772
  - spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee
@@ -590,9 +787,11 @@ test_files:
590
787
  - spec/javascripts/mercury/palette_spec.js.coffee
591
788
  - spec/javascripts/mercury/panel_spec.js.coffee
592
789
  - spec/javascripts/mercury/region_spec.js.coffee
593
- - spec/javascripts/mercury/regions/editable_spec.js.coffee
594
- - spec/javascripts/mercury/regions/markupable_spec.js.coffee
595
- - spec/javascripts/mercury/regions/snippetable_spec.js.coffee
790
+ - spec/javascripts/mercury/regions/full_spec.js.coffee
791
+ - spec/javascripts/mercury/regions/image_spec.js.coffee
792
+ - spec/javascripts/mercury/regions/markdown_spec.js.coffee
793
+ - spec/javascripts/mercury/regions/simple_spec.js.coffee
794
+ - spec/javascripts/mercury/regions/snippets_spec.js.coffee
596
795
  - spec/javascripts/mercury/select_spec.js.coffee
597
796
  - spec/javascripts/mercury/snippet_spec.js.coffee
598
797
  - spec/javascripts/mercury/snippet_toolbar_spec.js.coffee
@@ -604,35 +803,6 @@ test_files:
604
803
  - spec/javascripts/mercury/toolbar_spec.js.coffee
605
804
  - spec/javascripts/mercury/tooltip_spec.js.coffee
606
805
  - spec/javascripts/mercury/uploader_spec.js.coffee
607
- - spec/javascripts/spec_helper.js
608
- - spec/javascripts/templates/mercury/dialog.html
609
- - spec/javascripts/templates/mercury/dialogs/backcolor.html
610
- - spec/javascripts/templates/mercury/dialogs/forecolor.html
611
- - spec/javascripts/templates/mercury/dialogs/formatblock.html
612
- - spec/javascripts/templates/mercury/dialogs/snippetpanel.html
613
- - spec/javascripts/templates/mercury/dialogs/style.html
614
- - spec/javascripts/templates/mercury/lightview.html
615
- - spec/javascripts/templates/mercury/modal.html
616
- - spec/javascripts/templates/mercury/modals/htmleditor.html
617
- - spec/javascripts/templates/mercury/modals/insertcharacter.html
618
- - spec/javascripts/templates/mercury/modals/insertlink.html
619
- - spec/javascripts/templates/mercury/modals/insertmedia.html
620
- - spec/javascripts/templates/mercury/modals/insertsnippet.html
621
- - spec/javascripts/templates/mercury/modals/inserttable.html
622
- - spec/javascripts/templates/mercury/page_editor.html
623
- - spec/javascripts/templates/mercury/palette.html
624
- - spec/javascripts/templates/mercury/panel.html
625
- - spec/javascripts/templates/mercury/region.html
626
- - spec/javascripts/templates/mercury/regions/editable.html
627
- - spec/javascripts/templates/mercury/regions/snippetable.html
628
- - spec/javascripts/templates/mercury/select.html
629
- - spec/javascripts/templates/mercury/snippet.html
630
- - spec/javascripts/templates/mercury/snippet_toolbar.html
631
- - spec/javascripts/templates/mercury/statusbar.html
632
- - spec/javascripts/templates/mercury/table_editor.html
633
- - spec/javascripts/templates/mercury/toolbar.button.html
634
- - spec/javascripts/templates/mercury/toolbar.button_group.html
635
- - spec/javascripts/templates/mercury/toolbar.expander.html
636
- - spec/javascripts/templates/mercury/toolbar.html
637
- - spec/javascripts/templates/mercury/tooltip.html
638
- - spec/javascripts/templates/mercury/uploader.html
806
+ - spec/javascripts/spec_helper.coffee
807
+ - spec/javascripts/support/event_simulation.js
808
+ - spec/teabag_env.rb