kiteditor 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +25 -0
- data/app/controllers/mercury/images_controller.rb +5 -0
- data/app/controllers/mercury_controller.rb +34 -0
- data/app/models/mercury/image.rb +17 -0
- data/app/views/layouts/mercury.html.erb +33 -0
- data/app/views/layouts/popup.html.haml +9 -0
- data/app/views/mercury/images/_list.html.haml +22 -0
- data/app/views/mercury/images/index.html.haml +4 -0
- data/app/views/mercury/images/index.js.erb +2 -0
- data/app/views/mercury/lightviews/about.html +11 -0
- data/app/views/mercury/modals/character.html +255 -0
- data/app/views/mercury/modals/htmleditor.html +13 -0
- data/app/views/mercury/modals/link.html +94 -0
- data/app/views/mercury/modals/media.html +1 -0
- data/app/views/mercury/modals/table.html +84 -0
- data/app/views/mercury/palettes/backcolor.html +73 -0
- data/app/views/mercury/palettes/forecolor.html +73 -0
- data/app/views/mercury/panels/history.html +3 -0
- data/app/views/mercury/panels/notes.html +3 -0
- data/app/views/mercury/panels/snippets.html +12 -0
- data/app/views/mercury/selects/formatblock.html +11 -0
- data/app/views/mercury/selects/style.html +5 -0
- data/app/views/mercury/snippets/example/options.html.erb +34 -0
- data/app/views/mercury/snippets/example/preview.html.erb +1 -0
- data/config/engine.rb +44 -0
- data/db/migrate/20110526035601_create_mercury_images.rb +11 -0
- data/features/loading/loading.feature +22 -0
- data/features/loading/navigating.feature +77 -0
- data/features/loading/user_interface.feature +67 -0
- data/features/regions/editable/advanced_editing.feature +0 -0
- data/features/regions/editable/basic_editing.feature +195 -0
- data/features/regions/editable/inserting_links.feature +98 -0
- data/features/regions/editable/inserting_media.feature +110 -0
- data/features/regions/editable/inserting_snippets.feature +102 -0
- data/features/regions/editable/inserting_special_characters.feature +24 -0
- data/features/regions/editable/inserting_tables.feature +109 -0
- data/features/regions/editable/pasting.feature +0 -0
- data/features/regions/editable/uploading_images.feature +0 -0
- data/features/regions/markupable/advanced_editing.feature +0 -0
- data/features/regions/markupable/basic_editing.feature +0 -0
- data/features/regions/markupable/inserting_links.feature +0 -0
- data/features/regions/markupable/inserting_media.feature +0 -0
- data/features/regions/markupable/inserting_snippets.feature +0 -0
- data/features/regions/markupable/inserting_special_characters.feature +0 -0
- data/features/regions/markupable/inserting_tables.feature +0 -0
- data/features/regions/markupable/uploading_images.feature +0 -0
- data/features/regions/snippetable/advanced_editing.feature +0 -0
- data/features/regions/snippetable/basic_editing.feature +0 -0
- data/features/regions/snippetable/inserting_snippets.feature +0 -0
- data/features/saving/saving.feature +33 -0
- data/features/step_definitions/debug_steps.rb +14 -0
- data/features/step_definitions/mercury_steps.rb +438 -0
- data/features/step_definitions/web_steps.rb +211 -0
- data/features/support/env.rb +46 -0
- data/features/support/mercury_contents.rb +25 -0
- data/features/support/mercury_selectors.rb +148 -0
- data/features/support/paths.rb +38 -0
- data/features/support/selectors.rb +44 -0
- data/lib/generators/mercury/install/install_generator.rb +49 -0
- data/lib/generators/mercury/install/templates/mongoid_paperclip_image.rb +17 -0
- data/lib/mercury/authentication.rb +8 -0
- data/lib/mercury-rails.rb +3 -0
- data/spec/javascripts/mercury/dialog_spec.js.coffee +281 -0
- data/spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee +37 -0
- data/spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee +37 -0
- data/spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee +25 -0
- data/spec/javascripts/mercury/dialogs/snippetpanel_spec.js.coffee +30 -0
- data/spec/javascripts/mercury/dialogs/style_spec.js.coffee +25 -0
- data/spec/javascripts/mercury/history_buffer_spec.js.coffee +76 -0
- data/spec/javascripts/mercury/lightview_spec.js.coffee +497 -0
- data/spec/javascripts/mercury/mercury_spec.js.coffee +132 -0
- data/spec/javascripts/mercury/modal_spec.js.coffee +504 -0
- data/spec/javascripts/mercury/modals/htmleditor_spec.js.coffee +30 -0
- data/spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee +29 -0
- data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +220 -0
- data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +167 -0
- data/spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee +52 -0
- data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +160 -0
- data/spec/javascripts/mercury/native_extensions_spec.js.coffee +60 -0
- data/spec/javascripts/mercury/page_editor_spec.js.coffee +750 -0
- data/spec/javascripts/mercury/palette_spec.js.coffee +49 -0
- data/spec/javascripts/mercury/panel_spec.js.coffee +185 -0
- data/spec/javascripts/mercury/region_spec.js.coffee +298 -0
- data/spec/javascripts/mercury/regions/editable_spec.js.coffee +561 -0
- data/spec/javascripts/mercury/regions/markupable_spec.js.coffee +367 -0
- data/spec/javascripts/mercury/regions/snippetable_spec.js.coffee +370 -0
- data/spec/javascripts/mercury/select_spec.js.coffee +49 -0
- data/spec/javascripts/mercury/snippet_spec.js.coffee +245 -0
- data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +184 -0
- data/spec/javascripts/mercury/statusbar_spec.js.coffee +150 -0
- data/spec/javascripts/mercury/table_editor_spec.js.coffee +194 -0
- data/spec/javascripts/mercury/toolbar.button_group_spec.js.coffee +90 -0
- data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +360 -0
- data/spec/javascripts/mercury/toolbar.expander_spec.js.coffee +118 -0
- data/spec/javascripts/mercury/toolbar_spec.js.coffee +222 -0
- data/spec/javascripts/mercury/tooltip_spec.js.coffee +186 -0
- data/spec/javascripts/mercury/uploader_spec.js.coffee +514 -0
- data/spec/javascripts/spec_helper.js +513 -0
- data/spec/javascripts/templates/mercury/dialog.html +2 -0
- data/spec/javascripts/templates/mercury/dialogs/backcolor.html +5 -0
- data/spec/javascripts/templates/mercury/dialogs/forecolor.html +5 -0
- data/spec/javascripts/templates/mercury/dialogs/formatblock.html +3 -0
- data/spec/javascripts/templates/mercury/dialogs/snippetpanel.html +16 -0
- data/spec/javascripts/templates/mercury/dialogs/style.html +3 -0
- data/spec/javascripts/templates/mercury/lightview.html +13 -0
- data/spec/javascripts/templates/mercury/modal.html +13 -0
- data/spec/javascripts/templates/mercury/modals/htmleditor.html +5 -0
- data/spec/javascripts/templates/mercury/modals/insertcharacter.html +5 -0
- data/spec/javascripts/templates/mercury/modals/insertlink.html +30 -0
- data/spec/javascripts/templates/mercury/modals/insertmedia.html +35 -0
- data/spec/javascripts/templates/mercury/modals/insertsnippet.html +6 -0
- data/spec/javascripts/templates/mercury/modals/inserttable.html +27 -0
- data/spec/javascripts/templates/mercury/page_editor.html +35 -0
- data/spec/javascripts/templates/mercury/palette.html +16 -0
- data/spec/javascripts/templates/mercury/panel.html +16 -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/templates/mercury/select.html +16 -0
- data/spec/javascripts/templates/mercury/snippet.html +1 -0
- data/spec/javascripts/templates/mercury/snippet_toolbar.html +16 -0
- data/spec/javascripts/templates/mercury/statusbar.html +8 -0
- data/spec/javascripts/templates/mercury/table_editor.html +65 -0
- data/spec/javascripts/templates/mercury/toolbar.button.html +64 -0
- data/spec/javascripts/templates/mercury/toolbar.button_group.html +9 -0
- data/spec/javascripts/templates/mercury/toolbar.expander.html +18 -0
- data/spec/javascripts/templates/mercury/toolbar.html +11 -0
- data/spec/javascripts/templates/mercury/tooltip.html +12 -0
- data/spec/javascripts/templates/mercury/uploader.html +11 -0
- data/vendor/assets/images/mercury/button.png +0 -0
- data/vendor/assets/images/mercury/close.png +0 -0
- data/vendor/assets/images/mercury/default-snippet.png +0 -0
- data/vendor/assets/images/mercury/loading-dark.gif +0 -0
- data/vendor/assets/images/mercury/loading-light.gif +0 -0
- data/vendor/assets/images/mercury/missing-image.png +0 -0
- data/vendor/assets/images/mercury/search-icon.png +0 -0
- data/vendor/assets/images/mercury/temp-logo.png +0 -0
- data/vendor/assets/images/mercury/toolbar/editable/buttons.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/_expander.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/preview.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/redo.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/save.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/snippetpanel.png +0 -0
- data/vendor/assets/images/mercury/toolbar/primary/undo.png +0 -0
- data/vendor/assets/images/mercury/toolbar/snippetable/buttons.png +0 -0
- data/vendor/assets/javascripts/mercury/dependencies/jquery-1.7.js +9300 -0
- data/vendor/assets/javascripts/mercury/dependencies/jquery-ui-1.8.13.custom.js +1328 -0
- data/vendor/assets/javascripts/mercury/dependencies/jquery-ui-1.8.18.custom.min.js +356 -0
- data/vendor/assets/javascripts/mercury/dependencies/jquery-ui.1.8.13.custom.min.js +356 -0
- data/vendor/assets/javascripts/mercury/dependencies/jquery.additions.js +206 -0
- data/vendor/assets/javascripts/mercury/dependencies/jquery.htmlClean.js +527 -0
- data/vendor/assets/javascripts/mercury/dependencies/liquidmetal.js +88 -0
- data/vendor/assets/javascripts/mercury/dependencies/showdown.js +1340 -0
- data/vendor/assets/javascripts/mercury/dialog.js.coffee +159 -0
- data/vendor/assets/javascripts/mercury/dialogs/backcolor.js.coffee +6 -0
- data/vendor/assets/javascripts/mercury/dialogs/forecolor.js.coffee +6 -0
- data/vendor/assets/javascripts/mercury/dialogs/formatblock.js.coffee +4 -0
- data/vendor/assets/javascripts/mercury/dialogs/snippetpanel.js.coffee +10 -0
- data/vendor/assets/javascripts/mercury/dialogs/style.js.coffee +4 -0
- data/vendor/assets/javascripts/mercury/finalize.js.coffee +3 -0
- data/vendor/assets/javascripts/mercury/history_buffer.js.coffee +30 -0
- data/vendor/assets/javascripts/mercury/lightview.js.coffee +205 -0
- data/vendor/assets/javascripts/mercury/locales/da.locale.js.coffee +0 -0
- data/vendor/assets/javascripts/mercury/locales/de.locale.js.coffee +206 -0
- data/vendor/assets/javascripts/mercury/locales/es.locale.js.coffee +211 -0
- data/vendor/assets/javascripts/mercury/locales/example.local.js.coffee +211 -0
- data/vendor/assets/javascripts/mercury/locales/fr.locale.js.coffee +211 -0
- data/vendor/assets/javascripts/mercury/locales/it.locale.js.coffee +208 -0
- data/vendor/assets/javascripts/mercury/locales/ko.local.js.coffee +206 -0
- data/vendor/assets/javascripts/mercury/locales/nl.locale.js.coffee +206 -0
- data/vendor/assets/javascripts/mercury/locales/pt.locale.js.coffee +211 -0
- data/vendor/assets/javascripts/mercury/locales/sv.local.js.coffee +209 -0
- data/vendor/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee +213 -0
- data/vendor/assets/javascripts/mercury/mercury.js.coffee +109 -0
- data/vendor/assets/javascripts/mercury/modal.js.coffee +204 -0
- data/vendor/assets/javascripts/mercury/modals/htmleditor.js.coffee +11 -0
- data/vendor/assets/javascripts/mercury/modals/insertcharacter.js.coffee +4 -0
- data/vendor/assets/javascripts/mercury/modals/insertlink.js.coffee +95 -0
- data/vendor/assets/javascripts/mercury/modals/insertmedia.js.coffee +107 -0
- data/vendor/assets/javascripts/mercury/modals/insertsnippet.js.coffee +12 -0
- data/vendor/assets/javascripts/mercury/modals/inserttable.js.coffee +54 -0
- data/vendor/assets/javascripts/mercury/native_extensions.js.coffee +55 -0
- data/vendor/assets/javascripts/mercury/page_editor.js.coffee +241 -0
- data/vendor/assets/javascripts/mercury/palette.js.coffee +29 -0
- data/vendor/assets/javascripts/mercury/panel.js.coffee +115 -0
- data/vendor/assets/javascripts/mercury/plugins/save_as_xml/mercury/page_editor.js.coffee +28 -0
- data/vendor/assets/javascripts/mercury/plugins/save_as_xml/plugin.js +9 -0
- data/vendor/assets/javascripts/mercury/region.js.coffee +107 -0
- data/vendor/assets/javascripts/mercury/regions/editable.js.coffee +600 -0
- data/vendor/assets/javascripts/mercury/regions/markupable.js.coffee +398 -0
- data/vendor/assets/javascripts/mercury/regions/simple.js.coffee +339 -0
- data/vendor/assets/javascripts/mercury/regions/snippetable.js.coffee +124 -0
- data/vendor/assets/javascripts/mercury/select.js.coffee +44 -0
- data/vendor/assets/javascripts/mercury/snippet.js.coffee +104 -0
- data/vendor/assets/javascripts/mercury/snippet_toolbar.js.coffee +72 -0
- data/vendor/assets/javascripts/mercury/statusbar.js.coffee +51 -0
- data/vendor/assets/javascripts/mercury/support/history.js +1 -0
- data/vendor/assets/javascripts/mercury/table_editor.js.coffee +265 -0
- data/vendor/assets/javascripts/mercury/toolbar.button.js.coffee +173 -0
- data/vendor/assets/javascripts/mercury/toolbar.button_group.js.coffee +42 -0
- data/vendor/assets/javascripts/mercury/toolbar.expander.js.coffee +56 -0
- data/vendor/assets/javascripts/mercury/toolbar.js.coffee +86 -0
- data/vendor/assets/javascripts/mercury/tooltip.js.coffee +74 -0
- data/vendor/assets/javascripts/mercury/uploader.js.coffee +227 -0
- data/vendor/assets/javascripts/mercury.js +479 -0
- data/vendor/assets/javascripts/mercury_loader.js +193 -0
- data/vendor/assets/javascripts/mercury_overrides.js +6 -0
- data/vendor/assets/javascripts/popup.js +8 -0
- data/vendor/assets/stylesheets/mercury/all_images.css.erb +89 -0
- data/vendor/assets/stylesheets/mercury/dialog.css +208 -0
- data/vendor/assets/stylesheets/mercury/lightview.css +151 -0
- data/vendor/assets/stylesheets/mercury/mercury.css +151 -0
- data/vendor/assets/stylesheets/mercury/modal.css +183 -0
- data/vendor/assets/stylesheets/mercury/statusbar.css +32 -0
- data/vendor/assets/stylesheets/mercury/toolbar.css +304 -0
- data/vendor/assets/stylesheets/mercury/tooltip.css +26 -0
- data/vendor/assets/stylesheets/mercury/uploader.css +111 -0
- data/vendor/assets/stylesheets/mercury.css +28 -0
- data/vendor/assets/stylesheets/mercury_overrides.css +17 -0
- data/vendor/assets/stylesheets/popup.css.erb +37 -0
- metadata +634 -0
data/LICENSE
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
Mercury Editor is a Coffeescript and jQuery based WYSIWYG editor.
|
2
|
+
|
3
|
+
Documentation and other useful information can be found at
|
4
|
+
https://github.com/jejacks0n/mercury
|
5
|
+
|
6
|
+
Copyright (c) 2011 Jeremy Jackson
|
7
|
+
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
9
|
+
a copy of this software and associated documentation files (the
|
10
|
+
"Software"), to deal in the Software without restriction, including
|
11
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
12
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
13
|
+
permit persons to whom the Software is furnished to do so, subject to
|
14
|
+
the following conditions:
|
15
|
+
|
16
|
+
The above copyright notice and this permission notice shall be
|
17
|
+
included in all copies or substantial portions of the Software.
|
18
|
+
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
20
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
22
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
23
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
24
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
25
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,34 @@
|
|
1
|
+
class MercuryController < ActionController::Base
|
2
|
+
include ::Mercury::Authentication
|
3
|
+
|
4
|
+
protect_from_forgery
|
5
|
+
before_filter :authenticate, :only => :edit
|
6
|
+
layout false
|
7
|
+
|
8
|
+
def edit
|
9
|
+
render :text => '', :layout => 'mercury'
|
10
|
+
end
|
11
|
+
|
12
|
+
def resource
|
13
|
+
render :action => "/#{params[:type]}/#{params[:resource]}"
|
14
|
+
end
|
15
|
+
|
16
|
+
def snippet_options
|
17
|
+
@options = params[:options] || {}
|
18
|
+
render :action => "/snippets/#{params[:name]}/options"
|
19
|
+
end
|
20
|
+
|
21
|
+
def snippet_preview
|
22
|
+
render :action => "/snippets/#{params[:name]}/preview"
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_page
|
26
|
+
render :text => params
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def authenticate
|
32
|
+
redirect_to "/#{params[:requested_uri]}" unless can_edit?
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class Mercury::Image < ActiveRecord::Base
|
2
|
+
|
3
|
+
|
4
|
+
#self.table_name = :mercury_images
|
5
|
+
|
6
|
+
#has_attached_file :image, :styles => { :medium => "300x300>", :large=>"600x600>", :thumb => "100x100>" }
|
7
|
+
|
8
|
+
#delegate :url, :to => :image
|
9
|
+
|
10
|
+
#def serializable_hash(options = nil)
|
11
|
+
# options ||= {}
|
12
|
+
# options[:methods] ||= []
|
13
|
+
# options[:methods] << :url
|
14
|
+
# super(options)
|
15
|
+
#end
|
16
|
+
|
17
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta name="viewport" content="width=device-width, maximum-scale=1.0, initial-scale=1.0">
|
5
|
+
<%= csrf_meta_tags %>
|
6
|
+
<title>Mercury Editor</title>
|
7
|
+
<%= stylesheet_link_tag 'mercury', 'mercury_overrides' %>
|
8
|
+
<%= javascript_include_tag 'mercury', 'mercury_overrides' %>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<script type="text/javascript">
|
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
|
+
};
|
18
|
+
|
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);
|
31
|
+
</script>
|
32
|
+
</body>
|
33
|
+
</html>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
= form_for :search do |f|
|
2
|
+
= f.text_field :search
|
3
|
+
= f.submit "Search"
|
4
|
+
or
|
5
|
+
= link_to "Reset", "/mercury/images"
|
6
|
+
|
7
|
+
= will_paginate @images
|
8
|
+
|
9
|
+
%table
|
10
|
+
%tr
|
11
|
+
%th Image
|
12
|
+
%th Filename
|
13
|
+
%th Tags (click to edit)
|
14
|
+
|
15
|
+
- @images.each do |image|
|
16
|
+
%tr
|
17
|
+
%td
|
18
|
+
= image_tag image.url(:thumb)
|
19
|
+
%td
|
20
|
+
= link_to_function image.image_file_name, "parent.set_image_url('#{image.url(:original)}');"
|
21
|
+
%td.tags
|
22
|
+
= best_in_place image, :tags, :type=>:input
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<div id="mercury_about">
|
2
|
+
<p>
|
3
|
+
Mercury Editor is an open source HTML5 WYSIWYG editor written in Coffeescript using jQuery. The project has been released under the MIT license.
|
4
|
+
<br/><br/>
|
5
|
+
Documentation and other useful information can be found on the project pages.
|
6
|
+
</p>
|
7
|
+
<ul>
|
8
|
+
<li><a href="http://jejacks0n.github.com/mercury" target="_blank">Project Home</a></li>
|
9
|
+
<li><a href="http://github.com/jejacks0n/mercury" target="_blank">Project Source</a></li>
|
10
|
+
</ul>
|
11
|
+
</div>
|
@@ -0,0 +1,255 @@
|
|
1
|
+
<form id="mercury_character" style="width:456px">
|
2
|
+
|
3
|
+
<div class="mercury-display-pane-container">
|
4
|
+
<div class="mercury-display-pane">
|
5
|
+
<div class="character" data-entity="#34" title="quotation mark (APL quote)">"</div>
|
6
|
+
<div class="character" data-entity="#38" title="ampersand">&</div>
|
7
|
+
<div class="character" data-entity="#60" title="less-than sign"><</div>
|
8
|
+
<div class="character" data-entity="#62" title="greater-than sign">></div>
|
9
|
+
<div class="character" data-entity="#710" title="modifier letter circumflex accent">ˆ</div>
|
10
|
+
<div class="character" data-entity="#732" title="small tilde">˜</div>
|
11
|
+
<div class="character" data-entity="#160" title="non-breaking space"> </div>
|
12
|
+
<div class="character" data-entity="#8194" title="en space"> </div>
|
13
|
+
<div class="character" data-entity="#8195" title="em space"> </div>
|
14
|
+
<div class="character" data-entity="#8201" title="thin space"> </div>
|
15
|
+
<div class="character" data-entity="#8211" title="en dash">–</div>
|
16
|
+
<div class="character" data-entity="#8212" title="em dash">—</div>
|
17
|
+
<div class="character" data-entity="#8216" title="left single quotation mark">‘</div>
|
18
|
+
<div class="character" data-entity="#8217" title="right single quotation mark">’</div>
|
19
|
+
<div class="character" data-entity="#8218" title="single low-9 quotation mark">‚</div>
|
20
|
+
<div class="character" data-entity="#8220" title="left double quotation mark">“</div>
|
21
|
+
<div class="character" data-entity="#8221" title="right double quotation mark">”</div>
|
22
|
+
<div class="character" data-entity="#8222" title="double low-9 quotation mark">„</div>
|
23
|
+
<div class="character" data-entity="#8224" title="dagger">†</div>
|
24
|
+
<div class="character" data-entity="#8225" title="double dagger">‡</div>
|
25
|
+
<div class="character" data-entity="#8240" title="per mille sign">‰</div>
|
26
|
+
<div class="character" data-entity="#8249" title="single left-pointing angle quotation mark">‹</div>
|
27
|
+
<div class="character" data-entity="#8250" title="single right-pointing angle quotation mark">›</div>
|
28
|
+
<div class="character" data-entity="#161" title="inverted exclamation mark">¡</div>
|
29
|
+
<div class="character" data-entity="#162" title="cent sign">¢</div>
|
30
|
+
<div class="character" data-entity="#163" title="pound sign">£</div>
|
31
|
+
<div class="character" data-entity="#164" title="currency sign">¤</div>
|
32
|
+
<div class="character" data-entity="#165" title="yen sign">¥</div>
|
33
|
+
<div class="character" data-entity="#166" title="broken bar">¦</div>
|
34
|
+
<div class="character" data-entity="#167" title="section sign">§</div>
|
35
|
+
<div class="character" data-entity="#168" title="spacing diaeresis">¨</div>
|
36
|
+
<div class="character" data-entity="#169" title="copyright sign">©</div>
|
37
|
+
<div class="character" data-entity="#170" title="feminine ordinal indicator">ª</div>
|
38
|
+
<div class="character" data-entity="#186" title="masculine ordinal indicator">º</div>
|
39
|
+
<div class="character" data-entity="#171" title="left pointing guillemet">«</div>
|
40
|
+
<div class="character" data-entity="#172" title="not sign">¬</div>
|
41
|
+
<div class="character" data-entity="#174" title="registered trade mark sign">®</div>
|
42
|
+
<div class="character" data-entity="#175" title="spacing macron">¯</div>
|
43
|
+
<div class="character" data-entity="#176" title="degree sign">°</div>
|
44
|
+
<div class="character" data-entity="#177" title="plus-or-minus sign">±</div>
|
45
|
+
<div class="character" data-entity="#185" title="superscript one">¹</div>
|
46
|
+
<div class="character" data-entity="#178" title="superscript digit two">²</div>
|
47
|
+
<div class="character" data-entity="#179" title="superscript digit three">³</div>
|
48
|
+
<div class="character" data-entity="#180" title="acute accent">´</div>
|
49
|
+
<div class="character" data-entity="#181" title="micro sign">µ</div>
|
50
|
+
<div class="character" data-entity="#182" title="pilcrow sign">¶</div>
|
51
|
+
<div class="character" data-entity="#183" title="middle dot">·</div>
|
52
|
+
<div class="character" data-entity="#184" title="cedilla">¸</div>
|
53
|
+
<div class="character" data-entity="#187" title="right-pointing double angle quotation mark">»</div>
|
54
|
+
<div class="character" data-entity="#188" title="fraction one quarter">¼</div>
|
55
|
+
<div class="character" data-entity="#189" title="fraction one half">½</div>
|
56
|
+
<div class="character" data-entity="#190" title="fraction three quarters">¾</div>
|
57
|
+
<div class="character" data-entity="#191" title="inverted question mark">¿</div>
|
58
|
+
<div class="character" data-entity="#215" title="multiplication sign">×</div>
|
59
|
+
<div class="character" data-entity="#247" title="division sign">÷</div>
|
60
|
+
<div class="character" data-entity="#192" title="latin capital letter A with grave">À</div>
|
61
|
+
<div class="character" data-entity="#224" title="latin small letter a with grave">à</div>
|
62
|
+
<div class="character" data-entity="#193" title="latin capital letter A with acute">Á</div>
|
63
|
+
<div class="character" data-entity="#225" title="latin small letter a with acute">á</div>
|
64
|
+
<div class="character" data-entity="#194" title="latin capital letter A with circumflex">Â</div>
|
65
|
+
<div class="character" data-entity="#226" title="latin small letter a with circumflex">â</div>
|
66
|
+
<div class="character" data-entity="#195" title="latin capital letter A with tilde">Ã</div>
|
67
|
+
<div class="character" data-entity="#227" title="latin small letter a with tilde">ã</div>
|
68
|
+
<div class="character" data-entity="#196" title="latin capital letter A with diaeresis">Ä</div>
|
69
|
+
<div class="character" data-entity="#228" title="latin small letter a with diaeresis">ä</div>
|
70
|
+
<div class="character" data-entity="#197" title="latin capital letter A with ring above">Å</div>
|
71
|
+
<div class="character" data-entity="#229" title="latin small letter a with ring above">å</div>
|
72
|
+
<div class="character" data-entity="#200" title="latin capital letter E with grave">È</div>
|
73
|
+
<div class="character" data-entity="#232" title="latin small letter e with grave">è</div>
|
74
|
+
<div class="character" data-entity="#201" title="latin capital letter E with acute">É</div>
|
75
|
+
<div class="character" data-entity="#233" title="latin small letter e with acute">é</div>
|
76
|
+
<div class="character" data-entity="#202" title="latin capital letter E with circumflex">Ê</div>
|
77
|
+
<div class="character" data-entity="#234" title="latin small letter e with circumflex">ê</div>
|
78
|
+
<div class="character" data-entity="#203" title="latin capital letter E with diaeresis">Ë</div>
|
79
|
+
<div class="character" data-entity="#235" title="latin small letter e with diaeresis">ë</div>
|
80
|
+
<div class="character" data-entity="#204" title="latin capital letter I with grave">Ì</div>
|
81
|
+
<div class="character" data-entity="#236" title="latin small letter i with grave">ì</div>
|
82
|
+
<div class="character" data-entity="#205" title="latin capital letter I with acute">Í</div>
|
83
|
+
<div class="character" data-entity="#237" title="latin small letter i with acute">í</div>
|
84
|
+
<div class="character" data-entity="#206" title="latin capital letter I with circumflex">Î</div>
|
85
|
+
<div class="character" data-entity="#238" title="latin small letter i with circumflex">î</div>
|
86
|
+
<div class="character" data-entity="#207" title="latin capital letter I with diaeresis">Ï</div>
|
87
|
+
<div class="character" data-entity="#239" title="latin small letter i with diaeresis">ï</div>
|
88
|
+
<div class="character" data-entity="#210" title="latin capital letter O with grave">Ò</div>
|
89
|
+
<div class="character" data-entity="#242" title="latin small letter o with grave">ò</div>
|
90
|
+
<div class="character" data-entity="#211" title="latin capital letter O with acute">Ó</div>
|
91
|
+
<div class="character" data-entity="#243" title="latin small letter o with acute">ó</div>
|
92
|
+
<div class="character" data-entity="#212" title="latin capital letter O with circumflex">Ô</div>
|
93
|
+
<div class="character" data-entity="#244" title="latin small letter o with circumflex">ô</div>
|
94
|
+
<div class="character" data-entity="#213" title="latin capital letter O with tilde">Õ</div>
|
95
|
+
<div class="character" data-entity="#245" title="latin small letter o with tilde">õ</div>
|
96
|
+
<div class="character" data-entity="#214" title="latin capital letter O with diaeresis">Ö</div>
|
97
|
+
<div class="character" data-entity="#246" title="latin small letter o with diaeresis">ö</div>
|
98
|
+
<div class="character" data-entity="#216" title="latin capital letter O with stroke">Ø</div>
|
99
|
+
<div class="character" data-entity="#248" title="latin small letter o with stroke">ø</div>
|
100
|
+
<div class="character" data-entity="#217" title="latin capital letter U with grave">Ù</div>
|
101
|
+
<div class="character" data-entity="#249" title="latin small letter u with grave">ù</div>
|
102
|
+
<div class="character" data-entity="#218" title="latin capital letter U with acute">Ú</div>
|
103
|
+
<div class="character" data-entity="#250" title="latin small letter u with acute">ú</div>
|
104
|
+
<div class="character" data-entity="#219" title="latin capital letter U with circumflex">Û</div>
|
105
|
+
<div class="character" data-entity="#251" title="latin small letter u with circumflex">û</div>
|
106
|
+
<div class="character" data-entity="#220" title="latin capital letter U with diaeresis">Ü</div>
|
107
|
+
<div class="character" data-entity="#252" title="latin small letter u with diaeresis">ü</div>
|
108
|
+
<div class="character" data-entity="#221" title="latin capital letter Y with acute">Ý</div>
|
109
|
+
<div class="character" data-entity="#253" title="latin small letter y with acute">ý</div>
|
110
|
+
<div class="character" data-entity="#376" title="latin capital letter Y with diaeresis">Ÿ</div>
|
111
|
+
<div class="character" data-entity="#255" title="latin small letter y with diaeresis">ÿ</div>
|
112
|
+
<div class="character" data-entity="#198" title="latin capital ligature AE">Æ</div>
|
113
|
+
<div class="character" data-entity="#230" title="latin small ligature ae">æ</div>
|
114
|
+
<div class="character" data-entity="#338" title="latin capital ligature OE">Œ</div>
|
115
|
+
<div class="character" data-entity="#339" title="latin small ligature oe">œ</div>
|
116
|
+
<div class="character" data-entity="#352" title="latin capital letter S with caron">Š</div>
|
117
|
+
<div class="character" data-entity="#353" title="latin small letter s with caron">š</div>
|
118
|
+
<div class="character" data-entity="#199" title="latin capital letter C with cedilla">Ç</div>
|
119
|
+
<div class="character" data-entity="#231" title="latin small letter c with cedilla">ç</div>
|
120
|
+
<div class="character" data-entity="#208" title="latin capital letter ETH">Ð</div>
|
121
|
+
<div class="character" data-entity="#240" title="latin small letter eth">ð</div>
|
122
|
+
<div class="character" data-entity="#209" title="latin capital letter N with tilde">Ñ</div>
|
123
|
+
<div class="character" data-entity="#241" title="latin small letter n with tilde">ñ</div>
|
124
|
+
<div class="character" data-entity="#222" title="latin capital letter THORN">Þ</div>
|
125
|
+
<div class="character" data-entity="#254" title="latin small letter thorn">þ</div>
|
126
|
+
<div class="character" data-entity="#223" title="latin small letter sharp s (ess-zed)">ß</div>
|
127
|
+
<div class="character" data-entity="#402" title="latin small f with hook (function)">ƒ</div>
|
128
|
+
<div class="character" data-entity="#913" title="greek capital letter alpha">Α</div>
|
129
|
+
<div class="character" data-entity="#914" title="greek capital letter beta">Β</div>
|
130
|
+
<div class="character" data-entity="#915" title="greek capital letter gamma">Γ</div>
|
131
|
+
<div class="character" data-entity="#916" title="greek capital letter delta">Δ</div>
|
132
|
+
<div class="character" data-entity="#917" title="greek capital letter epsilon">Ε</div>
|
133
|
+
<div class="character" data-entity="#918" title="greek capital letter zeta">Ζ</div>
|
134
|
+
<div class="character" data-entity="#919" title="greek capital letter eta">Η</div>
|
135
|
+
<div class="character" data-entity="#920" title="greek capital letter theta">Θ</div>
|
136
|
+
<div class="character" data-entity="#921" title="greek capital letter iota">Ι</div>
|
137
|
+
<div class="character" data-entity="#922" title="greek capital letter kappa">Κ</div>
|
138
|
+
<div class="character" data-entity="#923" title="greek capital letter lambda">Λ</div>
|
139
|
+
<div class="character" data-entity="#924" title="greek capital letter mu">Μ</div>
|
140
|
+
<div class="character" data-entity="#925" title="greek capital letter nu">Ν</div>
|
141
|
+
<div class="character" data-entity="#926" title="greek capital letter xi">Ξ</div>
|
142
|
+
<div class="character" data-entity="#927" title="greek capital letter omicron">Ο</div>
|
143
|
+
<div class="character" data-entity="#928" title="greek capital letter pi">Π</div>
|
144
|
+
<div class="character" data-entity="#929" title="greek capital letter rho">Ρ</div>
|
145
|
+
<div class="character" data-entity="#931" title="greek capital letter sigma">Σ</div>
|
146
|
+
<div class="character" data-entity="#932" title="greek capital letter tau">Τ</div>
|
147
|
+
<div class="character" data-entity="#933" title="greek capital letter upsilon">Υ</div>
|
148
|
+
<div class="character" data-entity="#934" title="greek capital letter phi">Φ</div>
|
149
|
+
<div class="character" data-entity="#935" title="greek capital letter chi">Χ</div>
|
150
|
+
<div class="character" data-entity="#936" title="greek capital letter psi">Ψ</div>
|
151
|
+
<div class="character" data-entity="#937" title="greek capital letter omega">Ω</div>
|
152
|
+
<div class="character" data-entity="#945" title="greek small letter alpha">α</div>
|
153
|
+
<div class="character" data-entity="#946" title="greek small letter beta">β</div>
|
154
|
+
<div class="character" data-entity="#947" title="greek small letter gamma">γ</div>
|
155
|
+
<div class="character" data-entity="#948" title="greek small letter delta">δ</div>
|
156
|
+
<div class="character" data-entity="#949" title="greek small letter epsilon">ε</div>
|
157
|
+
<div class="character" data-entity="#950" title="greek small letter zeta">ζ</div>
|
158
|
+
<div class="character" data-entity="#951" title="greek small letter eta">η</div>
|
159
|
+
<div class="character" data-entity="#952" title="greek small letter theta">θ</div>
|
160
|
+
<div class="character" data-entity="#953" title="greek small letter iota">ι</div>
|
161
|
+
<div class="character" data-entity="#954" title="greek small letter kappa">κ</div>
|
162
|
+
<div class="character" data-entity="#955" title="greek small letter lambda">λ</div>
|
163
|
+
<div class="character" data-entity="#956" title="greek small letter mu">μ</div>
|
164
|
+
<div class="character" data-entity="#957" title="greek small letter nu">ν</div>
|
165
|
+
<div class="character" data-entity="#958" title="greek small letter xi">ξ</div>
|
166
|
+
<div class="character" data-entity="#959" title="greek small letter omicron">ο</div>
|
167
|
+
<div class="character" data-entity="#960" title="greek small letter pi">π</div>
|
168
|
+
<div class="character" data-entity="#961" title="greek small letter rho">ρ</div>
|
169
|
+
<div class="character" data-entity="#962" title="greek small letter final sigma">ς</div>
|
170
|
+
<div class="character" data-entity="#963" title="greek small letter sigma">σ</div>
|
171
|
+
<div class="character" data-entity="#964" title="greek small letter tau">τ</div>
|
172
|
+
<div class="character" data-entity="#965" title="greek small letter upsilon">υ</div>
|
173
|
+
<div class="character" data-entity="#966" title="greek small letter phi">φ</div>
|
174
|
+
<div class="character" data-entity="#967" title="greek small letter chi">χ</div>
|
175
|
+
<div class="character" data-entity="#968" title="greek small letter psi">ψ</div>
|
176
|
+
<div class="character" data-entity="#969" title="greek small letter omega">ω</div>
|
177
|
+
<div class="character" data-entity="#977" title="greek small letter theta symbol">ϑ</div>
|
178
|
+
<div class="character" data-entity="#978" title="greek upsilon with hook symbol">ϒ</div>
|
179
|
+
<div class="character" data-entity="#982" title="greek pi symbol">ϖ</div>
|
180
|
+
<div class="character" data-entity="#8226" title="bullet (black small circle)">•</div>
|
181
|
+
<div class="character" data-entity="#8230" title="horizontal ellipsis">…</div>
|
182
|
+
<div class="character" data-entity="#8242" title="prime (minutes/feet)">′</div>
|
183
|
+
<div class="character" data-entity="#8243" title="double prime (seconds/inches)">″</div>
|
184
|
+
<div class="character" data-entity="#8254" title="overline">‾</div>
|
185
|
+
<div class="character" data-entity="#8260" title="fraction slash">⁄</div>
|
186
|
+
<div class="character" data-entity="#8472" title="Weierstrass p">℘</div>
|
187
|
+
<div class="character" data-entity="#8465" title="imaginary part">ℑ</div>
|
188
|
+
<div class="character" data-entity="#8476" title="real part symbol">ℜ</div>
|
189
|
+
<div class="character" data-entity="#8482" title="trade mark sign">™</div>
|
190
|
+
<div class="character" data-entity="#8501" title="first transfinite cardinal">ℵ</div>
|
191
|
+
<div class="character" data-entity="#8592" title="leftwards arrow">←</div>
|
192
|
+
<div class="character" data-entity="#8593" title="upwards arrow">↑</div>
|
193
|
+
<div class="character" data-entity="#8594" title="rightwards arrow">→</div>
|
194
|
+
<div class="character" data-entity="#8595" title="downwards arrow">↓</div>
|
195
|
+
<div class="character" data-entity="#8596" title="left right arrow">↔</div>
|
196
|
+
<div class="character" data-entity="#8629" title="downwards arrow with corner leftwards">↵</div>
|
197
|
+
<div class="character" data-entity="#8656" title="leftwards double arrow">⇐</div>
|
198
|
+
<div class="character" data-entity="#8657" title="upwards double arrow">⇑</div>
|
199
|
+
<div class="character" data-entity="#8658" title="rightwards double arrow">⇒</div>
|
200
|
+
<div class="character" data-entity="#8659" title="downwards double arrow">⇓</div>
|
201
|
+
<div class="character" data-entity="#8660" title="left right double arrow">⇔</div>
|
202
|
+
<div class="character" data-entity="#8704" title="for all">∀</div>
|
203
|
+
<div class="character" data-entity="#8706" title="partial differential">∂</div>
|
204
|
+
<div class="character" data-entity="#8707" title="there exists">∃</div>
|
205
|
+
<div class="character" data-entity="#8709" title="empty set (null set/diameter)">∅</div>
|
206
|
+
<div class="character" data-entity="#8711" title="nabla (backward difference)">∇</div>
|
207
|
+
<div class="character" data-entity="#8712" title="element of">∈</div>
|
208
|
+
<div class="character" data-entity="#8713" title="not an element of">∉</div>
|
209
|
+
<div class="character" data-entity="#8715" title="contains as member">∋</div>
|
210
|
+
<div class="character" data-entity="#8719" title="n-ary product (product sign)">∏</div>
|
211
|
+
<div class="character" data-entity="#8721" title="n-ary sumation">∑</div>
|
212
|
+
<div class="character" data-entity="#8722" title="minus sign">−</div>
|
213
|
+
<div class="character" data-entity="#8727" title="asterisk operator">∗</div>
|
214
|
+
<div class="character" data-entity="#8730" title="square root (radical sign)">√</div>
|
215
|
+
<div class="character" data-entity="#8733" title="proportional to">∝</div>
|
216
|
+
<div class="character" data-entity="#8734" title="infinity">∞</div>
|
217
|
+
<div class="character" data-entity="#8736" title="angle">∠</div>
|
218
|
+
<div class="character" data-entity="#8743" title="logical and (wedge)">∧</div>
|
219
|
+
<div class="character" data-entity="#8744" title="logical or (vee)">∨</div>
|
220
|
+
<div class="character" data-entity="#8745" title="intersection (cap)">∩</div>
|
221
|
+
<div class="character" data-entity="#8746" title="union (cup)">∪</div>
|
222
|
+
<div class="character" data-entity="#8747" title="integral">∫</div>
|
223
|
+
<div class="character" data-entity="#8756" title="therefore">∴</div>
|
224
|
+
<div class="character" data-entity="#8764" title="tilde operator (varies with/similar to)">∼</div>
|
225
|
+
<div class="character" data-entity="#8773" title="approximately equal to">≅</div>
|
226
|
+
<div class="character" data-entity="#8776" title="almost equal to (asymptotic to)">≈</div>
|
227
|
+
<div class="character" data-entity="#8800" title="not equal to">≠</div>
|
228
|
+
<div class="character" data-entity="#8801" title="identical to">≡</div>
|
229
|
+
<div class="character" data-entity="#8804" title="less-than or equal to">≤</div>
|
230
|
+
<div class="character" data-entity="#8805" title="greater-than or equal to">≥</div>
|
231
|
+
<div class="character" data-entity="#8834" title="subset of">⊂</div>
|
232
|
+
<div class="character" data-entity="#8835" title="superset of">⊃</div>
|
233
|
+
<div class="character" data-entity="#8836" title="not a subset of">⊄</div>
|
234
|
+
<div class="character" data-entity="#8838" title="subset of or equal to">⊆</div>
|
235
|
+
<div class="character" data-entity="#8839" title="superset of or equal to">⊇</div>
|
236
|
+
<div class="character" data-entity="#8853" title="circled plus (direct sum)">⊕</div>
|
237
|
+
<div class="character" data-entity="#8855" title="circled times (vector product)">⊗</div>
|
238
|
+
<div class="character" data-entity="#8869" title="up tack (orthogonal to/perpendicular)">⊥</div>
|
239
|
+
<div class="character" data-entity="#8901" title="dot operator">⋅</div>
|
240
|
+
<div class="character" data-entity="#8968" title="left ceiling (apl upstile)">⌈</div>
|
241
|
+
<div class="character" data-entity="#8969" title="right ceiling">⌉</div>
|
242
|
+
<div class="character" data-entity="#8970" title="left floor (apl downstile)">⌊</div>
|
243
|
+
<div class="character" data-entity="#8971" title="right floor">⌋</div>
|
244
|
+
<div class="character" data-entity="#9001" title="left-pointing angle bracket (bra)">〈</div>
|
245
|
+
<div class="character" data-entity="#9002" title="right-pointing angle bracket (ket)">〉</div>
|
246
|
+
<div class="character" data-entity="#9674" title="lozenge">◊</div>
|
247
|
+
<div class="character" data-entity="#9824" title="black spade suit">♠</div>
|
248
|
+
<div class="character" data-entity="#9827" title="black club suit (shamrock)">♣</div>
|
249
|
+
<div class="character" data-entity="#9829" title="black heart suit (valentine)">♥</div>
|
250
|
+
<div class="character" data-entity="#9830" title="black diamond suit">♦</div>
|
251
|
+
<div class="character" data-entity="#x2603" title="snowman">☃</div>
|
252
|
+
</div>
|
253
|
+
</div>
|
254
|
+
|
255
|
+
</form>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<form id="mercury_html_editor" style="width:650px">
|
2
|
+
|
3
|
+
<textarea class="mercury-display-pane-container" rows="5" style="width:100%"></textarea>
|
4
|
+
|
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>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
</form>
|
@@ -0,0 +1,94 @@
|
|
1
|
+
<form id="mercury_link" style="height: 875px; width: 800px;">
|
2
|
+
|
3
|
+
<div class="mercury-display-pane-container">
|
4
|
+
<div class="mercury-display-pane">
|
5
|
+
|
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>
|
14
|
+
|
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>
|
24
|
+
|
25
|
+
<fieldset class="inputs">
|
26
|
+
<legend><span>Internal Link</span></legend>
|
27
|
+
<ol>
|
28
|
+
<li id='open_browser_links'><a href="#" class='mercury-button' id='page_browser_link' onClick="show_page_browser('link_external_url');">Page Browser</a>
|
29
|
+
<a href="#" class='mercury-button' class='mercury-button' id='file_browser_link' onClick="show_file_browser('link_external_url');">File Browser</a>
|
30
|
+
|
31
|
+
</li>
|
32
|
+
<li style="display: none;" id='close_browser_links'><a class='mercury-button' href="#" id='close_browser_link' onClick='close_link_browsers();'>Close</a>
|
33
|
+
</li>
|
34
|
+
<li id="link_browser" style="display: none;">
|
35
|
+
Loading please wait...
|
36
|
+
</li>
|
37
|
+
<li id="file_browser" style="display: none;">
|
38
|
+
Loading please wait...
|
39
|
+
</li>
|
40
|
+
</ol>
|
41
|
+
</fieldset>
|
42
|
+
|
43
|
+
</fieldset>
|
44
|
+
<fieldset style="display: none;" class="inputs">
|
45
|
+
<legend><span>Index / Bookmark Links</span></legend>
|
46
|
+
<ol>
|
47
|
+
<li id="link_existing_bookmark_input" class="select input optional">
|
48
|
+
<label class="label" for="link_existing_bookmark"><input name="link_type" type="radio" value="existing_bookmark"/>Existing Links</label>
|
49
|
+
<select class="selectable" id="link_existing_bookmark" name="link[existing_bookmark]"></select>
|
50
|
+
</li>
|
51
|
+
<li id="link_new_bookmark_input" class="string input optional stringish">
|
52
|
+
<label class="label" for="link_new_bookmark"><input name="link_type" type="radio" value="new_bookmark"/>Bookmark</label>
|
53
|
+
<input class="selectable" id="link_new_bookmark" name="link[new_bookmark]" type="text"/>
|
54
|
+
</li>
|
55
|
+
</ol>
|
56
|
+
</fieldset>
|
57
|
+
|
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>
|
82
|
+
|
83
|
+
</div>
|
84
|
+
</div>
|
85
|
+
|
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>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
</form>
|
@@ -0,0 +1 @@
|
|
1
|
+
Not used (rendered by Kit)
|