kiteditor 1.0.12 → 1.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. data/{lib/generators/mercury/install/images/templates → app/controllers/mercury}/images_controller.rb +0 -0
  2. data/{lib/generators/mercury/install/images/templates/ar_paperclip_image.rb → app/models/mercury/image.rb} +0 -7
  3. data/app/views/layouts/mercury.html.erb +20 -10
  4. data/app/views/mercury/modals/character.html +1 -1
  5. data/app/views/mercury/modals/htmleditor.html +7 -3
  6. data/app/views/mercury/modals/link.html +51 -37
  7. data/app/views/mercury/modals/media.html +0 -102
  8. data/app/views/mercury/modals/table.html +73 -79
  9. data/app/views/mercury/panels/snippets.html +1 -6
  10. data/app/views/mercury/snippets/example/options.html.erb +27 -23
  11. data/{lib/generators/mercury/install/images/templates/ar_paperclip_image_migration.rb → db/migrate/20110526035601_create_mercury_images.rb} +0 -0
  12. data/features/loading/loading.feature +2 -5
  13. data/features/loading/user_interface.feature +7 -9
  14. data/features/regions/{full → editable}/advanced_editing.feature +0 -0
  15. data/features/regions/editable/basic_editing.feature +195 -0
  16. data/features/regions/{full → editable}/inserting_links.feature +19 -20
  17. data/features/regions/{full → editable}/inserting_media.feature +18 -36
  18. data/features/regions/{full → editable}/inserting_snippets.feature +18 -28
  19. data/features/regions/{full → editable}/inserting_special_characters.feature +2 -2
  20. data/features/regions/editable/inserting_tables.feature +109 -0
  21. data/features/regions/{full → editable}/pasting.feature +0 -0
  22. data/features/regions/{full → editable}/uploading_images.feature +0 -0
  23. data/features/regions/{markdown → markupable}/advanced_editing.feature +0 -0
  24. data/features/regions/{markdown → markupable}/basic_editing.feature +0 -0
  25. data/features/regions/{markdown → markupable}/inserting_links.feature +0 -0
  26. data/features/regions/{markdown → markupable}/inserting_media.feature +0 -0
  27. data/features/regions/{markdown → markupable}/inserting_snippets.feature +0 -0
  28. data/features/regions/{markdown → markupable}/inserting_special_characters.feature +0 -0
  29. data/features/regions/{markdown → markupable}/inserting_tables.feature +0 -0
  30. data/features/regions/{image → markupable}/uploading_images.feature +0 -0
  31. data/features/regions/{snippets → snippetable}/advanced_editing.feature +0 -0
  32. data/features/regions/{snippets → snippetable}/basic_editing.feature +0 -0
  33. data/features/regions/{snippets → snippetable}/inserting_snippets.feature +0 -0
  34. data/features/saving/saving.feature +8 -8
  35. data/features/step_definitions/mercury_steps.rb +438 -1
  36. data/features/support/env.rb +1 -11
  37. data/{lib/mercury/cucumber → features}/support/mercury_contents.rb +3 -3
  38. data/{lib/mercury/cucumber → features}/support/mercury_selectors.rb +20 -0
  39. data/features/support/selectors.rb +0 -23
  40. data/lib/generators/mercury/install/install_generator.rb +23 -12
  41. data/lib/generators/mercury/install/{images/templates → templates}/mongoid_paperclip_image.rb +0 -0
  42. data/lib/mercury/authentication.rb +0 -1
  43. data/lib/mercury-rails.rb +2 -1
  44. data/spec/javascripts/mercury/{dialog_spec.coffee → dialog_spec.js.coffee} +12 -11
  45. data/spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee +3 -2
  46. data/spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee +4 -3
  47. data/spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee +3 -2
  48. data/spec/javascripts/mercury/dialogs/snippetpanel_spec.js.coffee +3 -2
  49. data/spec/javascripts/mercury/dialogs/style_spec.js.coffee +3 -2
  50. data/spec/javascripts/mercury/lightview_spec.js.coffee +142 -180
  51. data/spec/javascripts/mercury/mercury_spec.js.coffee +13 -19
  52. data/spec/javascripts/mercury/modal_spec.js.coffee +148 -192
  53. data/spec/javascripts/mercury/modals/htmleditor_spec.js.coffee +5 -4
  54. data/spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee +3 -2
  55. data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +34 -107
  56. data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +26 -106
  57. data/spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee +3 -2
  58. data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +40 -50
  59. data/spec/javascripts/mercury/page_editor_spec.js.coffee +80 -124
  60. data/spec/javascripts/mercury/palette_spec.js.coffee +5 -4
  61. data/spec/javascripts/mercury/panel_spec.js.coffee +12 -9
  62. data/spec/javascripts/mercury/region_spec.js.coffee +17 -22
  63. data/spec/javascripts/mercury/regions/{full_spec.js.coffee → editable_spec.js.coffee} +28 -26
  64. data/spec/javascripts/mercury/regions/{markdown_spec.js.coffee → markupable_spec.js.coffee} +34 -32
  65. data/spec/javascripts/mercury/regions/{snippets_spec.js.coffee → snippetable_spec.js.coffee} +55 -54
  66. data/spec/javascripts/mercury/select_spec.js.coffee +5 -4
  67. data/spec/javascripts/mercury/snippet_spec.js.coffee +16 -92
  68. data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +16 -31
  69. data/spec/javascripts/mercury/statusbar_spec.js.coffee +10 -9
  70. data/spec/javascripts/mercury/table_editor_spec.js.coffee +2 -1
  71. data/spec/javascripts/mercury/toolbar.button_group_spec.js.coffee +9 -7
  72. data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +26 -55
  73. data/spec/javascripts/mercury/toolbar.expander_spec.js.coffee +13 -13
  74. data/spec/javascripts/mercury/toolbar_spec.js.coffee +14 -43
  75. data/spec/javascripts/mercury/tooltip_spec.js.coffee +2 -1
  76. data/spec/javascripts/mercury/uploader_spec.js.coffee +33 -47
  77. data/spec/javascripts/{support/event_simulation.js → spec_helper.js} +2 -0
  78. data/spec/javascripts/{fixtures → templates}/mercury/dialog.html +0 -0
  79. data/spec/javascripts/{fixtures → templates}/mercury/dialogs/backcolor.html +0 -0
  80. data/spec/javascripts/{fixtures → templates}/mercury/dialogs/forecolor.html +0 -0
  81. data/spec/javascripts/{fixtures → templates}/mercury/dialogs/formatblock.html +0 -0
  82. data/spec/javascripts/{fixtures → templates}/mercury/dialogs/snippetpanel.html +0 -0
  83. data/spec/javascripts/{fixtures → templates}/mercury/dialogs/style.html +0 -0
  84. data/spec/javascripts/{fixtures → templates}/mercury/lightview.html +0 -0
  85. data/spec/javascripts/{fixtures → templates}/mercury/modal.html +0 -0
  86. data/spec/javascripts/{fixtures → templates}/mercury/modals/htmleditor.html +0 -0
  87. data/spec/javascripts/{fixtures → templates}/mercury/modals/insertcharacter.html +0 -0
  88. data/spec/javascripts/templates/mercury/modals/insertlink.html +30 -0
  89. data/spec/javascripts/templates/mercury/modals/insertmedia.html +35 -0
  90. data/spec/javascripts/{fixtures → templates}/mercury/modals/insertsnippet.html +0 -0
  91. data/spec/javascripts/templates/mercury/modals/inserttable.html +27 -0
  92. data/spec/javascripts/{fixtures → templates}/mercury/page_editor.html +4 -4
  93. data/spec/javascripts/{fixtures → templates}/mercury/palette.html +0 -0
  94. data/spec/javascripts/{fixtures → templates}/mercury/panel.html +0 -0
  95. data/spec/javascripts/templates/mercury/region.html +2 -0
  96. data/spec/javascripts/templates/mercury/regions/editable.html +3 -0
  97. data/spec/javascripts/templates/mercury/regions/snippetable.html +4 -0
  98. data/spec/javascripts/{fixtures → templates}/mercury/select.html +0 -0
  99. data/spec/javascripts/{fixtures → templates}/mercury/snippet.html +0 -0
  100. data/spec/javascripts/{fixtures → templates}/mercury/snippet_toolbar.html +0 -0
  101. data/spec/javascripts/{fixtures → templates}/mercury/statusbar.html +0 -0
  102. data/spec/javascripts/{fixtures → templates}/mercury/table_editor.html +0 -0
  103. data/spec/javascripts/{fixtures → templates}/mercury/toolbar.button.html +0 -0
  104. data/spec/javascripts/{fixtures → templates}/mercury/toolbar.button_group.html +0 -0
  105. data/spec/javascripts/{fixtures → templates}/mercury/toolbar.expander.html +0 -0
  106. data/spec/javascripts/{fixtures → templates}/mercury/toolbar.html +0 -0
  107. data/spec/javascripts/{fixtures → templates}/mercury/tooltip.html +0 -0
  108. data/spec/javascripts/{fixtures → templates}/mercury/uploader.html +0 -0
  109. data/{app → vendor}/assets/images/mercury/button.png +0 -0
  110. data/{app → vendor}/assets/images/mercury/close.png +0 -0
  111. data/{app → vendor}/assets/images/mercury/loading-dark.gif +0 -0
  112. data/{app → vendor}/assets/images/mercury/loading-light.gif +0 -0
  113. data/{app → vendor}/assets/images/mercury/missing-image.png +0 -0
  114. data/{app → vendor}/assets/images/mercury/search-icon.png +0 -0
  115. data/{app → vendor}/assets/images/mercury/temp-logo.png +0 -0
  116. data/{app/assets/javascripts → vendor/assets/javascripts/mercury/dependencies}/jquery-1.7.js +0 -0
  117. data/{app → vendor}/assets/javascripts/mercury/dependencies/jquery-ui-1.8.13.custom.js +0 -0
  118. data/{app → vendor}/assets/javascripts/mercury/dependencies/jquery.additions.js +13 -103
  119. data/{app → vendor}/assets/javascripts/mercury/dependencies/jquery.htmlClean.js +0 -0
  120. data/{app → vendor}/assets/javascripts/mercury/dependencies/liquidmetal.js +0 -0
  121. data/{app → vendor}/assets/javascripts/mercury/dependencies/showdown.js +0 -0
  122. data/{app → vendor}/assets/javascripts/mercury/dialog.js.coffee +0 -0
  123. data/{app → vendor}/assets/javascripts/mercury/dialogs/backcolor.js.coffee +0 -0
  124. data/{app → vendor}/assets/javascripts/mercury/dialogs/forecolor.js.coffee +1 -1
  125. data/{app → vendor}/assets/javascripts/mercury/dialogs/formatblock.js.coffee +0 -0
  126. data/{app → vendor}/assets/javascripts/mercury/dialogs/snippetpanel.js.coffee +1 -1
  127. data/{app → vendor}/assets/javascripts/mercury/dialogs/style.js.coffee +0 -0
  128. data/{app → vendor}/assets/javascripts/mercury/finalize.js.coffee +0 -0
  129. data/{app → vendor}/assets/javascripts/mercury/history_buffer.js.coffee +0 -0
  130. data/{app → vendor}/assets/javascripts/mercury/lightview.js.coffee +17 -38
  131. data/{features/regions/markdown/uploading_images.feature → vendor/assets/javascripts/mercury/locales/da.locale.js.coffee} +0 -0
  132. data/{app → vendor}/assets/javascripts/mercury/locales/de.locale.js.coffee +10 -4
  133. data/{app → vendor}/assets/javascripts/mercury/locales/es.locale.js.coffee +9 -3
  134. data/{app → vendor}/assets/javascripts/mercury/locales/example.local.js.coffee +5 -3
  135. data/{app → vendor}/assets/javascripts/mercury/locales/fr.locale.js.coffee +9 -3
  136. data/{app → vendor}/assets/javascripts/mercury/locales/it.locale.js.coffee +9 -3
  137. data/{app → vendor}/assets/javascripts/mercury/locales/ko.local.js.coffee +10 -4
  138. data/{app → vendor}/assets/javascripts/mercury/locales/nl.locale.js.coffee +9 -3
  139. data/{app → vendor}/assets/javascripts/mercury/locales/pt.locale.js.coffee +9 -3
  140. data/{app → vendor}/assets/javascripts/mercury/locales/sv.local.js.coffee +9 -3
  141. data/{app → vendor}/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee +9 -3
  142. data/{app → vendor}/assets/javascripts/mercury/mercury.js.coffee +1 -10
  143. data/{app → vendor}/assets/javascripts/mercury/modal.js.coffee +40 -62
  144. data/{app → vendor}/assets/javascripts/mercury/modals/htmleditor.js.coffee +2 -3
  145. data/{app → vendor}/assets/javascripts/mercury/modals/insertcharacter.js.coffee +0 -1
  146. data/{app → vendor}/assets/javascripts/mercury/modals/insertsnippet.js.coffee +0 -2
  147. data/vendor/assets/javascripts/mercury/modals/inserttable.js.coffee +54 -0
  148. data/{app → vendor}/assets/javascripts/mercury/native_extensions.js.coffee +6 -0
  149. data/{app → vendor}/assets/javascripts/mercury/page_editor.js.coffee +50 -84
  150. data/{app → vendor}/assets/javascripts/mercury/palette.js.coffee +1 -1
  151. data/{app → vendor}/assets/javascripts/mercury/panel.js.coffee +2 -3
  152. data/{app → vendor}/assets/javascripts/mercury/plugins/save_as_xml/mercury/page_editor.js.coffee +2 -2
  153. data/{app → vendor}/assets/javascripts/mercury/plugins/save_as_xml/plugin.js +0 -0
  154. data/{app → vendor}/assets/javascripts/mercury/region.js.coffee +17 -18
  155. data/{app/assets/javascripts/mercury/regions/full.js.coffee → vendor/assets/javascripts/mercury/regions/editable.js.coffee} +31 -41
  156. data/{app/assets/javascripts/mercury/regions/markdown.js.coffee → vendor/assets/javascripts/mercury/regions/markupable.js.coffee} +24 -29
  157. data/{app → vendor}/assets/javascripts/mercury/regions/simple.js.coffee +54 -11
  158. data/{app/assets/javascripts/mercury/regions/snippets.js.coffee → vendor/assets/javascripts/mercury/regions/snippetable.js.coffee} +9 -10
  159. data/{app → vendor}/assets/javascripts/mercury/select.js.coffee +1 -1
  160. data/{app → vendor}/assets/javascripts/mercury/snippet_toolbar.js.coffee +6 -19
  161. data/{app → vendor}/assets/javascripts/mercury/statusbar.js.coffee +0 -0
  162. data/{app → vendor}/assets/javascripts/mercury/support/history.js +0 -0
  163. data/{app → vendor}/assets/javascripts/mercury/table_editor.js.coffee +0 -16
  164. data/{app → vendor}/assets/javascripts/mercury/toolbar.button.js.coffee +30 -45
  165. data/{app → vendor}/assets/javascripts/mercury/toolbar.button_group.js.coffee +2 -2
  166. data/{app → vendor}/assets/javascripts/mercury/toolbar.expander.js.coffee +4 -4
  167. data/{app → vendor}/assets/javascripts/mercury/toolbar.js.coffee +6 -10
  168. data/{app → vendor}/assets/javascripts/mercury/tooltip.js.coffee +0 -0
  169. data/{app → vendor}/assets/javascripts/mercury/uploader.js.coffee +19 -37
  170. data/{app → vendor}/assets/javascripts/mercury.js +87 -60
  171. data/vendor/assets/javascripts/mercury_loader.js +193 -0
  172. data/vendor/assets/javascripts/mercury_overrides.js +6 -0
  173. data/{app → vendor}/assets/stylesheets/mercury/all_images.css.erb +2 -6
  174. data/{app → vendor}/assets/stylesheets/mercury/dialog.css +8 -21
  175. data/{app → vendor}/assets/stylesheets/mercury/lightview.css +56 -6
  176. data/vendor/assets/stylesheets/mercury/mercury.css +151 -0
  177. data/{app → vendor}/assets/stylesheets/mercury/modal.css +32 -15
  178. data/{app → vendor}/assets/stylesheets/mercury/statusbar.css +0 -0
  179. data/{app → vendor}/assets/stylesheets/mercury/toolbar.css +1 -4
  180. data/{app → vendor}/assets/stylesheets/mercury/tooltip.css +0 -0
  181. data/{app → vendor}/assets/stylesheets/mercury/uploader.css +4 -4
  182. data/{app → vendor}/assets/stylesheets/mercury.css +5 -1
  183. data/vendor/assets/stylesheets/mercury_overrides.css +17 -0
  184. metadata +197 -367
  185. data/POST_INSTALL +0 -21
  186. data/app/assets/images/mercury/default-snippet.png +0 -0
  187. data/app/assets/images/mercury/toolbar/editable/buttons.png +0 -0
  188. data/app/assets/images/mercury/toolbar/primary/_expander.png +0 -0
  189. data/app/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
  190. data/app/assets/images/mercury/toolbar/primary/action.png +0 -0
  191. data/app/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
  192. data/app/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
  193. data/app/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
  194. data/app/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
  195. data/app/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
  196. data/app/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
  197. data/app/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
  198. data/app/assets/images/mercury/toolbar/primary/preview.png +0 -0
  199. data/app/assets/images/mercury/toolbar/primary/redo.png +0 -0
  200. data/app/assets/images/mercury/toolbar/primary/save.png +0 -0
  201. data/app/assets/images/mercury/toolbar/primary/snippetpanel.png +0 -0
  202. data/app/assets/images/mercury/toolbar/primary/tools.png +0 -0
  203. data/app/assets/images/mercury/toolbar/primary/undo.png +0 -0
  204. data/app/assets/images/mercury/toolbar/primary/user.png +0 -0
  205. data/app/assets/images/mercury/toolbar/snippets/buttons.png +0 -0
  206. data/app/assets/javascripts/mercury/locales/ar.locale.js.coffee +0 -201
  207. data/app/assets/javascripts/mercury/locales/da.locale.js.coffee +0 -208
  208. data/app/assets/javascripts/mercury/locales/hu.locale.js.coffee +0 -209
  209. data/app/assets/javascripts/mercury/locales/pl.locale.js.coffee +0 -213
  210. data/app/assets/javascripts/mercury/locales/ru.locale.js.coffee +0 -200
  211. data/app/assets/javascripts/mercury/locales/uk.locale.js.coffee +0 -200
  212. data/app/assets/javascripts/mercury/locales/zh.local.js.coffee +0 -203
  213. data/app/assets/javascripts/mercury/mercury-compiled.js +0 -10720
  214. data/app/assets/javascripts/mercury/modals/insertlink.js.coffee +0 -152
  215. data/app/assets/javascripts/mercury/modals/insertmedia.js.coffee +0 -132
  216. data/app/assets/javascripts/mercury/modals/inserttable.js.coffee +0 -68
  217. data/app/assets/javascripts/mercury/regions/image.js.coffee +0 -93
  218. data/app/assets/javascripts/mercury/snippet.js.coffee +0 -136
  219. data/app/assets/stylesheets/_mercury-bootstrap-overrides.scss +0 -61
  220. data/app/assets/stylesheets/_mercury-sass.scss +0 -33
  221. data/app/assets/stylesheets/mercury/bootstrap-ish.css +0 -1367
  222. data/app/assets/stylesheets/mercury/bootstrap-overrides.css +0 -61
  223. data/app/assets/stylesheets/mercury/mercury.css +0 -43
  224. data/app/helpers/mercury_helper.rb +0 -7
  225. data/app/views/layouts/mercury.html.haml +0 -19
  226. data/app/views/layouts/mercury.html.slim +0 -19
  227. data/app/views/mercury/snippets/no_options/preview.html.erb +0 -1
  228. data/config/routes.rb +0 -9
  229. data/features/generators/authentication.feature +0 -10
  230. data/features/generators/images.feature +0 -41
  231. data/features/generators/install.feature +0 -21
  232. data/features/regions/full/basic_editing.feature +0 -198
  233. data/features/regions/full/inserting_tables.feature +0 -109
  234. data/features/regions/simple/basic_editing.feature +0 -5
  235. data/features/step_definitions/custom_web_steps.rb +0 -22
  236. data/features/step_definitions/generator_steps.rb +0 -23
  237. data/features/support/aruba.rb +0 -28
  238. data/lib/generators/mercury/install/authentication/authentication_generator.rb +0 -17
  239. data/lib/generators/mercury/install/images/images_generator.rb +0 -47
  240. data/lib/mercury/cucumber/step_definitions/mercury_steps.rb +0 -408
  241. data/lib/mercury/cucumber/step_definitions.rb +0 -13
  242. data/lib/mercury/engine.rb +0 -19
  243. data/lib/mercury/rails.rb +0 -5
  244. data/lib/mercury/version.rb +0 -3
  245. data/spec/dummy/Rakefile +0 -7
  246. data/spec/dummy/app/assets/javascripts/application.js +0 -0
  247. data/spec/dummy/app/assets/javascripts/prototype.js +0 -6082
  248. data/spec/dummy/app/assets/stylesheets/application.css.scss +0 -110
  249. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  250. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  251. data/spec/dummy/app/views/layouts/mercury.html.erb +0 -28
  252. data/spec/dummy/config/application.rb +0 -58
  253. data/spec/dummy/config/boot.rb +0 -10
  254. data/spec/dummy/config/database.yml +0 -10
  255. data/spec/dummy/config/environment.rb +0 -5
  256. data/spec/dummy/config/environments/development.rb +0 -37
  257. data/spec/dummy/config/environments/production.rb +0 -67
  258. data/spec/dummy/config/environments/test.rb +0 -37
  259. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  260. data/spec/dummy/config/initializers/inflections.rb +0 -15
  261. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  262. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  263. data/spec/dummy/config/initializers/session_store.rb +0 -8
  264. data/spec/dummy/config/initializers/teabag.rb +0 -9
  265. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  266. data/spec/dummy/config/locales/en.yml +0 -5
  267. data/spec/dummy/config/routes.rb +0 -5
  268. data/spec/dummy/config.ru +0 -4
  269. data/spec/dummy/db/.gitkeep +0 -0
  270. data/spec/dummy/public/500.html +0 -25
  271. data/spec/dummy/public/blank.html +0 -1
  272. data/spec/dummy/public/favicon.ico +0 -0
  273. data/spec/dummy/public/images/bunny.gif +0 -0
  274. data/spec/dummy/public/images/bunny2.jpg +0 -0
  275. data/spec/dummy/public/index.html +0 -279
  276. data/spec/dummy/script/rails +0 -6
  277. data/spec/javascripts/fixtures/mercury/modals/insertlink.html +0 -67
  278. data/spec/javascripts/fixtures/mercury/modals/insertmedia.html +0 -87
  279. data/spec/javascripts/fixtures/mercury/modals/inserttable.html +0 -73
  280. data/spec/javascripts/fixtures/mercury/region.html +0 -6
  281. data/spec/javascripts/fixtures/mercury/regions/full.html +0 -1
  282. data/spec/javascripts/fixtures/mercury/regions/image.html +0 -1
  283. data/spec/javascripts/fixtures/mercury/regions/markdown.html +0 -1
  284. data/spec/javascripts/fixtures/mercury/regions/simple.html +0 -1
  285. data/spec/javascripts/fixtures/mercury/regions/snippets.html +0 -4
  286. data/spec/javascripts/mercury/regions/image_spec.js.coffee +0 -33
  287. data/spec/javascripts/mercury/regions/simple_spec.js.coffee +0 -32
  288. data/spec/javascripts/spec_helper.coffee +0 -4
  289. data/spec/teabag_env.rb +0 -32
@@ -1,16 +1,9 @@
1
- # not used maybe???
2
- #
3
1
  class Mercury::Image < ActiveRecord::Base
4
2
 
5
3
 
6
4
  #self.table_name = :mercury_images
7
5
 
8
6
  #has_attached_file :image, :styles => { :medium => "300x300>", :large=>"600x600>", :thumb => "100x100>" }
9
- attr_accessible :image
10
-
11
- has_attached_file :image, :styles => { :medium => "300x300>", :thumb => "100x100>" },
12
- :path => ":rails_root/public/system/:attachment/:id/:style/:filename",
13
- :url => "/system/:attachment/:id/:style/:filename"
14
7
 
15
8
  #delegate :url, :to => :image
16
9
 
@@ -4,20 +4,30 @@
4
4
  <meta name="viewport" content="width=device-width, maximum-scale=1.0, initial-scale=1.0">
5
5
  <%= csrf_meta_tags %>
6
6
  <title>Mercury Editor</title>
7
- <%= stylesheet_link_tag 'mercury' %>
8
- <%= javascript_include_tag 'jquery-1.7', 'mercury' %>
7
+ <%= stylesheet_link_tag 'mercury', 'mercury_overrides' %>
8
+ <%= javascript_include_tag 'mercury', 'mercury_overrides' %>
9
9
  </head>
10
10
  <body>
11
11
  <script type="text/javascript">
12
- // Set to the url that you want to save any given page to, leave null for default handling.
13
- var saveUrl = null;
12
+ var saveUrl = null; // Set to the url that you want to save any given page to.
13
+ var options = {
14
+ saveStyle: null, // 'form', or 'json' (default json)
15
+ saveMethod: null, // 'POST', or 'PUT', (create, vs. update -- default POST)
16
+ visible: null // if the interface should start visible or not (default true)
17
+ };
14
18
 
15
- // Instantiate the PageEditor
16
- new Mercury.PageEditor(saveUrl, {
17
- saveStyle: null, // 'form', or 'json' (default json)
18
- saveMethod: null, // 'PUT', or 'POST', (create, vs. update -- default PUT)
19
- visible: true // boolean - if the interface should start visible or not
20
- });
19
+ <!-- Mix in any configurations provided through Rails.application.config.mercury_config -->
20
+ <% if Rails.application.config.respond_to?(:mercury_config) %>
21
+ jQuery.extend(Mercury.config, <%= Rails.application.config.mercury_config.to_json.html_safe %>);
22
+ <% end -%>
23
+
24
+ <!-- Mix in any options for PageEditor provided through Rails.application.config.mercury_page_editor_config -->
25
+ <% if Rails.application.config.respond_to?(:mercury_page_editor_config) %>
26
+ jQuery.extend(options, <%= Rails.application.config.mercury_page_editor_config.to_json.html_safe %>);
27
+ <% end -%>
28
+
29
+ <!-- Instantiate the PageEditor -->
30
+ new Mercury.PageEditor(saveUrl, options);
21
31
  </script>
22
32
  </body>
23
33
  </html>
@@ -1,4 +1,4 @@
1
- <form id="mercury_character" class="mercury-form" style="width:456px">
1
+ <form id="mercury_character" style="width:456px">
2
2
 
3
3
  <div class="mercury-display-pane-container">
4
4
  <div class="mercury-display-pane">
@@ -1,9 +1,13 @@
1
- <form id="mercury_html_editor" class="mercury-form" style="width:650px">
1
+ <form id="mercury_html_editor" style="width:650px">
2
2
 
3
3
  <textarea class="mercury-display-pane-container" rows="5" style="width:100%"></textarea>
4
4
 
5
- <div class="form-actions mercury-display-controls">
6
- <input class="btn btn-primary" name="commit" type="submit" value="Save and Replace"/>
5
+ <div class="mercury-display-controls">
6
+ <fieldset class="buttons">
7
+ <ol>
8
+ <li class="commit button"><input class="submit" name="commit" type="submit" value="Save and Replace"/></li>
9
+ </ol>
10
+ </fieldset>
7
11
  </div>
8
12
 
9
13
  </form>
@@ -1,27 +1,26 @@
1
- <form id="mercury_link" class="form-horizontal" style="height: 875px; width: 800px;">
1
+ <form id="mercury_link" style="height: 875px; width: 800px;">
2
2
 
3
- <div class="form-inputs mercury-display-pane-container">
3
+ <div class="mercury-display-pane-container">
4
+ <div class="mercury-display-pane">
4
5
 
5
- <fieldset id="link_text_container">
6
- <div class="control-group string optional">
7
- <label class="string optional control-label" for="link_text">Link Content</label>
8
- <div class="controls">
9
- <input class="span6 string optional" id="link_text" name="link[text]" size="50" type="text">
10
- </div>
11
- </div>
12
- </fieldset>
6
+ <fieldset class="inputs" id="link_text_container">
7
+ <ol>
8
+ <li id="link_text_input" class="string input optional stringish">
9
+ <label class="label" for="link_text">Link Content</label>
10
+ <input id="link_text" name="link[text]" type="text"/>
11
+ </li>
12
+ </ol>
13
+ </fieldset>
13
14
 
14
- <fieldset>
15
- <legend>Standard Links</legend>
16
- <div class="control-group url optional">
17
- <label class="url optional control-label" for="link_external_url">
18
- <input name="link_type" type="radio" value="external_url" checked="checked"/>URL
19
- </label>
20
- <div class="controls">
21
- <input class="span6 string url optional" id="link_external_url" name="link[external_url]" size="50" type="text">
22
- </div>
23
- </div>
24
- </fieldset>
15
+ <fieldset class="inputs">
16
+ <legend><span>Standard Links</span></legend>
17
+ <ol>
18
+ <li id="link_external_url_input" class="string input optional stringish">
19
+ <label class="label" for="link_external_url"><input name="link_type" type="radio" value="external_url" checked="checked"/>URL</label>
20
+ <input class="selectable" id="link_external_url" name="link[external_url]" type="text"/>
21
+ </li>
22
+ </ol>
23
+ </fieldset>
25
24
 
26
25
  <fieldset class="inputs">
27
26
  <legend><span>Internal Link</span></legend>
@@ -56,25 +55,40 @@
56
55
  </ol>
57
56
  </fieldset>
58
57
 
59
- <fieldset>
60
- <legend>Options</legend>
61
- <div class="control-group select optional">
62
- <label class="select optional control-label" for="link_target">Link Target</label>
63
- <div class="controls">
64
- <select class="select optional" id="link_target" name="link[target]">
65
- <option value="">Self (the same window or tab)</option>
66
- <option value="_blank">Blank (a new window or tab)</option>
67
- <option value="_top">Top (removes any frames)</option>
68
- <option value="popup">Popup Window (javascript new window popup)</option>
69
- </select>
70
- </div>
71
- </div>
72
- </fieldset>
58
+ <fieldset class="inputs">
59
+ <legend><span>Options</span></legend>
60
+ <ol>
61
+ <li id="link_target_input" class="select input optional">
62
+ <label class="label" for="link_target">Link Target</label>
63
+ <select id="link_target" name="link[target]">
64
+ <option value="">Self (the same window or tab)</option>
65
+ <option value="_blank">Blank (a new window or tab)</option>
66
+ <option value="_top">Top (removes any frames)</option>
67
+ <option value="popup">Popup Window (javascript new window popup)</option>
68
+ </select>
69
+ </li>
70
+ <div id="popup_options" class="link-target-options" style="display:none">
71
+ <li id="link_popup_width_input" class="string input optional stringish">
72
+ <label class="label" for="link_popup_width">Popup Width</label>
73
+ <input id="link_popup_width" name="link[popup_width]" type="text"/>
74
+ </li>
75
+ <li id="link_popup_height_input" class="string input optional stringish">
76
+ <label class="label" for="link_popup_height">Popup Height</label>
77
+ <input id="link_popup_height" name="link[popup_height]" type="text"/>
78
+ </li>
79
+ </div>
80
+ </ol>
81
+ </fieldset>
73
82
 
83
+ </div>
74
84
  </div>
75
85
 
76
- <div class="form-actions mercury-display-controls">
77
- <input class="btn btn-primary" name="commit" type="submit" value="Insert Link">
86
+ <div class="mercury-display-controls">
87
+ <fieldset class="buttons">
88
+ <ol>
89
+ <li class="commit button"><input class="submit" name="commit" type="submit" value="Insert Link"/></li>
90
+ </ol>
91
+ </fieldset>
78
92
  </div>
79
93
 
80
94
  </form>
@@ -1,103 +1 @@
1
1
  Not used (rendered by Kit)
2
-
3
- <form id="mercury_media" class="form-horizontal" style="width:615px">
4
-
5
- <div class="form-inputs mercury-display-pane-container">
6
-
7
- <fieldset>
8
- <legend>Images</legend>
9
- <div class="control-group url optional">
10
- <label class="url optional control-label" for="media_image_url">
11
- <input name="media_type" type="radio" value="image_url" checked="checked"/>URL
12
- </label>
13
- <div class="controls">
14
- <input class="span6 string url optional" id="media_image_url" name="media[image_url]" size="50" type="text">
15
- </div>
16
- </div>
17
- </fieldset>
18
-
19
- <fieldset>
20
- <legend>Videos</legend>
21
- <div class="control-group url optional">
22
- <label class="url optional control-label" for="media_youtube_url">
23
- <input name="media_type" type="radio" value="youtube_url"/>YouTube URL
24
- </label>
25
- <div class="controls">
26
- <input class="span6 string url optional" id="media_youtube_url" name="media[youtube_url]" size="50" type="text" placeholder="http://youtu.be/Pny4hoN8eII">
27
- </div>
28
- </div>
29
- <div class="control-group url optional">
30
- <label class="url optional control-label" for="media_vimeo_url">
31
- <input name="media_type" type="radio" value="vimeo_url"/>Vimeo URL
32
- </label>
33
- <div class="controls">
34
- <input class="span6 string url optional" id="media_vimeo_url" name="media[vimeo_url]" size="50" type="text" placeholder="http://vimeo.com/25708134">
35
- </div>
36
- </div>
37
- </fieldset>
38
-
39
- <fieldset>
40
- <legend>Options</legend>
41
- <div class="media-options" id="image_url_options">
42
- <div class="control-group select optional">
43
- <label class="select optional control-label" for="media_image_alignment">Alignment</label>
44
- <div class="controls">
45
- <select class="select optional" id="media_image_alignment" name="media[image_alignment]">
46
- <option value="">None</option>
47
- <option value="left">Left</option>
48
- <option value="right">Right</option>
49
- <option value="top">Top</option>
50
- <option value="middle">Middle</option>
51
- <option value="bottom">Bottom</option>
52
- <option value="absmiddle">Absolute Middle</option>
53
- <option value="absbottom">Absolute Bottom</option>
54
- </select>
55
- </div>
56
- <label class="select optional control-label" for="media_image_float">Float</label>
57
- <div class="controls">
58
- <select class="select optional" id="media_image_float" name="media[image_float]">
59
- <option value="">None</option>
60
- <option value="left">Left</option>
61
- <option value="right">Right</option>
62
- <option value="none">None</option>
63
- <option value="inherit">Inherit</option>
64
- </select>
65
- </div>
66
- </div>
67
- </div>
68
- <div class="media-options" id="youtube_url_options" style="display:none">
69
- <div class="control-group number optional">
70
- <label class="number optional control-label" for="media_youtube_width">Width</label>
71
- <div class="controls">
72
- <input class="span2 number optional" id="media_youtube_width" name="media[youtube_width]" size="50" type="number" value="560">
73
- </div>
74
- </div>
75
- <div class="control-group number optional">
76
- <label class="number optional control-label" for="media_youtube_height">Height</label>
77
- <div class="controls">
78
- <input class="span2 number optional" id="media_youtube_height" name="media[youtube_height]" size="50" type="number" value="349">
79
- </div>
80
- </div>
81
- </div>
82
- <div class="media-options" id="vimeo_url_options" style="display:none">
83
- <div class="control-group number optional">
84
- <label class="number optional control-label" for="media_vimeo_width">Width</label>
85
- <div class="controls">
86
- <input class="span2 number optional" id="media_vimeo_width" name="media[vimeo_width]" size="50" type="number" value="400">
87
- </div>
88
- </div>
89
- <div class="control-group number optional">
90
- <label class="number optional control-label" for="media_vimeo_height">Height</label>
91
- <div class="controls">
92
- <input class="span2 number optional" id="media_vimeo_height" name="media[vimeo_height]" size="50" type="number" value="225">
93
- </div>
94
- </div>
95
- </div>
96
- </fieldset>
97
-
98
- </div>
99
- <div class="form-actions mercury-display-controls">
100
- <input class="btn btn-primary" name="commit" type="submit" value="Insert Media"/>
101
- </div>
102
-
103
- </form>
@@ -1,90 +1,84 @@
1
- <form id="mercury_table" class="form-horizontal" style="width:700px">
1
+ <form id="mercury_table" style="width:700px">
2
2
 
3
- <div class="form-inputs mercury-display-pane-container">
3
+ <div class="mercury-display-pane-container">
4
+ <div class="mercury-display-pane">
4
5
 
5
- <fieldset id="table_display">
6
- <div class="control-group optional">
7
- <div class="controls">
8
- <table border="1" cellspacing="0">
9
- <tr>
10
- <td>&nbsp;</td>
11
- <td>&nbsp;</td>
12
- <td>&nbsp;</td>
13
- </tr>
14
- <tr>
15
- <td>&nbsp;</td>
16
- <td>&nbsp;</td>
17
- <td>&nbsp;</td>
18
- </tr>
19
- </table>
20
- </div>
6
+ <div id="table_display">
7
+ <table border="1" cellspacing="0">
8
+ <tr>
9
+ <td>&nbsp;</td>
10
+ <td>&nbsp;</td>
11
+ <td>&nbsp;</td>
12
+ </tr>
13
+ <tr>
14
+ <td>&nbsp;</td>
15
+ <td>&nbsp;</td>
16
+ <td>&nbsp;</td>
17
+ </tr>
18
+ </table>
21
19
  </div>
22
- </fieldset>
23
20
 
24
- <fieldset>
25
- <div class="control-group buttons optional">
26
- <label class="buttons optional control-label">Rows</label>
27
- <div class="controls btn-group">
28
- <button class="btn" data-action="addRowBefore">Add Before</button>
29
- <button class="btn" data-action="addRowAfter">Add After</button>
30
- <button class="btn" data-action="removeRow">Remove</button>
31
- </div>
32
- </div>
33
- <div class="control-group buttons optional">
34
- <label class="buttons optional control-label">Columns</label>
35
- <div class="controls btn-group">
36
- <button class="btn" data-action="addColumnBefore">Add Before</button>
37
- <button class="btn" data-action="addColumnAfter">Add After</button>
38
- <button class="btn" data-action="removeColumn">Remove</button>
39
- </div>
40
- </div>
41
- <hr/>
42
- <div class="control-group buttons optional">
43
- <label class="buttons optional control-label">Row Span</label>
44
- <div class="controls btn-group">
45
- <button class="btn" data-action="increaseRowspan">+</button>
46
- <button class="btn" data-action="decreaseRowspan">-</button>
47
- </div>
48
- </div>
49
- <div class="control-group buttons optional">
50
- <label class="buttons optional control-label">Column Span</label>
51
- <div class="controls btn-group">
52
- <button class="btn" data-action="increaseColspan">+</button>
53
- <button class="btn" data-action="decreaseColspan">-</button>
54
- </div>
55
- </div>
56
- </fieldset>
21
+ <div id="table_options">
22
+ <fieldset class="inputs">
23
+ <ol>
24
+ <li id="table_rows_input" class="select input optional">
25
+ <label for="table_rows">Rows</label>
26
+ <input type="button" class="action" value="Add Before" name="insertRowBefore"/>
27
+ <input type="button" class="action" value="Add After" name="insertRowAfter"/>
28
+ <input type="button" class="action" value="Remove" name="deleteRow"/>
29
+ </li>
30
+ <li id="table_columns_input" class="select input optional">
31
+ <label for="table_columns">Columns</label>
32
+ <input type="button" class="action" value="Add Before" name="insertColumnBefore"/>
33
+ <input type="button" class="action" value="Add After" name="insertColumnAfter"/>
34
+ <input type="button" class="action" value="Remove" name="deleteColumn"/>
35
+ </li>
36
+ <hr/>
37
+ <li id="table_row_adjust_input" class="select input optional">
38
+ <label for="table_row_adjust">Row Span</label>
39
+ <input type="button" class="action" value="+" name="increaseRowspan"/>
40
+ <input type="button" class="action" value="-" name="decreaseRowspan"/>
41
+ </li>
42
+ <li id="table_column_adjust_input" class="select input optional">
43
+ <label for="table_column_adjust">Column Span</label>
44
+ <input type="button" class="action" value="+" name="increaseColspan"/>
45
+ <input type="button" class="action" value="-" name="decreaseColspan"/>
46
+ </li>
47
+ </ol>
48
+ </fieldset>
57
49
 
58
- <fieldset>
59
- <legend>Options</legend>
60
- <div class="control-group select optional">
61
- <label class="select optional control-label" for="table_alignment">Alignment</label>
62
- <div class="controls">
63
- <select class="select optional" id="table_alignment" name="table[alignment]">
64
- <option value="">None</option>
65
- <option value="right">Right</option>
66
- <option value="left">Left</option>
67
- </select>
68
- </div>
69
- </div>
70
- <div class="control-group number optional">
71
- <label class="number optional control-label" for="table_border">Border</label>
72
- <div class="controls">
73
- <input class="span1 number optional" id="table_border" name="table[border]" size="50" type="number" value="1">
74
- </div>
75
- </div>
76
- <div class="control-group number optional">
77
- <label class="number optional control-label" for="table_spacing">Spacing</label>
78
- <div class="controls">
79
- <input class="span1 number optional" id="table_spacing" name="table[spacing]" size="50" type="number" value="0">
80
- </div>
50
+ <fieldset class="inputs">
51
+ <legend><span>Options</span></legend>
52
+ <ol>
53
+ <li id="table_alignment_input" class="select input optional">
54
+ <label class="label" for="table_alignment">Alignment</label>
55
+ <select id="table_alignment" name="table[alignment]">
56
+ <option value="">None</option>
57
+ <option value="left">Left</option>
58
+ <option value="right">Right</option>
59
+ </select>
60
+ </li>
61
+ <li id="table_border_input" class="string input optional stringish">
62
+ <label class="label" for="table_border">Border</label>
63
+ <input id="table_border" name="table[border]" type="text" value="1"/>
64
+ </li>
65
+ <li id="table_spacing_input" class="string input optional stringish">
66
+ <label class="label" for="table_spacing">Spacing</label>
67
+ <input id="table_spacing" name="table[spacing]" type="text" value="0"/>
68
+ </li>
69
+ </ol>
70
+ </fieldset>
81
71
  </div>
82
- </fieldset>
83
72
 
73
+ </div>
84
74
  </div>
85
75
 
86
- <div class="form-actions mercury-display-controls">
87
- <input class="btn btn-primary" name="commit" type="submit" value="Insert Table"/>
76
+ <div class="mercury-display-controls">
77
+ <fieldset class="buttons">
78
+ <ol>
79
+ <li class="commit button"><input class="submit" name="commit" type="submit" value="Insert Table" /></li>
80
+ </ol>
81
+ </fieldset>
88
82
  </div>
89
83
 
90
- </form>
84
+ </form>
@@ -1,6 +1,6 @@
1
1
  <div class="mercury-snippet-panel">
2
2
  <div class="filter">
3
- <input class="filter focusable" type="text">
3
+ <input class="filter" type="text">
4
4
  </div>
5
5
  <ul>
6
6
  <li data-filter="example, snippet, favorite, beer">
@@ -8,10 +8,5 @@
8
8
  <h4>Snippet Name</h4>
9
9
  <div class="description">A one or two line long description of what this snippet does.</div>
10
10
  </li>
11
- <li data-filter="no options, snippet">
12
- <img alt="No Option Snippet" data-snippet="no_options" data-options="false" src="/assets/mercury/default-snippet.png"/>
13
- <h4>No Options Snippet</h4>
14
- <div class="description">This snippet doesn't have options.</div>
15
- </li>
16
11
  </ul>
17
12
  </div>
@@ -1,30 +1,34 @@
1
- <%= form_for 'options', {url: '', html: {class: 'form-horizontal', style: 'width:615px'}} do |f| %>
1
+ <%= form_for 'options', { :html => { :style => 'width:600px' } } do |f| %>
2
2
 
3
- <div class="form-inputs mercury-display-pane-container">
4
-
5
- <fieldset>
6
- <div class="control-group string optional">
7
- <label class="string optional control-label" for="options_first_name">First Name</label>
8
- <div class="controls">
9
- <input class="span6 string optional" id="options_first_name" name="options[first_name]" size="50" type="text" value="<%= @options[:first_name] %>">
10
- </div>
11
- </div>
12
- </fieldset>
13
-
14
- <fieldset>
15
- <legend>Options</legend>
16
- <div class="control-group string optional">
17
- <label class="string optional control-label" for="options_favorite_beer">Favorite Beer</label>
18
- <div class="controls">
19
- <input class="span6 string optional" id="options_favorite_beer" name="options[favorite_beer]" size="50" type="text" value="<%= @options[:favorite_beer] %>">
20
- </div>
21
- </div>
22
- </fieldset>
3
+ <div class="mercury-display-pane-container">
4
+ <div class="mercury-display-pane">
5
+ <fieldset class="inputs">
6
+ <ol>
7
+ <li class="string input optional stringish" id="options_first_name_input">
8
+ <label class="label" for="options_first_name">First Name</label>
9
+ <input id="options_first_name" name="options[first_name]" type="text" value="<%= @options[:first_name] %>"/>
10
+ </li>
11
+ </ol>
12
+ </fieldset>
23
13
 
14
+ <fieldset class="inputs">
15
+ <legend><span>Options</span></legend>
16
+ <ol>
17
+ <li class="string input optional stringish" id="options_favorite_beer_input">
18
+ <label class="label" for="options_favorite_beer">Favorite Beer</label>
19
+ <input id="options_favorite_beer" name="options[favorite_beer]" type="text" value="<%= @options[:favorite_beer] %>"/>
20
+ </li>
21
+ </ol>
22
+ </fieldset>
23
+ </div>
24
24
  </div>
25
25
 
26
- <div class="form-actions mercury-display-controls">
27
- <input class="btn btn-primary" name="commit" type="submit" value="Insert Snippet"/>
26
+ <div class="mercury-display-controls">
27
+ <fieldset class="buttons">
28
+ <ol>
29
+ <li class="commit button"><input class="submit" name="commit" type="submit" value="Insert Snippet"/></li>
30
+ </ol>
31
+ </fieldset>
28
32
  </div>
29
33
 
30
34
  <% end %>
@@ -15,11 +15,8 @@ Feature:
15
15
 
16
16
 
17
17
  Scenario: A user can expect to see the contents of the iframe
18
- Then I should see "Full region" in the content frame
18
+ Then I should see "Editable region" in the content frame
19
19
 
20
20
 
21
- # Latest selenium webdriver seems to consider the lightview hidden
22
- @use_hidden_elements
23
21
  Scenario: A user can expect to see the status bar
24
- Then I should see "Mercury Editor v0.9.0" within the statusbar
25
-
22
+ Then I should see "Mercury Editor v0.3.0" within the statusbar
@@ -7,14 +7,12 @@ Feature:
7
7
  Background:
8
8
  Given I am on an editable page
9
9
 
10
- # Scenario: A user can expect all this!
10
+ Scenario: A user can expect all this!
11
11
 
12
12
 
13
- # Latest selenium webdriver seems to consider the lightview hidden
14
- @use_hidden_elements
15
- Scenario: A user can view and close the about dialog
13
+ # Scenario: A user can view and close the about dialog
16
14
  When I click on the about the editor link
17
- Then I should see "Mercury Editor" within the lightview window
15
+ Then I should see "Mercury Editor" within the lightview title
18
16
  And I should see "Mercury Editor is an open source HTML5 WYSIWYG editor written in Coffeescript using jQuery. The project has been released under the MIT license." within the lightview window
19
17
  And I should see "Project Home" within the lightview window
20
18
  And I should see "Project Source" within the lightview window
@@ -24,7 +22,7 @@ Feature:
24
22
  And the lightview overlay should not be visible
25
23
 
26
24
 
27
- Scenario: A user can open and close select dropdowns
25
+ # Scenario: A user can open and close select dropdowns
28
26
  When I click on the formatblock editor dropdown
29
27
  Then the formatblock select should be visible
30
28
  And I should see "Heading 1 <h1>" within the formatblock select
@@ -34,7 +32,7 @@ Feature:
34
32
  And the formatblock select should not be visible
35
33
 
36
34
 
37
- Scenario: A user can open and close palette dialogs
35
+ # Scenario: A user can open and close palette dialogs
38
36
  When I click on the background color editor button
39
37
  Then the background color palette should be visible
40
38
 
@@ -43,7 +41,7 @@ Feature:
43
41
  And the background color palette should not be visible
44
42
 
45
43
 
46
- Scenario: A user can open and close a panel
44
+ # Scenario: A user can open and close a panel
47
45
  When I click on the "View History" button
48
46
  Then the history panel should be visible
49
47
  And I should see "Page Version History" within the history panel
@@ -52,7 +50,7 @@ Feature:
52
50
  Then the history panel should not be visible
53
51
 
54
52
 
55
- Scenario: A user can open and close a modal window
53
+ # Scenario: A user can open and close a modal window
56
54
  When I click on the "Insert Link" button
57
55
  Then the modal window should be visible
58
56
  And the modal overlay should be visible