kiteditor 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (229) hide show
  1. data/LICENSE +25 -0
  2. data/app/controllers/mercury/images_controller.rb +5 -0
  3. data/app/controllers/mercury_controller.rb +34 -0
  4. data/app/models/mercury/image.rb +17 -0
  5. data/app/views/layouts/mercury.html.erb +33 -0
  6. data/app/views/layouts/popup.html.haml +9 -0
  7. data/app/views/mercury/images/_list.html.haml +22 -0
  8. data/app/views/mercury/images/index.html.haml +4 -0
  9. data/app/views/mercury/images/index.js.erb +2 -0
  10. data/app/views/mercury/lightviews/about.html +11 -0
  11. data/app/views/mercury/modals/character.html +255 -0
  12. data/app/views/mercury/modals/htmleditor.html +13 -0
  13. data/app/views/mercury/modals/link.html +94 -0
  14. data/app/views/mercury/modals/media.html +1 -0
  15. data/app/views/mercury/modals/table.html +84 -0
  16. data/app/views/mercury/palettes/backcolor.html +73 -0
  17. data/app/views/mercury/palettes/forecolor.html +73 -0
  18. data/app/views/mercury/panels/history.html +3 -0
  19. data/app/views/mercury/panels/notes.html +3 -0
  20. data/app/views/mercury/panels/snippets.html +12 -0
  21. data/app/views/mercury/selects/formatblock.html +11 -0
  22. data/app/views/mercury/selects/style.html +5 -0
  23. data/app/views/mercury/snippets/example/options.html.erb +34 -0
  24. data/app/views/mercury/snippets/example/preview.html.erb +1 -0
  25. data/config/engine.rb +44 -0
  26. data/db/migrate/20110526035601_create_mercury_images.rb +11 -0
  27. data/features/loading/loading.feature +22 -0
  28. data/features/loading/navigating.feature +77 -0
  29. data/features/loading/user_interface.feature +67 -0
  30. data/features/regions/editable/advanced_editing.feature +0 -0
  31. data/features/regions/editable/basic_editing.feature +195 -0
  32. data/features/regions/editable/inserting_links.feature +98 -0
  33. data/features/regions/editable/inserting_media.feature +110 -0
  34. data/features/regions/editable/inserting_snippets.feature +102 -0
  35. data/features/regions/editable/inserting_special_characters.feature +24 -0
  36. data/features/regions/editable/inserting_tables.feature +109 -0
  37. data/features/regions/editable/pasting.feature +0 -0
  38. data/features/regions/editable/uploading_images.feature +0 -0
  39. data/features/regions/markupable/advanced_editing.feature +0 -0
  40. data/features/regions/markupable/basic_editing.feature +0 -0
  41. data/features/regions/markupable/inserting_links.feature +0 -0
  42. data/features/regions/markupable/inserting_media.feature +0 -0
  43. data/features/regions/markupable/inserting_snippets.feature +0 -0
  44. data/features/regions/markupable/inserting_special_characters.feature +0 -0
  45. data/features/regions/markupable/inserting_tables.feature +0 -0
  46. data/features/regions/markupable/uploading_images.feature +0 -0
  47. data/features/regions/snippetable/advanced_editing.feature +0 -0
  48. data/features/regions/snippetable/basic_editing.feature +0 -0
  49. data/features/regions/snippetable/inserting_snippets.feature +0 -0
  50. data/features/saving/saving.feature +33 -0
  51. data/features/step_definitions/debug_steps.rb +14 -0
  52. data/features/step_definitions/mercury_steps.rb +438 -0
  53. data/features/step_definitions/web_steps.rb +211 -0
  54. data/features/support/env.rb +46 -0
  55. data/features/support/mercury_contents.rb +25 -0
  56. data/features/support/mercury_selectors.rb +148 -0
  57. data/features/support/paths.rb +38 -0
  58. data/features/support/selectors.rb +44 -0
  59. data/lib/generators/mercury/install/install_generator.rb +49 -0
  60. data/lib/generators/mercury/install/templates/mongoid_paperclip_image.rb +17 -0
  61. data/lib/mercury/authentication.rb +8 -0
  62. data/lib/mercury-rails.rb +3 -0
  63. data/spec/javascripts/mercury/dialog_spec.js.coffee +281 -0
  64. data/spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee +37 -0
  65. data/spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee +37 -0
  66. data/spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee +25 -0
  67. data/spec/javascripts/mercury/dialogs/snippetpanel_spec.js.coffee +30 -0
  68. data/spec/javascripts/mercury/dialogs/style_spec.js.coffee +25 -0
  69. data/spec/javascripts/mercury/history_buffer_spec.js.coffee +76 -0
  70. data/spec/javascripts/mercury/lightview_spec.js.coffee +497 -0
  71. data/spec/javascripts/mercury/mercury_spec.js.coffee +132 -0
  72. data/spec/javascripts/mercury/modal_spec.js.coffee +504 -0
  73. data/spec/javascripts/mercury/modals/htmleditor_spec.js.coffee +30 -0
  74. data/spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee +29 -0
  75. data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +220 -0
  76. data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +167 -0
  77. data/spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee +52 -0
  78. data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +160 -0
  79. data/spec/javascripts/mercury/native_extensions_spec.js.coffee +60 -0
  80. data/spec/javascripts/mercury/page_editor_spec.js.coffee +750 -0
  81. data/spec/javascripts/mercury/palette_spec.js.coffee +49 -0
  82. data/spec/javascripts/mercury/panel_spec.js.coffee +185 -0
  83. data/spec/javascripts/mercury/region_spec.js.coffee +298 -0
  84. data/spec/javascripts/mercury/regions/editable_spec.js.coffee +561 -0
  85. data/spec/javascripts/mercury/regions/markupable_spec.js.coffee +367 -0
  86. data/spec/javascripts/mercury/regions/snippetable_spec.js.coffee +370 -0
  87. data/spec/javascripts/mercury/select_spec.js.coffee +49 -0
  88. data/spec/javascripts/mercury/snippet_spec.js.coffee +245 -0
  89. data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +184 -0
  90. data/spec/javascripts/mercury/statusbar_spec.js.coffee +150 -0
  91. data/spec/javascripts/mercury/table_editor_spec.js.coffee +194 -0
  92. data/spec/javascripts/mercury/toolbar.button_group_spec.js.coffee +90 -0
  93. data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +360 -0
  94. data/spec/javascripts/mercury/toolbar.expander_spec.js.coffee +118 -0
  95. data/spec/javascripts/mercury/toolbar_spec.js.coffee +222 -0
  96. data/spec/javascripts/mercury/tooltip_spec.js.coffee +186 -0
  97. data/spec/javascripts/mercury/uploader_spec.js.coffee +514 -0
  98. data/spec/javascripts/spec_helper.js +513 -0
  99. data/spec/javascripts/templates/mercury/dialog.html +2 -0
  100. data/spec/javascripts/templates/mercury/dialogs/backcolor.html +5 -0
  101. data/spec/javascripts/templates/mercury/dialogs/forecolor.html +5 -0
  102. data/spec/javascripts/templates/mercury/dialogs/formatblock.html +3 -0
  103. data/spec/javascripts/templates/mercury/dialogs/snippetpanel.html +16 -0
  104. data/spec/javascripts/templates/mercury/dialogs/style.html +3 -0
  105. data/spec/javascripts/templates/mercury/lightview.html +13 -0
  106. data/spec/javascripts/templates/mercury/modal.html +13 -0
  107. data/spec/javascripts/templates/mercury/modals/htmleditor.html +5 -0
  108. data/spec/javascripts/templates/mercury/modals/insertcharacter.html +5 -0
  109. data/spec/javascripts/templates/mercury/modals/insertlink.html +30 -0
  110. data/spec/javascripts/templates/mercury/modals/insertmedia.html +35 -0
  111. data/spec/javascripts/templates/mercury/modals/insertsnippet.html +6 -0
  112. data/spec/javascripts/templates/mercury/modals/inserttable.html +27 -0
  113. data/spec/javascripts/templates/mercury/page_editor.html +35 -0
  114. data/spec/javascripts/templates/mercury/palette.html +16 -0
  115. data/spec/javascripts/templates/mercury/panel.html +16 -0
  116. data/spec/javascripts/templates/mercury/region.html +2 -0
  117. data/spec/javascripts/templates/mercury/regions/editable.html +3 -0
  118. data/spec/javascripts/templates/mercury/regions/snippetable.html +4 -0
  119. data/spec/javascripts/templates/mercury/select.html +16 -0
  120. data/spec/javascripts/templates/mercury/snippet.html +1 -0
  121. data/spec/javascripts/templates/mercury/snippet_toolbar.html +16 -0
  122. data/spec/javascripts/templates/mercury/statusbar.html +8 -0
  123. data/spec/javascripts/templates/mercury/table_editor.html +65 -0
  124. data/spec/javascripts/templates/mercury/toolbar.button.html +64 -0
  125. data/spec/javascripts/templates/mercury/toolbar.button_group.html +9 -0
  126. data/spec/javascripts/templates/mercury/toolbar.expander.html +18 -0
  127. data/spec/javascripts/templates/mercury/toolbar.html +11 -0
  128. data/spec/javascripts/templates/mercury/tooltip.html +12 -0
  129. data/spec/javascripts/templates/mercury/uploader.html +11 -0
  130. data/vendor/assets/images/mercury/button.png +0 -0
  131. data/vendor/assets/images/mercury/close.png +0 -0
  132. data/vendor/assets/images/mercury/default-snippet.png +0 -0
  133. data/vendor/assets/images/mercury/loading-dark.gif +0 -0
  134. data/vendor/assets/images/mercury/loading-light.gif +0 -0
  135. data/vendor/assets/images/mercury/missing-image.png +0 -0
  136. data/vendor/assets/images/mercury/search-icon.png +0 -0
  137. data/vendor/assets/images/mercury/temp-logo.png +0 -0
  138. data/vendor/assets/images/mercury/toolbar/editable/buttons.png +0 -0
  139. data/vendor/assets/images/mercury/toolbar/primary/_expander.png +0 -0
  140. data/vendor/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
  141. data/vendor/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
  142. data/vendor/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
  143. data/vendor/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
  144. data/vendor/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
  145. data/vendor/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
  146. data/vendor/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
  147. data/vendor/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
  148. data/vendor/assets/images/mercury/toolbar/primary/preview.png +0 -0
  149. data/vendor/assets/images/mercury/toolbar/primary/redo.png +0 -0
  150. data/vendor/assets/images/mercury/toolbar/primary/save.png +0 -0
  151. data/vendor/assets/images/mercury/toolbar/primary/snippetpanel.png +0 -0
  152. data/vendor/assets/images/mercury/toolbar/primary/undo.png +0 -0
  153. data/vendor/assets/images/mercury/toolbar/snippetable/buttons.png +0 -0
  154. data/vendor/assets/javascripts/mercury/dependencies/jquery-1.7.js +9300 -0
  155. data/vendor/assets/javascripts/mercury/dependencies/jquery-ui-1.8.13.custom.js +1328 -0
  156. data/vendor/assets/javascripts/mercury/dependencies/jquery-ui-1.8.18.custom.min.js +356 -0
  157. data/vendor/assets/javascripts/mercury/dependencies/jquery-ui.1.8.13.custom.min.js +356 -0
  158. data/vendor/assets/javascripts/mercury/dependencies/jquery.additions.js +206 -0
  159. data/vendor/assets/javascripts/mercury/dependencies/jquery.htmlClean.js +527 -0
  160. data/vendor/assets/javascripts/mercury/dependencies/liquidmetal.js +88 -0
  161. data/vendor/assets/javascripts/mercury/dependencies/showdown.js +1340 -0
  162. data/vendor/assets/javascripts/mercury/dialog.js.coffee +159 -0
  163. data/vendor/assets/javascripts/mercury/dialogs/backcolor.js.coffee +6 -0
  164. data/vendor/assets/javascripts/mercury/dialogs/forecolor.js.coffee +6 -0
  165. data/vendor/assets/javascripts/mercury/dialogs/formatblock.js.coffee +4 -0
  166. data/vendor/assets/javascripts/mercury/dialogs/snippetpanel.js.coffee +10 -0
  167. data/vendor/assets/javascripts/mercury/dialogs/style.js.coffee +4 -0
  168. data/vendor/assets/javascripts/mercury/finalize.js.coffee +3 -0
  169. data/vendor/assets/javascripts/mercury/history_buffer.js.coffee +30 -0
  170. data/vendor/assets/javascripts/mercury/lightview.js.coffee +205 -0
  171. data/vendor/assets/javascripts/mercury/locales/da.locale.js.coffee +0 -0
  172. data/vendor/assets/javascripts/mercury/locales/de.locale.js.coffee +206 -0
  173. data/vendor/assets/javascripts/mercury/locales/es.locale.js.coffee +211 -0
  174. data/vendor/assets/javascripts/mercury/locales/example.local.js.coffee +211 -0
  175. data/vendor/assets/javascripts/mercury/locales/fr.locale.js.coffee +211 -0
  176. data/vendor/assets/javascripts/mercury/locales/it.locale.js.coffee +208 -0
  177. data/vendor/assets/javascripts/mercury/locales/ko.local.js.coffee +206 -0
  178. data/vendor/assets/javascripts/mercury/locales/nl.locale.js.coffee +206 -0
  179. data/vendor/assets/javascripts/mercury/locales/pt.locale.js.coffee +211 -0
  180. data/vendor/assets/javascripts/mercury/locales/sv.local.js.coffee +209 -0
  181. data/vendor/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee +213 -0
  182. data/vendor/assets/javascripts/mercury/mercury.js.coffee +109 -0
  183. data/vendor/assets/javascripts/mercury/modal.js.coffee +204 -0
  184. data/vendor/assets/javascripts/mercury/modals/htmleditor.js.coffee +11 -0
  185. data/vendor/assets/javascripts/mercury/modals/insertcharacter.js.coffee +4 -0
  186. data/vendor/assets/javascripts/mercury/modals/insertlink.js.coffee +95 -0
  187. data/vendor/assets/javascripts/mercury/modals/insertmedia.js.coffee +107 -0
  188. data/vendor/assets/javascripts/mercury/modals/insertsnippet.js.coffee +12 -0
  189. data/vendor/assets/javascripts/mercury/modals/inserttable.js.coffee +54 -0
  190. data/vendor/assets/javascripts/mercury/native_extensions.js.coffee +55 -0
  191. data/vendor/assets/javascripts/mercury/page_editor.js.coffee +241 -0
  192. data/vendor/assets/javascripts/mercury/palette.js.coffee +29 -0
  193. data/vendor/assets/javascripts/mercury/panel.js.coffee +115 -0
  194. data/vendor/assets/javascripts/mercury/plugins/save_as_xml/mercury/page_editor.js.coffee +28 -0
  195. data/vendor/assets/javascripts/mercury/plugins/save_as_xml/plugin.js +9 -0
  196. data/vendor/assets/javascripts/mercury/region.js.coffee +107 -0
  197. data/vendor/assets/javascripts/mercury/regions/editable.js.coffee +600 -0
  198. data/vendor/assets/javascripts/mercury/regions/markupable.js.coffee +398 -0
  199. data/vendor/assets/javascripts/mercury/regions/simple.js.coffee +339 -0
  200. data/vendor/assets/javascripts/mercury/regions/snippetable.js.coffee +124 -0
  201. data/vendor/assets/javascripts/mercury/select.js.coffee +44 -0
  202. data/vendor/assets/javascripts/mercury/snippet.js.coffee +104 -0
  203. data/vendor/assets/javascripts/mercury/snippet_toolbar.js.coffee +72 -0
  204. data/vendor/assets/javascripts/mercury/statusbar.js.coffee +51 -0
  205. data/vendor/assets/javascripts/mercury/support/history.js +1 -0
  206. data/vendor/assets/javascripts/mercury/table_editor.js.coffee +265 -0
  207. data/vendor/assets/javascripts/mercury/toolbar.button.js.coffee +173 -0
  208. data/vendor/assets/javascripts/mercury/toolbar.button_group.js.coffee +42 -0
  209. data/vendor/assets/javascripts/mercury/toolbar.expander.js.coffee +56 -0
  210. data/vendor/assets/javascripts/mercury/toolbar.js.coffee +86 -0
  211. data/vendor/assets/javascripts/mercury/tooltip.js.coffee +74 -0
  212. data/vendor/assets/javascripts/mercury/uploader.js.coffee +227 -0
  213. data/vendor/assets/javascripts/mercury.js +479 -0
  214. data/vendor/assets/javascripts/mercury_loader.js +193 -0
  215. data/vendor/assets/javascripts/mercury_overrides.js +6 -0
  216. data/vendor/assets/javascripts/popup.js +8 -0
  217. data/vendor/assets/stylesheets/mercury/all_images.css.erb +89 -0
  218. data/vendor/assets/stylesheets/mercury/dialog.css +208 -0
  219. data/vendor/assets/stylesheets/mercury/lightview.css +151 -0
  220. data/vendor/assets/stylesheets/mercury/mercury.css +151 -0
  221. data/vendor/assets/stylesheets/mercury/modal.css +183 -0
  222. data/vendor/assets/stylesheets/mercury/statusbar.css +32 -0
  223. data/vendor/assets/stylesheets/mercury/toolbar.css +304 -0
  224. data/vendor/assets/stylesheets/mercury/tooltip.css +26 -0
  225. data/vendor/assets/stylesheets/mercury/uploader.css +111 -0
  226. data/vendor/assets/stylesheets/mercury.css +28 -0
  227. data/vendor/assets/stylesheets/mercury_overrides.css +17 -0
  228. data/vendor/assets/stylesheets/popup.css.erb +37 -0
  229. metadata +634 -0
@@ -0,0 +1,27 @@
1
+ <form>
2
+ <div id="table_display">
3
+ <table id="table" border="1" cellspacing="0"><tr><td id="cell1"></td></tr><tr><td id="cell2"></td></tr></table>
4
+ </div>
5
+
6
+ <input class="action" name="insertRowBefore" type="button" value="Add Before">
7
+ <input class="action" name="insertRowAfter" type="button" value="Add After">
8
+ <input class="action" name="deleteRow" type="button" value="Remove">
9
+ <input class="action" name="insertColumnBefore" type="button" value="Add Before">
10
+ <input class="action" name="insertColumnAfter" type="button" value="Add After">
11
+ <input class="action" name="deleteColumn" type="button" value="Remove">
12
+ <input class="action" name="increaseRowspan" type="button" value="+">
13
+ <input class="action" name="decreaseRowspan" type="button" value="-">
14
+ <input class="action" name="increaseColspan" type="button" value="+">
15
+ <input class="action" name="decreaseColspan" type="button" value="-">
16
+
17
+ <select id="table_alignment" name="table[alignment]">
18
+ <option value="">None</option>
19
+ <option value="left">Left</option>
20
+ <option value="right" id="right_option">Right</option>
21
+ </select>
22
+
23
+ <input id="table_border" type="text" value="1"/>
24
+ <input id="table_spacing" type="text" value="0"/>
25
+
26
+ <input id="submit" type="submit"/>
27
+ </form>
@@ -0,0 +1,35 @@
1
+ <style>
2
+ .mercury-iframe {
3
+ height: 100px;
4
+ }
5
+ </style>
6
+ <meta content="authenticity_token" name="csrf-param" />
7
+ <meta content="K6JhyfOVKJX8X2ZkiJXSf491fc1fF+k79wzrChHQa0g=" name="csrf-token" />
8
+
9
+ <div id="page_editor_container"></div>
10
+ <div id="region1" class="custom-region-class" data-type="editable"></div>
11
+ <div id="region2" class="custom-region-class" data-type="editable"></div>
12
+ <div id="region3" class="custom-region-class" data-type="editable">
13
+ <a id="anchor1r" href="#" target="_top">1</a>
14
+ <a id="anchor2r" href="#" target="_blank">2</a>
15
+ <a id="anchor3r" href="#" target="_self">3</a>
16
+ <a id="anchor4r" href="#">4</a>
17
+ <form id="form1r" action="" target="_top"></form>
18
+ <form id="form2r" action="" target="_blank"></form>
19
+ <form id="form3r" action="" target="_self"></form>
20
+ <form id="form4r" action=""></form>
21
+ </div>
22
+ <div id="region4" class="custom-region-class"></div>
23
+
24
+ <a id="anchor1" href="#" target="_top">1</a>
25
+ <a id="anchor2" href="#" target="_blank">2</a>
26
+ <a id="anchor3" href="#" target="_self">3</a>
27
+ <a id="anchor4" href="#">4</a>
28
+ <a id="anchor5" href="#" class="lightview" target="_self">5</a>
29
+ <a id="anchor6" href="#" target="foo">5</a>
30
+ <form id="form1" action="" target="_top"></form>
31
+ <form id="form2" action="" target="_blank"></form>
32
+ <form id="form3" action="" target="_self"></form>
33
+ <form id="form4" action=""></form>
34
+ <form id="form5" action="" class="lightview" target="_self"></form>
35
+ <form id="form6" action="" target="foo"></form>
@@ -0,0 +1,16 @@
1
+ <style>
2
+ .mercury-palette {
3
+ position: absolute;
4
+ height: 100px;
5
+ width: 100px;
6
+ }
7
+ #button {
8
+ position: absolute;
9
+ top: 42px;
10
+ left: 42px;
11
+ width: 20px;
12
+ height: 20px;
13
+ }
14
+ </style>
15
+ <div id="palette_container"></div>
16
+ <div id="button"></div>
@@ -0,0 +1,16 @@
1
+ <style>
2
+ .mercury-panel {
3
+ position: absolute;
4
+ height: 100px;
5
+ width: 100px;
6
+ }
7
+ #panel_container {
8
+ position: absolute;
9
+ top: 42px;
10
+ left: 42px;
11
+ width: 20px;
12
+ height: 20px;
13
+ }
14
+ </style>
15
+ <div id="panel_container"></div>
16
+ <div id="button"></div>
@@ -0,0 +1,2 @@
1
+ <div id="region" data-scope="scope" data-version="1">contents</div>
2
+ <div id="region_with_snippet">contents<div class="mercury-snippet" data-snippet="snippet_1" data-version="1">snippet</div></div>
@@ -0,0 +1,3 @@
1
+ <div id="editable_region1">
2
+
3
+ </div>
@@ -0,0 +1,4 @@
1
+ <div id="snippetable_region1" data-type="snippetable"></div>
2
+ <div id="snippetable_region2" data-type="snippetable">
3
+ <div class="mercury-snippet" data-snippet="snippet_1">12</div>
4
+ </div>
@@ -0,0 +1,16 @@
1
+ <style>
2
+ .mercury-select {
3
+ position: absolute;
4
+ height: 100px;
5
+ width: 100px;
6
+ }
7
+ #button {
8
+ position: absolute;
9
+ top: 42px;
10
+ left: 42px;
11
+ width: 20px;
12
+ height: 20px;
13
+ }
14
+ </style>
15
+ <div id="select_container"></div>
16
+ <div id="button"></div>
@@ -0,0 +1 @@
1
+ <div id="snippet"></div>
@@ -0,0 +1,16 @@
1
+ <style>
2
+ html, body {
3
+ padding: 0;
4
+ }
5
+ .mercury-snippet-toolbar {
6
+ position: absolute;
7
+ }
8
+ #snippet {
9
+ position: absolute;
10
+ top: 42px;
11
+ left: 200px;
12
+ }
13
+ </style>
14
+
15
+ <div id="snippet_toolbar_container"></div>
16
+ <div id="snippet">...</div>
@@ -0,0 +1,8 @@
1
+ <style>
2
+ .mercury-statusbar {
3
+ border-top: 3px;
4
+ height: 20px;
5
+ }
6
+ </style>
7
+
8
+ <div id="statusbar_container"></div>
@@ -0,0 +1,65 @@
1
+ <style>
2
+ #table1 th, #table1 td {
3
+ width: 100px;
4
+ padding: 0;
5
+ }
6
+ </style>
7
+
8
+ <table border="1" cellspacing="2" id="table1">
9
+ <thead>
10
+ <tr id="row1">
11
+ <th colspan="6">THEAD</th>
12
+ </tr>
13
+ </thead>
14
+ <tbody>
15
+ <tr id="row2">
16
+ <th>Head1</th>
17
+ <th>Head2</th>
18
+ <th rowspan="2">Head3</th>
19
+ <th>Head4</th>
20
+ <th rowspan="4">Head5</th>
21
+ <th>Head6</th>
22
+ </tr>
23
+ <tr id="row3">
24
+ <td>Column1</td>
25
+ <td>Column2</td>
26
+ <td>Column4</td>
27
+ <td>Column6</td>
28
+ </tr>
29
+ <tr id="row4">
30
+ <td>Column1</td>
31
+ <td>Column2</td>
32
+ <td>Column3</td>
33
+ <td>Column4</td>
34
+ <td>Column6</td>
35
+ </tr>
36
+ <tr id="row5">
37
+ <th>Head1</th>
38
+ <th>Head2</th>
39
+ <th rowspan="2">Head3</th>
40
+ <th>Head4</th>
41
+ <th>Head6</th>
42
+ </tr>
43
+ <tr id="row6">
44
+ <td>Column1</td>
45
+ <td>Column2</td>
46
+ <td>Column4</td>
47
+ <td>Column5</td>
48
+ <td>Column6</td>
49
+ </tr>
50
+ <tr id="row7">
51
+ <td colspan="2">Column1</td>
52
+ <td colspan="4">Column2</td>
53
+ </tr>
54
+ </tbody>
55
+ <tfoot>
56
+ <tr id="row8">
57
+ <td>Column1</td>
58
+ <td>Column2</td>
59
+ <td>Column3</td>
60
+ <td>Column4</td>
61
+ <td>Column5</td>
62
+ <td>Column6</td>
63
+ </tr>
64
+ </tfoot>
65
+ </table>
@@ -0,0 +1,64 @@
1
+ <style>
2
+ #context_backcolor { background-color: #F00 }
3
+ #context_forecolor { color: #0F0 }
4
+ #context_bold3 { font-weight: 800 }
5
+ #context_bold4 { font-weight: 600 }
6
+ #context_bold5 { font-weight: 400 }
7
+ #context_italic2 { font-style: italic }
8
+ #context_strikethrough2 { text-decoration: line-through }
9
+ #context_overline { text-decoration: overline }
10
+ #context_underline2 { text-decoration: underline }
11
+ #context_justifyLeft { text-align: left }
12
+ #context_justifyCenter { text-align: center }
13
+ #context_justifyRight { text-align: right }
14
+ #context_justifyFull { text-align: justify }
15
+ </style>
16
+
17
+ <div id="context_button">button</div>
18
+ <div id="context_container">
19
+ <div id="context_none">nothing</div>
20
+ <div id="context_backcolor">back<span>color</span></div>
21
+ <div id="context_forecolor">fore<span>color</span></div>
22
+ <div>
23
+ <b id="context_bold1">bold <span>123</span></b>
24
+ <strong id="context_bold2">bold <span>123</span></strong>
25
+ <span id="context_bold3">bold <span>123</span></span>
26
+ <span id="context_bold4">bold <span>123</span></span>
27
+ <span id="context_bold5">not bold <span>123</span></span>
28
+ <h1 id="context_bold6">bold <span>123</span></h1>
29
+ </div>
30
+ <div>
31
+ <em id="context_italic1">italic <span>123</span></em>
32
+ <span id="context_italic2">italic <span>123</span></span>
33
+ </div>
34
+ <div id="context_overline">overline <span>123</span></div>
35
+ <div>
36
+ <strike id="context_strikethrough1">strikethrough <span>123</span></strike>
37
+ <span id="context_strikethrough2">strikethrough <span>123</span></span>
38
+ </div>
39
+ <div>
40
+ <u id="context_underline1">underline <span>123</span></u>
41
+ <span id="context_underline2">underline <span>123</span></span>
42
+ </div>
43
+ <sub id="context_subscript">sub<span>script</span></sub>
44
+ <sup id="context_superscript">super<span>script</span></sup>
45
+ <div>
46
+ <div id="context_justifyLeft">justify <span>left</span></div>
47
+ <div id="context_justifyCenter">justify <span>center</span></div>
48
+ <div id="context_justifyRight">justify <span>right</span></div>
49
+ <div id="context_justifyFull">justify <span>full</span></div>
50
+ </div>
51
+ <ol id="context_orderedlist">
52
+ <li>ordered <span>list</span></li>
53
+ </ol>
54
+ <ul id="context_unorderedlist">
55
+ <li>unordered <span>list</span></li>
56
+ </ul>
57
+ <div id="context_decoration">
58
+ no decoration
59
+ <span class="overline">
60
+ overline
61
+ <span class="underline">underline</span>
62
+ </span>
63
+ </div>
64
+ </div>
@@ -0,0 +1,9 @@
1
+ <div id="context_container">
2
+ <em id="context_em"></em>
3
+ <table>
4
+ <tr>
5
+ <td id="context_td">1</td>
6
+ <td>2</td>
7
+ </tr>
8
+ </table>
9
+ </div>
@@ -0,0 +1,18 @@
1
+ <style>
2
+ #expander_container {
3
+ white-space: nowrap;
4
+ width: 3000px;
5
+ position: absolute;
6
+ }
7
+
8
+ #positioned_container {
9
+ position: absolute;
10
+ top: 42px;
11
+ left: 42px;
12
+ }
13
+ </style>
14
+ <div id="expander_container">
15
+ <div id="button1" class="mercury-button">1</div>
16
+ <div id="button2" class="mercury-button mercury-test-button">2</div>
17
+ </div>
18
+ <div id="positioned_container"></div>
@@ -0,0 +1,11 @@
1
+ <style>
2
+ .mercury-toolbar-container {
3
+ position: absolute;
4
+ height: 200px;
5
+ }
6
+ .mercury-primary-toolbar {
7
+ white-space: nowrap;
8
+ }
9
+ </style>
10
+
11
+ <div id="toolbar_container"></div>
@@ -0,0 +1,12 @@
1
+ <style>
2
+ .mercury-tooltip {
3
+ position: absolute;
4
+ }
5
+ #for_element {
6
+ position: absolute;
7
+ top: 20px;
8
+ left: 42px;
9
+ }
10
+ </style>
11
+ <a id="for_element">link</a>
12
+ <div id="tooltip_container"></div>
@@ -0,0 +1,11 @@
1
+ <style>
2
+ .mercury-uploader {
3
+ position: absolute;
4
+ top: 0;
5
+ left: 0;
6
+ width: 100px;
7
+ height: 100px;
8
+ }
9
+ </style>
10
+
11
+ <div id="uploader_container"></div>