mercury-rails 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. data/LICENSE +5 -0
  2. data/{README.rdoc → README.md} +150 -60
  3. data/VERSION +1 -1
  4. data/annotated_source.template +57 -0
  5. data/app/controllers/mercury_controller.rb +8 -4
  6. data/app/models/image.rb +2 -2
  7. data/app/views/layouts/mercury.html.erb +14 -0
  8. data/app/views/mercury/lightviews/about.html +7 -0
  9. data/app/views/mercury/lightviews/imageprocessor.html +3 -0
  10. data/app/views/mercury/modals/character.html +255 -0
  11. data/app/views/mercury/modals/htmleditor.html +13 -0
  12. data/app/views/mercury/modals/link.html +75 -0
  13. data/app/views/mercury/modals/media.html +82 -0
  14. data/app/views/mercury/modals/sanitizer.html +9 -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.html.erb +1 -0
  24. data/app/views/mercury/snippets/example_options.html.erb +23 -0
  25. data/config/routes.rb +1 -1
  26. data/features/editing/basic.feature +1 -1
  27. data/features/support/paths.rb +1 -0
  28. data/lib/generators/mercury/install/install_generator.rb +14 -0
  29. data/mercury-rails.gemspec +115 -106
  30. data/spec/javascripts/mercury/dialog_spec.js.coffee +54 -38
  31. data/spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee +1 -1
  32. data/spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee +1 -1
  33. data/spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee +1 -1
  34. data/spec/javascripts/mercury/dialogs/{objectspanel_spec.js.coffee → snippetpanel_spec.js.coffee} +4 -4
  35. data/spec/javascripts/mercury/dialogs/style_spec.js.coffee +1 -1
  36. data/spec/javascripts/mercury/history_buffer_spec.js.coffee +0 -1
  37. data/spec/javascripts/mercury/lightview_spec.js.coffee +448 -0
  38. data/spec/javascripts/mercury/mercury_spec.js.coffee +1 -1
  39. data/spec/javascripts/mercury/modal_spec.js.coffee +474 -0
  40. data/spec/javascripts/mercury/modals/htmleditor_spec.js.coffee +1 -1
  41. data/spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee +1 -1
  42. data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +8 -2
  43. data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +1 -1
  44. data/spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee +1 -1
  45. data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +1 -1
  46. data/spec/javascripts/mercury/native_extensions_spec.js.coffee +1 -1
  47. data/spec/javascripts/mercury/page_editor_spec.js.coffee +160 -20
  48. data/spec/javascripts/mercury/palette_spec.js.coffee +1 -1
  49. data/spec/javascripts/mercury/panel_spec.js.coffee +1 -1
  50. data/spec/javascripts/mercury/region_spec.js.coffee +1 -1
  51. data/spec/javascripts/mercury/regions/editable_spec.js.coffee +191 -6
  52. data/spec/javascripts/mercury/regions/markupable_spec.js.coffee +369 -0
  53. data/spec/javascripts/mercury/regions/snippetable_spec.js.coffee +1 -1
  54. data/spec/javascripts/mercury/select_spec.js.coffee +1 -1
  55. data/spec/javascripts/mercury/snippet_spec.js.coffee +3 -3
  56. data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +2 -2
  57. data/spec/javascripts/mercury/statusbar_spec.js.coffee +91 -17
  58. data/spec/javascripts/mercury/table_editor_spec.js.coffee +5 -1
  59. data/spec/javascripts/mercury/toolbar.button_group_spec.js.coffee +1 -1
  60. data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +1 -1
  61. data/spec/javascripts/mercury/toolbar.expander_spec.js.coffee +1 -1
  62. data/spec/javascripts/mercury/toolbar_spec.js.coffee +70 -15
  63. data/spec/javascripts/mercury/tooltip_spec.js.coffee +1 -1
  64. data/spec/javascripts/mercury/uploader_spec.js.coffee +9 -1
  65. data/spec/javascripts/templates/mercury/dialogs/{objectspanel.html → snippetpanel.html} +0 -0
  66. data/spec/javascripts/templates/mercury/lightview.html +13 -0
  67. data/spec/javascripts/templates/mercury/modal.html +13 -0
  68. data/spec/javascripts/templates/mercury/page_editor.html +11 -1
  69. data/spec/javascripts/templates/mercury/statusbar.html +1 -0
  70. data/spec/javascripts/templates/mercury/toolbar.html +1 -0
  71. data/{app → vendor}/assets/images/mercury/button.png +0 -0
  72. data/{app → vendor}/assets/images/mercury/clippy.png +0 -0
  73. data/{app → vendor}/assets/images/mercury/default-snippet.png +0 -0
  74. data/{app → vendor}/assets/images/mercury/loading-dark.gif +0 -0
  75. data/{app → vendor}/assets/images/mercury/loading-light.gif +0 -0
  76. data/{app → vendor}/assets/images/mercury/search-icon.png +0 -0
  77. data/vendor/assets/images/mercury/temp-logo.png +0 -0
  78. data/{app → vendor}/assets/images/mercury/toolbar/editable/buttons.png +0 -0
  79. data/{app → vendor}/assets/images/mercury/toolbar/primary/_expander.png +0 -0
  80. data/{app → vendor}/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
  81. data/{app → vendor}/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
  82. data/{app → vendor}/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
  83. data/{app → vendor}/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
  84. data/{app → vendor}/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
  85. data/{app → vendor}/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
  86. data/{app → vendor}/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
  87. data/{app → vendor}/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
  88. data/{app → vendor}/assets/images/mercury/toolbar/primary/preview.png +0 -0
  89. data/{app → vendor}/assets/images/mercury/toolbar/primary/redo.png +0 -0
  90. data/{app → vendor}/assets/images/mercury/toolbar/primary/save.png +0 -0
  91. data/{app/assets/images/mercury/toolbar/primary/objectspanel.png → vendor/assets/images/mercury/toolbar/primary/snippetpanel.png} +0 -0
  92. data/{app → vendor}/assets/images/mercury/toolbar/primary/undo.png +0 -0
  93. data/{app → vendor}/assets/images/mercury/toolbar/snippetable/buttons.png +0 -0
  94. data/vendor/assets/javascripts/mercury.js +302 -0
  95. data/vendor/assets/javascripts/mercury/dialog.js.coffee +157 -0
  96. data/{app → vendor}/assets/javascripts/mercury/dialogs/backcolor.js.coffee +0 -0
  97. data/{app → vendor}/assets/javascripts/mercury/dialogs/forecolor.js.coffee +0 -0
  98. data/{app → vendor}/assets/javascripts/mercury/dialogs/formatblock.js.coffee +0 -0
  99. data/{app → vendor}/assets/javascripts/mercury/dialogs/objectspanel.js.coffee +1 -1
  100. data/{app → vendor}/assets/javascripts/mercury/dialogs/style.js.coffee +0 -0
  101. data/{app → vendor}/assets/javascripts/mercury/history_buffer.js.coffee +0 -0
  102. data/vendor/assets/javascripts/mercury/lightview.js.coffee +156 -0
  103. data/vendor/assets/javascripts/mercury/lightviews/imageprocessor.js.coffee +2 -0
  104. data/vendor/assets/javascripts/mercury/mercury.js.coffee +63 -0
  105. data/{app → vendor}/assets/javascripts/mercury/modal.js.coffee +25 -17
  106. data/{app → vendor}/assets/javascripts/mercury/modals/htmleditor.js.coffee +0 -0
  107. data/{app → vendor}/assets/javascripts/mercury/modals/insertcharacter.js.coffee +0 -0
  108. data/{app → vendor}/assets/javascripts/mercury/modals/insertlink.js.coffee +3 -0
  109. data/{app → vendor}/assets/javascripts/mercury/modals/insertmedia.js.coffee +10 -2
  110. data/{app → vendor}/assets/javascripts/mercury/modals/insertsnippet.js.coffee +0 -0
  111. data/{app → vendor}/assets/javascripts/mercury/modals/inserttable.js.coffee +2 -2
  112. data/{app → vendor}/assets/javascripts/mercury/native_extensions.js.coffee +0 -0
  113. data/{app → vendor}/assets/javascripts/mercury/page_editor.js.coffee +44 -13
  114. data/{app → vendor}/assets/javascripts/mercury/palette.js.coffee +0 -0
  115. data/{app → vendor}/assets/javascripts/mercury/panel.js.coffee +0 -0
  116. data/{app → vendor}/assets/javascripts/mercury/region.js.coffee +0 -0
  117. data/{app → vendor}/assets/javascripts/mercury/regions/editable.js.coffee +58 -12
  118. data/{app → vendor}/assets/javascripts/mercury/regions/markupable.js.coffee +26 -24
  119. data/{app → vendor}/assets/javascripts/mercury/regions/snippetable.js.coffee +0 -0
  120. data/{app → vendor}/assets/javascripts/mercury/select.js.coffee +3 -0
  121. data/{app → vendor}/assets/javascripts/mercury/snippet.js.coffee +9 -5
  122. data/{app → vendor}/assets/javascripts/mercury/snippet_toolbar.js.coffee +0 -0
  123. data/vendor/assets/javascripts/mercury/statusbar.js.coffee +51 -0
  124. data/{app → vendor}/assets/javascripts/mercury/table_editor.js.coffee +9 -8
  125. data/{app → vendor}/assets/javascripts/mercury/toolbar.button.js.coffee +0 -0
  126. data/{app → vendor}/assets/javascripts/mercury/toolbar.button_group.js.coffee +0 -0
  127. data/{app → vendor}/assets/javascripts/mercury/toolbar.expander.js.coffee +0 -0
  128. data/{app → vendor}/assets/javascripts/mercury/toolbar.js.coffee +14 -1
  129. data/{app → vendor}/assets/javascripts/mercury/tooltip.js.coffee +3 -0
  130. data/{app → vendor}/assets/javascripts/mercury/uploader.js.coffee +22 -13
  131. data/vendor/assets/javascripts/{jquery-1.6.js → mercury_dependencies/jquery-1.6.js} +0 -0
  132. data/vendor/assets/javascripts/{jquery-ui-1.8.13.custom.js → mercury_dependencies/jquery-ui-1.8.13.custom.js} +0 -0
  133. data/vendor/assets/javascripts/{jquery.additions.js → mercury_dependencies/jquery.additions.js} +0 -0
  134. data/vendor/assets/javascripts/{liquidmetal.js → mercury_dependencies/liquidmetal.js} +0 -0
  135. data/vendor/assets/javascripts/{showdown.js → mercury_dependencies/showdown.js} +0 -0
  136. data/vendor/assets/javascripts/mercury_loader.js +191 -0
  137. data/{app → vendor}/assets/stylesheets/mercury.css +3 -6
  138. data/vendor/assets/stylesheets/mercury/dialog.css +199 -0
  139. data/vendor/assets/stylesheets/mercury/lightview.css +92 -0
  140. data/vendor/assets/stylesheets/mercury/mercury.css +134 -0
  141. data/vendor/assets/stylesheets/mercury/modal.css +191 -0
  142. data/{app/assets/stylesheets/mercury/statusbar.scss → vendor/assets/stylesheets/mercury/statusbar.css} +9 -1
  143. data/vendor/assets/stylesheets/mercury/toolbar.css +329 -0
  144. data/{app/assets/stylesheets/mercury/tooltip.scss → vendor/assets/stylesheets/mercury/tooltip.css} +7 -7
  145. data/vendor/assets/stylesheets/mercury/uploader.css +111 -0
  146. metadata +230 -225
  147. data/app/assets/images/mercury/toolbar/markupable/buttons.png +0 -0
  148. data/app/assets/images/mercury/toolbar/primary/todospanel.png +0 -0
  149. data/app/assets/javascripts/mercury.js +0 -30
  150. data/app/assets/javascripts/mercury/dialog.js.coffee +0 -75
  151. data/app/assets/javascripts/mercury/mercury.js.coffee +0 -286
  152. data/app/assets/javascripts/mercury/statusbar.js.coffee +0 -29
  153. data/app/assets/javascripts/mercury_loader.js +0 -98
  154. data/app/assets/stylesheets/mercury/dialog.scss +0 -179
  155. data/app/assets/stylesheets/mercury/mercury.scss +0 -127
  156. data/app/assets/stylesheets/mercury/modal.scss +0 -194
  157. data/app/assets/stylesheets/mercury/toolbar.scss +0 -415
  158. data/app/assets/stylesheets/mercury/uploader.scss +0 -109
  159. data/app/views/layouts/mercury.html.haml +0 -8
  160. data/app/views/mercury/modals/character.html.haml +0 -252
  161. data/app/views/mercury/modals/htmleditor.html.haml +0 -8
  162. data/app/views/mercury/modals/link.html.haml +0 -31
  163. data/app/views/mercury/modals/media.html.haml +0 -33
  164. data/app/views/mercury/modals/sanitizer.html.haml +0 -4
  165. data/app/views/mercury/modals/table.html.haml +0 -49
  166. data/app/views/mercury/palettes/backcolor.html.haml +0 -79
  167. data/app/views/mercury/palettes/forecolor.html.haml +0 -79
  168. data/app/views/mercury/panels/history.html.haml +0 -0
  169. data/app/views/mercury/panels/notes.html.haml +0 -0
  170. data/app/views/mercury/panels/snippets.html.haml +0 -10
  171. data/app/views/mercury/selects/formatblock.html.haml +0 -10
  172. data/app/views/mercury/selects/style.html.haml +0 -4
  173. data/app/views/mercury/snippets/example.html.haml +0 -2
  174. data/app/views/mercury/snippets/example_options.html.haml +0 -16
  175. data/log/.gitkeep +0 -0
  176. data/spec/javascripts/mercury/regions/_markupable_.js.coffee +0 -0
@@ -1,8 +0,0 @@
1
- !!!
2
- %html
3
- %head
4
- %title Mercury Editor
5
- = csrf_meta_tags
6
- = stylesheet_link_tag "mercury"
7
- = javascript_include_tag "mercury"
8
- %body= javascript_tag 'new Mercury.PageEditor()'
@@ -1,252 +0,0 @@
1
- %form#mercury_insertCharacter{ style: 'width:456px' }
2
-
3
- .mercury-modal-pane-container
4
- .mercury-modal-pane
5
-
6
- .character{ data: {entity: "#34"}, title: "quotation mark (APL quote)" } "
7
- .character{ data: {entity: "#38"}, title: "ampersand" } &
8
- .character{ data: {entity: "#60"}, title: "less-than sign" } <
9
- .character{ data: {entity: "#62"}, title: "greater-than sign" } >
10
- .character{ data: {entity: "#710"}, title: "modifier letter circumflex accent" } ˆ
11
- .character{ data: {entity: "#732"}, title: "small tilde" } ˜
12
- .character{ data: {entity: "#160"}, title: "non-breaking space" }  
13
- .character{ data: {entity: "#8194"}, title: "en space" }  
14
- .character{ data: {entity: "#8195"}, title: "em space" }  
15
- .character{ data: {entity: "#8201"}, title: "thin space" }  
16
- .character{ data: {entity: "#8211"}, title: "en dash" } –
17
- .character{ data: {entity: "#8212"}, title: "em dash" } —
18
- .character{ data: {entity: "#8216"}, title: "left single quotation mark" } ‘
19
- .character{ data: {entity: "#8217"}, title: "right single quotation mark" } ’
20
- .character{ data: {entity: "#8218"}, title: "single low-9 quotation mark" } ‚
21
- .character{ data: {entity: "#8220"}, title: "left double quotation mark" } “
22
- .character{ data: {entity: "#8221"}, title: "right double quotation mark" } ”
23
- .character{ data: {entity: "#8222"}, title: "double low-9 quotation mark" } „
24
- .character{ data: {entity: "#8224"}, title: "dagger" } †
25
- .character{ data: {entity: "#8225"}, title: "double dagger" } ‡
26
- .character{ data: {entity: "#8240"}, title: "per mille sign" } ‰
27
- .character{ data: {entity: "#8249"}, title: "single left-pointing angle quotation mark" } ‹
28
- .character{ data: {entity: "#8250"}, title: "single right-pointing angle quotation mark" } ›
29
- .character{ data: {entity: "#161"}, title: "inverted exclamation mark" } ¡
30
- .character{ data: {entity: "#162"}, title: "cent sign" } ¢
31
- .character{ data: {entity: "#163"}, title: "pound sign" } £
32
- .character{ data: {entity: "#164"}, title: "currency sign" } ¤
33
- .character{ data: {entity: "#165"}, title: "yen sign" } ¥
34
- .character{ data: {entity: "#166"}, title: "broken bar" } ¦
35
- .character{ data: {entity: "#167"}, title: "section sign" } §
36
- .character{ data: {entity: "#168"}, title: "spacing diaeresis" } ¨
37
- .character{ data: {entity: "#169"}, title: "copyright sign" } ©
38
- .character{ data: {entity: "#170"}, title: "feminine ordinal indicator" } ª
39
- .character{ data: {entity: "#186"}, title: "masculine ordinal indicator" } º
40
- .character{ data: {entity: "#171"}, title: "left pointing guillemet" } «
41
- .character{ data: {entity: "#172"}, title: "not sign" } ¬
42
- .character{ data: {entity: "#174"}, title: "registered trade mark sign" } ®
43
- .character{ data: {entity: "#175"}, title: "spacing macron" } ¯
44
- .character{ data: {entity: "#176"}, title: "degree sign" } °
45
- .character{ data: {entity: "#177"}, title: "plus-or-minus sign" } ±
46
- .character{ data: {entity: "#185"}, title: "superscript one" } ¹
47
- .character{ data: {entity: "#178"}, title: "superscript digit two" } ²
48
- .character{ data: {entity: "#179"}, title: "superscript digit three" } ³
49
- .character{ data: {entity: "#180"}, title: "acute accent" } ´
50
- .character{ data: {entity: "#181"}, title: "micro sign" } µ
51
- .character{ data: {entity: "#182"}, title: "pilcrow sign" } ¶
52
- .character{ data: {entity: "#183"}, title: "middle dot" } ·
53
- .character{ data: {entity: "#184"}, title: "cedilla" } ¸
54
- .character{ data: {entity: "#187"}, title: "right-pointing double angle quotation mark" } »
55
- .character{ data: {entity: "#188"}, title: "fraction one quarter" } ¼
56
- .character{ data: {entity: "#189"}, title: "fraction one half" } ½
57
- .character{ data: {entity: "#190"}, title: "fraction three quarters" } ¾
58
- .character{ data: {entity: "#191"}, title: "inverted question mark" } ¿
59
- .character{ data: {entity: "#215"}, title: "multiplication sign" } ×
60
- .character{ data: {entity: "#247"}, title: "division sign" } ÷
61
- .character{ data: {entity: "#192"}, title: "latin capital letter A with grave" } À
62
- .character{ data: {entity: "#224"}, title: "latin small letter a with grave" } à
63
- .character{ data: {entity: "#193"}, title: "latin capital letter A with acute" } Á
64
- .character{ data: {entity: "#225"}, title: "latin small letter a with acute" } á
65
- .character{ data: {entity: "#194"}, title: "latin capital letter A with circumflex" } Â
66
- .character{ data: {entity: "#226"}, title: "latin small letter a with circumflex" } â
67
- .character{ data: {entity: "#195"}, title: "latin capital letter A with tilde" } Ã
68
- .character{ data: {entity: "#227"}, title: "latin small letter a with tilde" } ã
69
- .character{ data: {entity: "#196"}, title: "latin capital letter A with diaeresis" } Ä
70
- .character{ data: {entity: "#228"}, title: "latin small letter a with diaeresis" } ä
71
- .character{ data: {entity: "#197"}, title: "latin capital letter A with ring above" } Å
72
- .character{ data: {entity: "#229"}, title: "latin small letter a with ring above" } å
73
- .character{ data: {entity: "#200"}, title: "latin capital letter E with grave" } È
74
- .character{ data: {entity: "#232"}, title: "latin small letter e with grave" } è
75
- .character{ data: {entity: "#201"}, title: "latin capital letter E with acute" } É
76
- .character{ data: {entity: "#233"}, title: "latin small letter e with acute" } é
77
- .character{ data: {entity: "#202"}, title: "latin capital letter E with circumflex" } Ê
78
- .character{ data: {entity: "#234"}, title: "latin small letter e with circumflex" } ê
79
- .character{ data: {entity: "#203"}, title: "latin capital letter E with diaeresis" } Ë
80
- .character{ data: {entity: "#235"}, title: "latin small letter e with diaeresis" } ë
81
- .character{ data: {entity: "#204"}, title: "latin capital letter I with grave" } Ì
82
- .character{ data: {entity: "#236"}, title: "latin small letter i with grave" } ì
83
- .character{ data: {entity: "#205"}, title: "latin capital letter I with acute" } Í
84
- .character{ data: {entity: "#237"}, title: "latin small letter i with acute" } í
85
- .character{ data: {entity: "#206"}, title: "latin capital letter I with circumflex" } Î
86
- .character{ data: {entity: "#238"}, title: "latin small letter i with circumflex" } î
87
- .character{ data: {entity: "#207"}, title: "latin capital letter I with diaeresis" } Ï
88
- .character{ data: {entity: "#239"}, title: "latin small letter i with diaeresis" } ï
89
- .character{ data: {entity: "#210"}, title: "latin capital letter O with grave" } Ò
90
- .character{ data: {entity: "#242"}, title: "latin small letter o with grave" } ò
91
- .character{ data: {entity: "#211"}, title: "latin capital letter O with acute" } Ó
92
- .character{ data: {entity: "#243"}, title: "latin small letter o with acute" } ó
93
- .character{ data: {entity: "#212"}, title: "latin capital letter O with circumflex" } Ô
94
- .character{ data: {entity: "#244"}, title: "latin small letter o with circumflex" } ô
95
- .character{ data: {entity: "#213"}, title: "latin capital letter O with tilde" } Õ
96
- .character{ data: {entity: "#245"}, title: "latin small letter o with tilde" } õ
97
- .character{ data: {entity: "#214"}, title: "latin capital letter O with diaeresis" } Ö
98
- .character{ data: {entity: "#246"}, title: "latin small letter o with diaeresis" } ö
99
- .character{ data: {entity: "#216"}, title: "latin capital letter O with stroke" } Ø
100
- .character{ data: {entity: "#248"}, title: "latin small letter o with stroke" } ø
101
- .character{ data: {entity: "#217"}, title: "latin capital letter U with grave" } Ù
102
- .character{ data: {entity: "#249"}, title: "latin small letter u with grave" } ù
103
- .character{ data: {entity: "#218"}, title: "latin capital letter U with acute" } Ú
104
- .character{ data: {entity: "#250"}, title: "latin small letter u with acute" } ú
105
- .character{ data: {entity: "#219"}, title: "latin capital letter U with circumflex" } Û
106
- .character{ data: {entity: "#251"}, title: "latin small letter u with circumflex" } û
107
- .character{ data: {entity: "#220"}, title: "latin capital letter U with diaeresis" } Ü
108
- .character{ data: {entity: "#252"}, title: "latin small letter u with diaeresis" } ü
109
- .character{ data: {entity: "#221"}, title: "latin capital letter Y with acute" } Ý
110
- .character{ data: {entity: "#253"}, title: "latin small letter y with acute" } ý
111
- .character{ data: {entity: "#376"}, title: "latin capital letter Y with diaeresis" } Ÿ
112
- .character{ data: {entity: "#255"}, title: "latin small letter y with diaeresis" } ÿ
113
- .character{ data: {entity: "#198"}, title: "latin capital ligature AE" } Æ
114
- .character{ data: {entity: "#230"}, title: "latin small ligature ae" } æ
115
- .character{ data: {entity: "#338"}, title: "latin capital ligature OE" } Œ
116
- .character{ data: {entity: "#339"}, title: "latin small ligature oe" } œ
117
- .character{ data: {entity: "#352"}, title: "latin capital letter S with caron" } Š
118
- .character{ data: {entity: "#353"}, title: "latin small letter s with caron" } š
119
- .character{ data: {entity: "#199"}, title: "latin capital letter C with cedilla" } Ç
120
- .character{ data: {entity: "#231"}, title: "latin small letter c with cedilla" } ç
121
- .character{ data: {entity: "#208"}, title: "latin capital letter ETH" } Ð
122
- .character{ data: {entity: "#240"}, title: "latin small letter eth" } ð
123
- .character{ data: {entity: "#209"}, title: "latin capital letter N with tilde" } Ñ
124
- .character{ data: {entity: "#241"}, title: "latin small letter n with tilde" } ñ
125
- .character{ data: {entity: "#222"}, title: "latin capital letter THORN" } Þ
126
- .character{ data: {entity: "#254"}, title: "latin small letter thorn" } þ
127
- .character{ data: {entity: "#223"}, title: "latin small letter sharp s (ess-zed)" } ß
128
- .character{ data: {entity: "#402"}, title: "latin small f with hook (function)" } ƒ
129
- .character{ data: {entity: "#913"}, title: "greek capital letter alpha" } Α
130
- .character{ data: {entity: "#914"}, title: "greek capital letter beta" } Β
131
- .character{ data: {entity: "#915"}, title: "greek capital letter gamma" } Γ
132
- .character{ data: {entity: "#916"}, title: "greek capital letter delta" } Δ
133
- .character{ data: {entity: "#917"}, title: "greek capital letter epsilon" } Ε
134
- .character{ data: {entity: "#918"}, title: "greek capital letter zeta" } Ζ
135
- .character{ data: {entity: "#919"}, title: "greek capital letter eta" } Η
136
- .character{ data: {entity: "#920"}, title: "greek capital letter theta" } Θ
137
- .character{ data: {entity: "#921"}, title: "greek capital letter iota" } Ι
138
- .character{ data: {entity: "#922"}, title: "greek capital letter kappa" } Κ
139
- .character{ data: {entity: "#923"}, title: "greek capital letter lambda" } Λ
140
- .character{ data: {entity: "#924"}, title: "greek capital letter mu" } Μ
141
- .character{ data: {entity: "#925"}, title: "greek capital letter nu" } Ν
142
- .character{ data: {entity: "#926"}, title: "greek capital letter xi" } Ξ
143
- .character{ data: {entity: "#927"}, title: "greek capital letter omicron" } Ο
144
- .character{ data: {entity: "#928"}, title: "greek capital letter pi" } Π
145
- .character{ data: {entity: "#929"}, title: "greek capital letter rho" } Ρ
146
- .character{ data: {entity: "#931"}, title: "greek capital letter sigma" } Σ
147
- .character{ data: {entity: "#932"}, title: "greek capital letter tau" } Τ
148
- .character{ data: {entity: "#933"}, title: "greek capital letter upsilon" } Υ
149
- .character{ data: {entity: "#934"}, title: "greek capital letter phi" } Φ
150
- .character{ data: {entity: "#935"}, title: "greek capital letter chi" } Χ
151
- .character{ data: {entity: "#936"}, title: "greek capital letter psi" } Ψ
152
- .character{ data: {entity: "#937"}, title: "greek capital letter omega" } Ω
153
- .character{ data: {entity: "#945"}, title: "greek small letter alpha" } α
154
- .character{ data: {entity: "#946"}, title: "greek small letter beta" } β
155
- .character{ data: {entity: "#947"}, title: "greek small letter gamma" } γ
156
- .character{ data: {entity: "#948"}, title: "greek small letter delta" } δ
157
- .character{ data: {entity: "#949"}, title: "greek small letter epsilon" } ε
158
- .character{ data: {entity: "#950"}, title: "greek small letter zeta" } ζ
159
- .character{ data: {entity: "#951"}, title: "greek small letter eta" } η
160
- .character{ data: {entity: "#952"}, title: "greek small letter theta" } θ
161
- .character{ data: {entity: "#953"}, title: "greek small letter iota" } ι
162
- .character{ data: {entity: "#954"}, title: "greek small letter kappa" } κ
163
- .character{ data: {entity: "#955"}, title: "greek small letter lambda" } λ
164
- .character{ data: {entity: "#956"}, title: "greek small letter mu" } μ
165
- .character{ data: {entity: "#957"}, title: "greek small letter nu" } ν
166
- .character{ data: {entity: "#958"}, title: "greek small letter xi" } ξ
167
- .character{ data: {entity: "#959"}, title: "greek small letter omicron" } ο
168
- .character{ data: {entity: "#960"}, title: "greek small letter pi" } π
169
- .character{ data: {entity: "#961"}, title: "greek small letter rho" } ρ
170
- .character{ data: {entity: "#962"}, title: "greek small letter final sigma" } ς
171
- .character{ data: {entity: "#963"}, title: "greek small letter sigma" } σ
172
- .character{ data: {entity: "#964"}, title: "greek small letter tau" } τ
173
- .character{ data: {entity: "#965"}, title: "greek small letter upsilon" } υ
174
- .character{ data: {entity: "#966"}, title: "greek small letter phi" } φ
175
- .character{ data: {entity: "#967"}, title: "greek small letter chi" } χ
176
- .character{ data: {entity: "#968"}, title: "greek small letter psi" } ψ
177
- .character{ data: {entity: "#969"}, title: "greek small letter omega" } ω
178
- .character{ data: {entity: "#977"}, title: "greek small letter theta symbol" } ϑ
179
- .character{ data: {entity: "#978"}, title: "greek upsilon with hook symbol" } ϒ
180
- .character{ data: {entity: "#982"}, title: "greek pi symbol" } ϖ
181
- .character{ data: {entity: "#8226"}, title: "bullet (black small circle)" } •
182
- .character{ data: {entity: "#8230"}, title: "horizontal ellipsis" } …
183
- .character{ data: {entity: "#8242"}, title: "prime (minutes/feet)" } ′
184
- .character{ data: {entity: "#8243"}, title: "double prime (seconds/inches)" } ″
185
- .character{ data: {entity: "#8254"}, title: "overline" } ‾
186
- .character{ data: {entity: "#8260"}, title: "fraction slash" } ⁄
187
- .character{ data: {entity: "#8472"}, title: "Weierstrass p" } ℘
188
- .character{ data: {entity: "#8465"}, title: "imaginary part" } ℑ
189
- .character{ data: {entity: "#8476"}, title: "real part symbol" } ℜ
190
- .character{ data: {entity: "#8482"}, title: "trade mark sign" } ™
191
- .character{ data: {entity: "#8501"}, title: "first transfinite cardinal" } ℵ
192
- .character{ data: {entity: "#8592"}, title: "leftwards arrow" } ←
193
- .character{ data: {entity: "#8593"}, title: "upwards arrow" } ↑
194
- .character{ data: {entity: "#8594"}, title: "rightwards arrow" } →
195
- .character{ data: {entity: "#8595"}, title: "downwards arrow" } ↓
196
- .character{ data: {entity: "#8596"}, title: "left right arrow" } ↔
197
- .character{ data: {entity: "#8629"}, title: "downwards arrow with corner leftwards" } ↵
198
- .character{ data: {entity: "#8656"}, title: "leftwards double arrow" } ⇐
199
- .character{ data: {entity: "#8657"}, title: "upwards double arrow" } ⇑
200
- .character{ data: {entity: "#8658"}, title: "rightwards double arrow" } ⇒
201
- .character{ data: {entity: "#8659"}, title: "downwards double arrow" } ⇓
202
- .character{ data: {entity: "#8660"}, title: "left right double arrow" } ⇔
203
- .character{ data: {entity: "#8704"}, title: "for all" } ∀
204
- .character{ data: {entity: "#8706"}, title: "partial differential" } ∂
205
- .character{ data: {entity: "#8707"}, title: "there exists" } ∃
206
- .character{ data: {entity: "#8709"}, title: "empty set (null set/diameter)" } ∅
207
- .character{ data: {entity: "#8711"}, title: "nabla (backward difference)" } ∇
208
- .character{ data: {entity: "#8712"}, title: "element of" } ∈
209
- .character{ data: {entity: "#8713"}, title: "not an element of" } ∉
210
- .character{ data: {entity: "#8715"}, title: "contains as member" } ∋
211
- .character{ data: {entity: "#8719"}, title: "n-ary product (product sign)" } ∏
212
- .character{ data: {entity: "#8721"}, title: "n-ary sumation" } ∑
213
- .character{ data: {entity: "#8722"}, title: "minus sign" } −
214
- .character{ data: {entity: "#8727"}, title: "asterisk operator" } ∗
215
- .character{ data: {entity: "#8730"}, title: "square root (radical sign)" } √
216
- .character{ data: {entity: "#8733"}, title: "proportional to" } ∝
217
- .character{ data: {entity: "#8734"}, title: "infinity" } ∞
218
- .character{ data: {entity: "#8736"}, title: "angle" } ∠
219
- .character{ data: {entity: "#8743"}, title: "logical and (wedge)" } ∧
220
- .character{ data: {entity: "#8744"}, title: "logical or (vee)" } ∨
221
- .character{ data: {entity: "#8745"}, title: "intersection (cap)" } ∩
222
- .character{ data: {entity: "#8746"}, title: "union (cup)" } ∪
223
- .character{ data: {entity: "#8747"}, title: "integral" } ∫
224
- .character{ data: {entity: "#8756"}, title: "therefore" } ∴
225
- .character{ data: {entity: "#8764"}, title: "tilde operator (varies with/similar to)" } ∼
226
- .character{ data: {entity: "#8773"}, title: "approximately equal to" } ≅
227
- .character{ data: {entity: "#8776"}, title: "almost equal to (asymptotic to)" } ≈
228
- .character{ data: {entity: "#8800"}, title: "not equal to" } ≠
229
- .character{ data: {entity: "#8801"}, title: "identical to" } ≡
230
- .character{ data: {entity: "#8804"}, title: "less-than or equal to" } ≤
231
- .character{ data: {entity: "#8805"}, title: "greater-than or equal to" } ≥
232
- .character{ data: {entity: "#8834"}, title: "subset of" } ⊂
233
- .character{ data: {entity: "#8835"}, title: "superset of" } ⊃
234
- .character{ data: {entity: "#8836"}, title: "not a subset of" } ⊄
235
- .character{ data: {entity: "#8838"}, title: "subset of or equal to" } ⊆
236
- .character{ data: {entity: "#8839"}, title: "superset of or equal to" } ⊇
237
- .character{ data: {entity: "#8853"}, title: "circled plus (direct sum)" } ⊕
238
- .character{ data: {entity: "#8855"}, title: "circled times (vector product)" } ⊗
239
- .character{ data: {entity: "#8869"}, title: "up tack (orthogonal to/perpendicular)" } ⊥
240
- .character{ data: {entity: "#8901"}, title: "dot operator" } ⋅
241
- .character{ data: {entity: "#8968"}, title: "left ceiling (apl upstile)" } ⌈
242
- .character{ data: {entity: "#8969"}, title: "right ceiling" } ⌉
243
- .character{ data: {entity: "#8970"}, title: "left floor (apl downstile)" } ⌊
244
- .character{ data: {entity: "#8971"}, title: "right floor" } ⌋
245
- .character{ data: {entity: "#9001"}, title: "left-pointing angle bracket (bra)" } 〈
246
- .character{ data: {entity: "#9002"}, title: "right-pointing angle bracket (ket)" } 〉
247
- .character{ data: {entity: "#9674"}, title: "lozenge" } ◊
248
- .character{ data: {entity: "#9824"}, title: "black spade suit" } ♠
249
- .character{ data: {entity: "#9827"}, title: "black club suit (shamrock)" } ♣
250
- .character{ data: {entity: "#9829"}, title: "black heart suit (valentine)" } ♥
251
- .character{ data: {entity: "#9830"}, title: "black diamond suit" } ♦
252
- .character{ data: {entity: "#x2603"}, title: "snowman" } ☃
@@ -1,8 +0,0 @@
1
- = semantic_form_for 'htmlEditor', { html: { id: 'mercury_htmlEditor', style: 'width:650px' } } do |f|
2
-
3
- %textarea.mercury-modal-pane-container{ rows: '5' }
4
-
5
- .mercury-modal-controls
6
-
7
- = f.buttons do
8
- = f.commit_button 'Save and Replace'
@@ -1,31 +0,0 @@
1
- = semantic_form_for 'link', { html: { id: 'mercury_link', style: 'width:600px' } } do |f|
2
-
3
- .mercury-modal-pane-container
4
- .mercury-modal-pane
5
-
6
- = f.inputs id: 'link_text_container' do
7
- = f.input :text, required: false, label: 'Link Content'
8
-
9
- = f.inputs 'Standard Links' do
10
- = f.input :external_url, required: false, input_html: { class: 'selectable' },
11
- label: '<input name="link_type" type="radio" value="external_url" checked="checked"/>URL'.html_safe
12
-
13
- = f.inputs 'Index / Bookmark Links' do
14
- = f.input :existing_bookmark, as: :select, required: false, input_html: { class: 'selectable' }, collection: [], include_blank: false,
15
- label: '<input name="link_type" type="radio" value="existing_bookmark"/>Existing Links'.html_safe
16
- = f.input :new_bookmark, required: false, input_html: { class: 'selectable' },
17
- label: '<input name="link_type" type="radio" value="new_bookmark"/>Bookmark'.html_safe
18
-
19
- = f.inputs 'Options' do
20
- = f.input :target, as: :select, required: false, label: 'Link Target',
21
- include_blank: 'Self (the same window or tab)',
22
- collection: [['Blank (a new window or tab)', '_blank'], ['Top (removes any frames)', '_top'], ['Popup Window (javascript new window popup)', 'popup']]
23
-
24
- #popup_options.link-target-options{ style: 'display:none' }
25
- = f.input :popup_width, required: false, label: 'Popup Width'
26
- = f.input :popup_height, required: false, label: 'Popup Height'
27
-
28
- .mercury-modal-controls
29
-
30
- = f.buttons do
31
- = f.commit_button 'Insert Link'
@@ -1,33 +0,0 @@
1
- = semantic_form_for 'media', { html: { id: 'mercury_media', style: 'width:600px' } } do |f|
2
-
3
- .mercury-modal-pane-container
4
- .mercury-modal-pane
5
-
6
- = f.inputs 'Images' do
7
- = f.input :image_url, required: false, input_html: { class: 'selectable' },
8
- label: '<input name="media_type" type="radio" value="image_url" checked="checked"/>URL'.html_safe
9
-
10
- = f.inputs 'Videos' do
11
- = f.input :youtube_url, required: false, input_html: { class: 'selectable' },
12
- label: '<input name="media_type" type="radio" value="youtube_url"/>YouTube Share URL'.html_safe
13
- = f.input :vimeo_url, required: false, input_html: { class: 'selectable' },
14
- label: '<input name="media_type" type="radio" value="vimeo_url"/>Vimeo URL'.html_safe
15
-
16
- = f.inputs 'Options' do
17
-
18
- #image_url.media-options
19
- = f.input :image_alignment, as: :select, required: false, label: 'Alignment', include_blank: 'None',
20
- collection: [['Left', 'left'], ['Right', 'right'], ['Top', 'top'], ['Middle', 'middle'], ['Bottom', 'bottom'], ['Absolute Middle', 'absmiddle'], ['Absolute Bottom', 'absbottom']]
21
-
22
- #youtube_url.media-options{ :style => 'display:none' }
23
- = f.input :youtube_width, required: false, label: 'Width', input_html: { value: '560' }
24
- = f.input :youtube_height, required: false, label: 'Height', input_html: { value: '349' }
25
-
26
- #vimeo_url.media-options{ :style => 'display:none' }
27
- = f.input :vimeo_width, required: false, label: 'Width', input_html: { value: '400' }
28
- = f.input :vimeo_height, required: false, label: 'Height', input_html: { value: '225' }
29
-
30
- .mercury-modal-controls
31
-
32
- = f.buttons do
33
- = f.commit_button 'Insert Media'
@@ -1,4 +0,0 @@
1
- #mercury_sanitizer{ style: 'width:450px' }
2
- .information It looks like you've pasted directly from Microsoft Office!<br/><br/>Sadly though, your browser wasn't able to properly handle what you pasted. But that's ok, because I've sanitized it for you!
3
- %textarea{ rows: '20', wrap: 'off' }
4
- %strong You can just copy and paste the sanitized content that appears above.
@@ -1,49 +0,0 @@
1
- = semantic_form_for 'table', { html: { id: 'mercury_table', style: 'width:700px' } } do |f|
2
-
3
- .mercury-modal-pane-container
4
- .mercury-modal-pane
5
-
6
- #table_display
7
-
8
- %table{ border: 1, cellspacing: 0 }
9
- %tr
10
- %td
11
- %td
12
- %td
13
- %tr
14
- %td
15
- %td
16
- %td
17
-
18
- #table_options
19
- = f.inputs do
20
- %li{ class: "select input optional", id: "table_rows_input" }
21
- %label{ for: "table_rows" } Rows
22
- %input{ type: 'button', name: 'insertRowBefore', class: 'action', value: 'Add Before' }/
23
- %input{ type: 'button', name: 'insertRowAfter', class: 'action', value: 'Add After' }/
24
- %input{ type: 'button', name: 'deleteRow', class: 'action', value: 'Remove' }/
25
- %li{ class: "select input optional", id: "table_columns_input" }
26
- %label{ for: "table_columns" } Columns
27
- %input{ type: 'button', name: 'insertColumnBefore', class: 'action', value: 'Add Before' }/
28
- %input{ type: 'button', name: 'insertColumnAfter', class: 'action', value: 'Add After' }/
29
- %input{ type: 'button', name: 'deleteColumn', class: 'action', value: 'Remove' }/
30
- %hr
31
- %li{ class: "select input optional", id: "table_row_adjust_input" }
32
- %label{ for: "table_row_adjust" } Row Span
33
- %input{ type: 'button', name: 'increaseRowspan', class: 'action', value: '+' }/
34
- %input{ type: 'button', name: 'decreaseRowspan', class: 'action', value: '-' }/
35
- %li{ class: "select input optional", id: "table_column_adjust_input" }
36
- %label{ for: "table_column_adjust" } Column Span
37
- %input{ type: 'button', name: 'increaseColspan', class: 'action', value: '+' }/
38
- %input{ type: 'button', name: 'decreaseColspan', class: 'action', value: '-' }/
39
-
40
- = f.inputs 'Options' do
41
- = f.input :alignment, as: :select, required: false, include_blank: 'None',
42
- collection: [['Left', 'left'], ['Right', 'right']]
43
- = f.input :border, required: false, input_html: { value: 1 }
44
- = f.input :spacing, required: false, input_html: { value: 0 }
45
-
46
- .mercury-modal-controls
47
-
48
- = f.buttons do
49
- = f.commit_button 'Insert Table'
@@ -1,79 +0,0 @@
1
- .mercury-color-picker
2
- .picker{ style: "background:#FFFFFF" }
3
- .picker{ style: "background:#FFCCCC" }
4
- .picker{ style: "background:#FFCC99" }
5
- .picker{ style: "background:#FFFF99" }
6
- .picker{ style: "background:#FFFFCC" }
7
- .picker{ style: "background:#99FF99" }
8
- .picker{ style: "background:#99FFFF" }
9
- .picker{ style: "background:#CCFFFF" }
10
- .picker{ style: "background:#CCCCFF" }
11
- .picker{ style: "background:#FFCCFF" }
12
-
13
- .picker{ style: "background:#CCCCCC" }
14
- .picker{ style: "background:#FF6666" }
15
- .picker{ style: "background:#FF9966" }
16
- .picker{ style: "background:#FFFF66" }
17
- .picker{ style: "background:#FFFF33" }
18
- .picker{ style: "background:#66FF99" }
19
- .picker{ style: "background:#33FFFF" }
20
- .picker{ style: "background:#66FFFF" }
21
- .picker{ style: "background:#9999FF" }
22
- .picker{ style: "background:#FF99FF" }
23
-
24
- .picker{ style: "background:#C0C0C0" }
25
- .picker{ style: "background:#FF0000" }
26
- .picker{ style: "background:#FF9900" }
27
- .picker{ style: "background:#FFCC66" }
28
- .picker{ style: "background:#FFFF00" }
29
- .picker{ style: "background:#33FF33" }
30
- .picker{ style: "background:#66CCCC" }
31
- .picker{ style: "background:#33CCFF" }
32
- .picker{ style: "background:#6666CC" }
33
- .picker{ style: "background:#CC66CC" }
34
-
35
- .picker{ style: "background:#999999" }
36
- .picker{ style: "background:#CC0000" }
37
- .picker{ style: "background:#FF6600" }
38
- .picker{ style: "background:#FFCC33" }
39
- .picker{ style: "background:#FFCC00" }
40
- .picker{ style: "background:#33CC00" }
41
- .picker{ style: "background:#00CCCC" }
42
- .picker{ style: "background:#3366FF" }
43
- .picker{ style: "background:#6633FF" }
44
- .picker{ style: "background:#CC33CC" }
45
-
46
- .picker{ style: "background:#666666" }
47
- .picker{ style: "background:#990000" }
48
- .picker{ style: "background:#CC6600" }
49
- .picker{ style: "background:#CC9933" }
50
- .picker{ style: "background:#999900" }
51
- .picker{ style: "background:#009900" }
52
- .picker{ style: "background:#339999" }
53
- .picker{ style: "background:#3333FF" }
54
- .picker{ style: "background:#6600CC" }
55
- .picker{ style: "background:#993399" }
56
-
57
- .picker{ style: "background:#333333" }
58
- .picker{ style: "background:#660000" }
59
- .picker{ style: "background:#993300" }
60
- .picker{ style: "background:#996633" }
61
- .picker{ style: "background:#666600" }
62
- .picker{ style: "background:#006600" }
63
- .picker{ style: "background:#336666" }
64
- .picker{ style: "background:#000099" }
65
- .picker{ style: "background:#333399" }
66
- .picker{ style: "background:#663366" }
67
-
68
- .picker{ style: "background:#000000" }
69
- .picker{ style: "background:#330000" }
70
- .picker{ style: "background:#663300" }
71
- .picker{ style: "background:#663333" }
72
- .picker{ style: "background:#333300" }
73
- .picker{ style: "background:#003300" }
74
- .picker{ style: "background:#003333" }
75
- .picker{ style: "background:#000066" }
76
- .picker{ style: "background:#330099" }
77
- .picker{ style: "background:#330033" }
78
-
79
- .last-picked Last Color Picked