kiteditor 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/{lib/generators/mercury/install/images/templates → app/controllers/mercury}/images_controller.rb +0 -0
- data/{lib/generators/mercury/install/images/templates/ar_paperclip_image.rb → app/models/mercury/image.rb} +0 -7
- data/app/views/layouts/mercury.html.erb +20 -10
- data/app/views/mercury/modals/character.html +1 -1
- data/app/views/mercury/modals/htmleditor.html +7 -3
- data/app/views/mercury/modals/link.html +51 -37
- data/app/views/mercury/modals/media.html +0 -102
- data/app/views/mercury/modals/table.html +73 -79
- data/app/views/mercury/panels/snippets.html +1 -6
- data/app/views/mercury/snippets/example/options.html.erb +27 -23
- data/{lib/generators/mercury/install/images/templates/ar_paperclip_image_migration.rb → db/migrate/20110526035601_create_mercury_images.rb} +0 -0
- data/features/loading/loading.feature +2 -5
- data/features/loading/user_interface.feature +7 -9
- data/features/regions/{full → editable}/advanced_editing.feature +0 -0
- data/features/regions/editable/basic_editing.feature +195 -0
- data/features/regions/{full → editable}/inserting_links.feature +19 -20
- data/features/regions/{full → editable}/inserting_media.feature +18 -36
- data/features/regions/{full → editable}/inserting_snippets.feature +18 -28
- data/features/regions/{full → editable}/inserting_special_characters.feature +2 -2
- data/features/regions/editable/inserting_tables.feature +109 -0
- data/features/regions/{full → editable}/pasting.feature +0 -0
- data/features/regions/{full → editable}/uploading_images.feature +0 -0
- data/features/regions/{markdown → markupable}/advanced_editing.feature +0 -0
- data/features/regions/{markdown → markupable}/basic_editing.feature +0 -0
- data/features/regions/{markdown → markupable}/inserting_links.feature +0 -0
- data/features/regions/{markdown → markupable}/inserting_media.feature +0 -0
- data/features/regions/{markdown → markupable}/inserting_snippets.feature +0 -0
- data/features/regions/{markdown → markupable}/inserting_special_characters.feature +0 -0
- data/features/regions/{markdown → markupable}/inserting_tables.feature +0 -0
- data/features/regions/{image → markupable}/uploading_images.feature +0 -0
- data/features/regions/{snippets → snippetable}/advanced_editing.feature +0 -0
- data/features/regions/{snippets → snippetable}/basic_editing.feature +0 -0
- data/features/regions/{snippets → snippetable}/inserting_snippets.feature +0 -0
- data/features/saving/saving.feature +8 -8
- data/features/step_definitions/mercury_steps.rb +438 -1
- data/features/support/env.rb +1 -11
- data/{lib/mercury/cucumber → features}/support/mercury_contents.rb +3 -3
- data/{lib/mercury/cucumber → features}/support/mercury_selectors.rb +20 -0
- data/features/support/selectors.rb +0 -23
- data/lib/generators/mercury/install/install_generator.rb +23 -12
- data/lib/generators/mercury/install/{images/templates → templates}/mongoid_paperclip_image.rb +0 -0
- data/lib/mercury/authentication.rb +0 -1
- data/lib/mercury-rails.rb +2 -1
- data/spec/javascripts/mercury/{dialog_spec.coffee → dialog_spec.js.coffee} +12 -11
- data/spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee +3 -2
- data/spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee +4 -3
- data/spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee +3 -2
- data/spec/javascripts/mercury/dialogs/snippetpanel_spec.js.coffee +3 -2
- data/spec/javascripts/mercury/dialogs/style_spec.js.coffee +3 -2
- data/spec/javascripts/mercury/lightview_spec.js.coffee +142 -180
- data/spec/javascripts/mercury/mercury_spec.js.coffee +13 -19
- data/spec/javascripts/mercury/modal_spec.js.coffee +148 -192
- data/spec/javascripts/mercury/modals/htmleditor_spec.js.coffee +5 -4
- data/spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee +3 -2
- data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +34 -107
- data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +26 -106
- data/spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee +3 -2
- data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +40 -50
- data/spec/javascripts/mercury/page_editor_spec.js.coffee +80 -124
- data/spec/javascripts/mercury/palette_spec.js.coffee +5 -4
- data/spec/javascripts/mercury/panel_spec.js.coffee +12 -9
- data/spec/javascripts/mercury/region_spec.js.coffee +17 -22
- data/spec/javascripts/mercury/regions/{full_spec.js.coffee → editable_spec.js.coffee} +28 -26
- data/spec/javascripts/mercury/regions/{markdown_spec.js.coffee → markupable_spec.js.coffee} +34 -32
- data/spec/javascripts/mercury/regions/{snippets_spec.js.coffee → snippetable_spec.js.coffee} +55 -54
- data/spec/javascripts/mercury/select_spec.js.coffee +5 -4
- data/spec/javascripts/mercury/snippet_spec.js.coffee +16 -92
- data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +16 -31
- data/spec/javascripts/mercury/statusbar_spec.js.coffee +10 -9
- data/spec/javascripts/mercury/table_editor_spec.js.coffee +2 -1
- data/spec/javascripts/mercury/toolbar.button_group_spec.js.coffee +9 -7
- data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +26 -55
- data/spec/javascripts/mercury/toolbar.expander_spec.js.coffee +13 -13
- data/spec/javascripts/mercury/toolbar_spec.js.coffee +14 -43
- data/spec/javascripts/mercury/tooltip_spec.js.coffee +2 -1
- data/spec/javascripts/mercury/uploader_spec.js.coffee +33 -47
- data/spec/javascripts/{support/event_simulation.js → spec_helper.js} +2 -0
- data/spec/javascripts/{fixtures → templates}/mercury/dialog.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/dialogs/backcolor.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/dialogs/forecolor.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/dialogs/formatblock.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/dialogs/snippetpanel.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/dialogs/style.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/lightview.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/modal.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/modals/htmleditor.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/modals/insertcharacter.html +0 -0
- data/spec/javascripts/templates/mercury/modals/insertlink.html +30 -0
- data/spec/javascripts/templates/mercury/modals/insertmedia.html +35 -0
- data/spec/javascripts/{fixtures → templates}/mercury/modals/insertsnippet.html +0 -0
- data/spec/javascripts/templates/mercury/modals/inserttable.html +27 -0
- data/spec/javascripts/{fixtures → templates}/mercury/page_editor.html +4 -4
- data/spec/javascripts/{fixtures → templates}/mercury/palette.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/panel.html +0 -0
- data/spec/javascripts/templates/mercury/region.html +2 -0
- data/spec/javascripts/templates/mercury/regions/editable.html +3 -0
- data/spec/javascripts/templates/mercury/regions/snippetable.html +4 -0
- data/spec/javascripts/{fixtures → templates}/mercury/select.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/snippet.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/snippet_toolbar.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/statusbar.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/table_editor.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/toolbar.button.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/toolbar.button_group.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/toolbar.expander.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/toolbar.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/tooltip.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/uploader.html +0 -0
- data/{app → vendor}/assets/images/mercury/button.png +0 -0
- data/{app → vendor}/assets/images/mercury/close.png +0 -0
- data/{app → vendor}/assets/images/mercury/loading-dark.gif +0 -0
- data/{app → vendor}/assets/images/mercury/loading-light.gif +0 -0
- data/{app → vendor}/assets/images/mercury/missing-image.png +0 -0
- data/{app → vendor}/assets/images/mercury/search-icon.png +0 -0
- data/{app → vendor}/assets/images/mercury/temp-logo.png +0 -0
- data/{app/assets/javascripts → vendor/assets/javascripts/mercury/dependencies}/jquery-1.7.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dependencies/jquery-ui-1.8.13.custom.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dependencies/jquery.additions.js +13 -103
- data/{app → vendor}/assets/javascripts/mercury/dependencies/jquery.htmlClean.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dependencies/liquidmetal.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dependencies/showdown.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dialog.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dialogs/backcolor.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dialogs/forecolor.js.coffee +1 -1
- data/{app → vendor}/assets/javascripts/mercury/dialogs/formatblock.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dialogs/snippetpanel.js.coffee +1 -1
- data/{app → vendor}/assets/javascripts/mercury/dialogs/style.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/finalize.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/history_buffer.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/lightview.js.coffee +17 -38
- data/{features/regions/markdown/uploading_images.feature → vendor/assets/javascripts/mercury/locales/da.locale.js.coffee} +0 -0
- data/{app → vendor}/assets/javascripts/mercury/locales/de.locale.js.coffee +10 -4
- data/{app → vendor}/assets/javascripts/mercury/locales/es.locale.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/example.local.js.coffee +5 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/fr.locale.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/it.locale.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/ko.local.js.coffee +10 -4
- data/{app → vendor}/assets/javascripts/mercury/locales/nl.locale.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/pt.locale.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/sv.local.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/mercury.js.coffee +1 -10
- data/{app → vendor}/assets/javascripts/mercury/modal.js.coffee +40 -62
- data/{app → vendor}/assets/javascripts/mercury/modals/htmleditor.js.coffee +2 -3
- data/{app → vendor}/assets/javascripts/mercury/modals/insertcharacter.js.coffee +0 -1
- data/{app → vendor}/assets/javascripts/mercury/modals/insertsnippet.js.coffee +0 -2
- data/vendor/assets/javascripts/mercury/modals/inserttable.js.coffee +54 -0
- data/{app → vendor}/assets/javascripts/mercury/native_extensions.js.coffee +6 -0
- data/{app → vendor}/assets/javascripts/mercury/page_editor.js.coffee +50 -84
- data/{app → vendor}/assets/javascripts/mercury/palette.js.coffee +1 -1
- data/{app → vendor}/assets/javascripts/mercury/panel.js.coffee +2 -3
- data/{app → vendor}/assets/javascripts/mercury/plugins/save_as_xml/mercury/page_editor.js.coffee +2 -2
- data/{app → vendor}/assets/javascripts/mercury/plugins/save_as_xml/plugin.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/region.js.coffee +17 -18
- data/{app/assets/javascripts/mercury/regions/full.js.coffee → vendor/assets/javascripts/mercury/regions/editable.js.coffee} +31 -41
- data/{app/assets/javascripts/mercury/regions/markdown.js.coffee → vendor/assets/javascripts/mercury/regions/markupable.js.coffee} +24 -29
- data/{app → vendor}/assets/javascripts/mercury/regions/simple.js.coffee +54 -11
- data/{app/assets/javascripts/mercury/regions/snippets.js.coffee → vendor/assets/javascripts/mercury/regions/snippetable.js.coffee} +9 -10
- data/{app → vendor}/assets/javascripts/mercury/select.js.coffee +1 -1
- data/{app → vendor}/assets/javascripts/mercury/snippet_toolbar.js.coffee +6 -19
- data/{app → vendor}/assets/javascripts/mercury/statusbar.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/support/history.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/table_editor.js.coffee +0 -16
- data/{app → vendor}/assets/javascripts/mercury/toolbar.button.js.coffee +30 -45
- data/{app → vendor}/assets/javascripts/mercury/toolbar.button_group.js.coffee +2 -2
- data/{app → vendor}/assets/javascripts/mercury/toolbar.expander.js.coffee +4 -4
- data/{app → vendor}/assets/javascripts/mercury/toolbar.js.coffee +6 -10
- data/{app → vendor}/assets/javascripts/mercury/tooltip.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/uploader.js.coffee +19 -37
- data/{app → vendor}/assets/javascripts/mercury.js +87 -60
- data/vendor/assets/javascripts/mercury_loader.js +193 -0
- data/vendor/assets/javascripts/mercury_overrides.js +6 -0
- data/{app → vendor}/assets/stylesheets/mercury/all_images.css.erb +2 -6
- data/{app → vendor}/assets/stylesheets/mercury/dialog.css +8 -21
- data/{app → vendor}/assets/stylesheets/mercury/lightview.css +56 -6
- data/vendor/assets/stylesheets/mercury/mercury.css +151 -0
- data/{app → vendor}/assets/stylesheets/mercury/modal.css +32 -15
- data/{app → vendor}/assets/stylesheets/mercury/statusbar.css +0 -0
- data/{app → vendor}/assets/stylesheets/mercury/toolbar.css +1 -4
- data/{app → vendor}/assets/stylesheets/mercury/tooltip.css +0 -0
- data/{app → vendor}/assets/stylesheets/mercury/uploader.css +4 -4
- data/{app → vendor}/assets/stylesheets/mercury.css +5 -1
- data/vendor/assets/stylesheets/mercury_overrides.css +17 -0
- metadata +197 -367
- data/POST_INSTALL +0 -21
- data/app/assets/images/mercury/default-snippet.png +0 -0
- data/app/assets/images/mercury/toolbar/editable/buttons.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/_expander.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/action.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/preview.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/redo.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/save.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/snippetpanel.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/tools.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/undo.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/user.png +0 -0
- data/app/assets/images/mercury/toolbar/snippets/buttons.png +0 -0
- data/app/assets/javascripts/mercury/locales/ar.locale.js.coffee +0 -201
- data/app/assets/javascripts/mercury/locales/da.locale.js.coffee +0 -208
- data/app/assets/javascripts/mercury/locales/hu.locale.js.coffee +0 -209
- data/app/assets/javascripts/mercury/locales/pl.locale.js.coffee +0 -213
- data/app/assets/javascripts/mercury/locales/ru.locale.js.coffee +0 -200
- data/app/assets/javascripts/mercury/locales/uk.locale.js.coffee +0 -200
- data/app/assets/javascripts/mercury/locales/zh.local.js.coffee +0 -203
- data/app/assets/javascripts/mercury/mercury-compiled.js +0 -10720
- data/app/assets/javascripts/mercury/modals/insertlink.js.coffee +0 -152
- data/app/assets/javascripts/mercury/modals/insertmedia.js.coffee +0 -132
- data/app/assets/javascripts/mercury/modals/inserttable.js.coffee +0 -68
- data/app/assets/javascripts/mercury/regions/image.js.coffee +0 -93
- data/app/assets/javascripts/mercury/snippet.js.coffee +0 -136
- data/app/assets/stylesheets/_mercury-bootstrap-overrides.scss +0 -61
- data/app/assets/stylesheets/_mercury-sass.scss +0 -33
- data/app/assets/stylesheets/mercury/bootstrap-ish.css +0 -1367
- data/app/assets/stylesheets/mercury/bootstrap-overrides.css +0 -61
- data/app/assets/stylesheets/mercury/mercury.css +0 -43
- data/app/helpers/mercury_helper.rb +0 -7
- data/app/views/layouts/mercury.html.haml +0 -19
- data/app/views/layouts/mercury.html.slim +0 -19
- data/app/views/mercury/snippets/no_options/preview.html.erb +0 -1
- data/config/routes.rb +0 -9
- data/features/generators/authentication.feature +0 -10
- data/features/generators/images.feature +0 -41
- data/features/generators/install.feature +0 -21
- data/features/regions/full/basic_editing.feature +0 -198
- data/features/regions/full/inserting_tables.feature +0 -109
- data/features/regions/simple/basic_editing.feature +0 -5
- data/features/step_definitions/custom_web_steps.rb +0 -22
- data/features/step_definitions/generator_steps.rb +0 -23
- data/features/support/aruba.rb +0 -28
- data/lib/generators/mercury/install/authentication/authentication_generator.rb +0 -17
- data/lib/generators/mercury/install/images/images_generator.rb +0 -47
- data/lib/mercury/cucumber/step_definitions/mercury_steps.rb +0 -408
- data/lib/mercury/cucumber/step_definitions.rb +0 -13
- data/lib/mercury/engine.rb +0 -19
- data/lib/mercury/rails.rb +0 -5
- data/lib/mercury/version.rb +0 -3
- data/spec/dummy/Rakefile +0 -7
- data/spec/dummy/app/assets/javascripts/application.js +0 -0
- data/spec/dummy/app/assets/javascripts/prototype.js +0 -6082
- data/spec/dummy/app/assets/stylesheets/application.css.scss +0 -110
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/app/views/layouts/mercury.html.erb +0 -28
- data/spec/dummy/config/application.rb +0 -58
- data/spec/dummy/config/boot.rb +0 -10
- data/spec/dummy/config/database.yml +0 -10
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -37
- data/spec/dummy/config/environments/production.rb +0 -67
- data/spec/dummy/config/environments/test.rb +0 -37
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/inflections.rb +0 -15
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/config/initializers/session_store.rb +0 -8
- data/spec/dummy/config/initializers/teabag.rb +0 -9
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/config/routes.rb +0 -5
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/db/.gitkeep +0 -0
- data/spec/dummy/public/500.html +0 -25
- data/spec/dummy/public/blank.html +0 -1
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/images/bunny.gif +0 -0
- data/spec/dummy/public/images/bunny2.jpg +0 -0
- data/spec/dummy/public/index.html +0 -279
- data/spec/dummy/script/rails +0 -6
- data/spec/javascripts/fixtures/mercury/modals/insertlink.html +0 -67
- data/spec/javascripts/fixtures/mercury/modals/insertmedia.html +0 -87
- data/spec/javascripts/fixtures/mercury/modals/inserttable.html +0 -73
- data/spec/javascripts/fixtures/mercury/region.html +0 -6
- data/spec/javascripts/fixtures/mercury/regions/full.html +0 -1
- data/spec/javascripts/fixtures/mercury/regions/image.html +0 -1
- data/spec/javascripts/fixtures/mercury/regions/markdown.html +0 -1
- data/spec/javascripts/fixtures/mercury/regions/simple.html +0 -1
- data/spec/javascripts/fixtures/mercury/regions/snippets.html +0 -4
- data/spec/javascripts/mercury/regions/image_spec.js.coffee +0 -33
- data/spec/javascripts/mercury/regions/simple_spec.js.coffee +0 -32
- data/spec/javascripts/spec_helper.coffee +0 -4
- data/spec/teabag_env.rb +0 -32
|
File without changes
|
|
@@ -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 '
|
|
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
|
|
13
|
-
var
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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,9 +1,13 @@
|
|
|
1
|
-
<form id="mercury_html_editor"
|
|
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="
|
|
6
|
-
<
|
|
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"
|
|
1
|
+
<form id="mercury_link" style="height: 875px; width: 800px;">
|
|
2
2
|
|
|
3
|
-
<div class="
|
|
3
|
+
<div class="mercury-display-pane-container">
|
|
4
|
+
<div class="mercury-display-pane">
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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="
|
|
77
|
-
<
|
|
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"
|
|
1
|
+
<form id="mercury_table" style="width:700px">
|
|
2
2
|
|
|
3
|
-
<div class="
|
|
3
|
+
<div class="mercury-display-pane-container">
|
|
4
|
+
<div class="mercury-display-pane">
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
</tr>
|
|
19
|
-
</table>
|
|
20
|
-
</div>
|
|
6
|
+
<div id="table_display">
|
|
7
|
+
<table border="1" cellspacing="0">
|
|
8
|
+
<tr>
|
|
9
|
+
<td> </td>
|
|
10
|
+
<td> </td>
|
|
11
|
+
<td> </td>
|
|
12
|
+
</tr>
|
|
13
|
+
<tr>
|
|
14
|
+
<td> </td>
|
|
15
|
+
<td> </td>
|
|
16
|
+
<td> </td>
|
|
17
|
+
</tr>
|
|
18
|
+
</table>
|
|
21
19
|
</div>
|
|
22
|
-
</fieldset>
|
|
23
20
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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="
|
|
87
|
-
<
|
|
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
|
|
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', {
|
|
1
|
+
<%= form_for 'options', { :html => { :style => 'width:600px' } } do |f| %>
|
|
2
2
|
|
|
3
|
-
<div class="
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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="
|
|
27
|
-
<
|
|
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 %>
|
|
File without changes
|
|
@@ -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 "
|
|
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.
|
|
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
|
-
|
|
10
|
+
Scenario: A user can expect all this!
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
File without changes
|