kiteditor 1.0.12 → 1.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. data/{lib/generators/mercury/install/images/templates → app/controllers/mercury}/images_controller.rb +0 -0
  2. data/{lib/generators/mercury/install/images/templates/ar_paperclip_image.rb → app/models/mercury/image.rb} +0 -7
  3. data/app/views/layouts/mercury.html.erb +20 -10
  4. data/app/views/mercury/modals/character.html +1 -1
  5. data/app/views/mercury/modals/htmleditor.html +7 -3
  6. data/app/views/mercury/modals/link.html +51 -37
  7. data/app/views/mercury/modals/media.html +0 -102
  8. data/app/views/mercury/modals/table.html +73 -79
  9. data/app/views/mercury/panels/snippets.html +1 -6
  10. data/app/views/mercury/snippets/example/options.html.erb +27 -23
  11. data/{lib/generators/mercury/install/images/templates/ar_paperclip_image_migration.rb → db/migrate/20110526035601_create_mercury_images.rb} +0 -0
  12. data/features/loading/loading.feature +2 -5
  13. data/features/loading/user_interface.feature +7 -9
  14. data/features/regions/{full → editable}/advanced_editing.feature +0 -0
  15. data/features/regions/editable/basic_editing.feature +195 -0
  16. data/features/regions/{full → editable}/inserting_links.feature +19 -20
  17. data/features/regions/{full → editable}/inserting_media.feature +18 -36
  18. data/features/regions/{full → editable}/inserting_snippets.feature +18 -28
  19. data/features/regions/{full → editable}/inserting_special_characters.feature +2 -2
  20. data/features/regions/editable/inserting_tables.feature +109 -0
  21. data/features/regions/{full → editable}/pasting.feature +0 -0
  22. data/features/regions/{full → editable}/uploading_images.feature +0 -0
  23. data/features/regions/{markdown → markupable}/advanced_editing.feature +0 -0
  24. data/features/regions/{markdown → markupable}/basic_editing.feature +0 -0
  25. data/features/regions/{markdown → markupable}/inserting_links.feature +0 -0
  26. data/features/regions/{markdown → markupable}/inserting_media.feature +0 -0
  27. data/features/regions/{markdown → markupable}/inserting_snippets.feature +0 -0
  28. data/features/regions/{markdown → markupable}/inserting_special_characters.feature +0 -0
  29. data/features/regions/{markdown → markupable}/inserting_tables.feature +0 -0
  30. data/features/regions/{image → markupable}/uploading_images.feature +0 -0
  31. data/features/regions/{snippets → snippetable}/advanced_editing.feature +0 -0
  32. data/features/regions/{snippets → snippetable}/basic_editing.feature +0 -0
  33. data/features/regions/{snippets → snippetable}/inserting_snippets.feature +0 -0
  34. data/features/saving/saving.feature +8 -8
  35. data/features/step_definitions/mercury_steps.rb +438 -1
  36. data/features/support/env.rb +1 -11
  37. data/{lib/mercury/cucumber → features}/support/mercury_contents.rb +3 -3
  38. data/{lib/mercury/cucumber → features}/support/mercury_selectors.rb +20 -0
  39. data/features/support/selectors.rb +0 -23
  40. data/lib/generators/mercury/install/install_generator.rb +23 -12
  41. data/lib/generators/mercury/install/{images/templates → templates}/mongoid_paperclip_image.rb +0 -0
  42. data/lib/mercury/authentication.rb +0 -1
  43. data/lib/mercury-rails.rb +2 -1
  44. data/spec/javascripts/mercury/{dialog_spec.coffee → dialog_spec.js.coffee} +12 -11
  45. data/spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee +3 -2
  46. data/spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee +4 -3
  47. data/spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee +3 -2
  48. data/spec/javascripts/mercury/dialogs/snippetpanel_spec.js.coffee +3 -2
  49. data/spec/javascripts/mercury/dialogs/style_spec.js.coffee +3 -2
  50. data/spec/javascripts/mercury/lightview_spec.js.coffee +142 -180
  51. data/spec/javascripts/mercury/mercury_spec.js.coffee +13 -19
  52. data/spec/javascripts/mercury/modal_spec.js.coffee +148 -192
  53. data/spec/javascripts/mercury/modals/htmleditor_spec.js.coffee +5 -4
  54. data/spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee +3 -2
  55. data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +34 -107
  56. data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +26 -106
  57. data/spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee +3 -2
  58. data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +40 -50
  59. data/spec/javascripts/mercury/page_editor_spec.js.coffee +80 -124
  60. data/spec/javascripts/mercury/palette_spec.js.coffee +5 -4
  61. data/spec/javascripts/mercury/panel_spec.js.coffee +12 -9
  62. data/spec/javascripts/mercury/region_spec.js.coffee +17 -22
  63. data/spec/javascripts/mercury/regions/{full_spec.js.coffee → editable_spec.js.coffee} +28 -26
  64. data/spec/javascripts/mercury/regions/{markdown_spec.js.coffee → markupable_spec.js.coffee} +34 -32
  65. data/spec/javascripts/mercury/regions/{snippets_spec.js.coffee → snippetable_spec.js.coffee} +55 -54
  66. data/spec/javascripts/mercury/select_spec.js.coffee +5 -4
  67. data/spec/javascripts/mercury/snippet_spec.js.coffee +16 -92
  68. data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +16 -31
  69. data/spec/javascripts/mercury/statusbar_spec.js.coffee +10 -9
  70. data/spec/javascripts/mercury/table_editor_spec.js.coffee +2 -1
  71. data/spec/javascripts/mercury/toolbar.button_group_spec.js.coffee +9 -7
  72. data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +26 -55
  73. data/spec/javascripts/mercury/toolbar.expander_spec.js.coffee +13 -13
  74. data/spec/javascripts/mercury/toolbar_spec.js.coffee +14 -43
  75. data/spec/javascripts/mercury/tooltip_spec.js.coffee +2 -1
  76. data/spec/javascripts/mercury/uploader_spec.js.coffee +33 -47
  77. data/spec/javascripts/{support/event_simulation.js → spec_helper.js} +2 -0
  78. data/spec/javascripts/{fixtures → templates}/mercury/dialog.html +0 -0
  79. data/spec/javascripts/{fixtures → templates}/mercury/dialogs/backcolor.html +0 -0
  80. data/spec/javascripts/{fixtures → templates}/mercury/dialogs/forecolor.html +0 -0
  81. data/spec/javascripts/{fixtures → templates}/mercury/dialogs/formatblock.html +0 -0
  82. data/spec/javascripts/{fixtures → templates}/mercury/dialogs/snippetpanel.html +0 -0
  83. data/spec/javascripts/{fixtures → templates}/mercury/dialogs/style.html +0 -0
  84. data/spec/javascripts/{fixtures → templates}/mercury/lightview.html +0 -0
  85. data/spec/javascripts/{fixtures → templates}/mercury/modal.html +0 -0
  86. data/spec/javascripts/{fixtures → templates}/mercury/modals/htmleditor.html +0 -0
  87. data/spec/javascripts/{fixtures → templates}/mercury/modals/insertcharacter.html +0 -0
  88. data/spec/javascripts/templates/mercury/modals/insertlink.html +30 -0
  89. data/spec/javascripts/templates/mercury/modals/insertmedia.html +35 -0
  90. data/spec/javascripts/{fixtures → templates}/mercury/modals/insertsnippet.html +0 -0
  91. data/spec/javascripts/templates/mercury/modals/inserttable.html +27 -0
  92. data/spec/javascripts/{fixtures → templates}/mercury/page_editor.html +4 -4
  93. data/spec/javascripts/{fixtures → templates}/mercury/palette.html +0 -0
  94. data/spec/javascripts/{fixtures → templates}/mercury/panel.html +0 -0
  95. data/spec/javascripts/templates/mercury/region.html +2 -0
  96. data/spec/javascripts/templates/mercury/regions/editable.html +3 -0
  97. data/spec/javascripts/templates/mercury/regions/snippetable.html +4 -0
  98. data/spec/javascripts/{fixtures → templates}/mercury/select.html +0 -0
  99. data/spec/javascripts/{fixtures → templates}/mercury/snippet.html +0 -0
  100. data/spec/javascripts/{fixtures → templates}/mercury/snippet_toolbar.html +0 -0
  101. data/spec/javascripts/{fixtures → templates}/mercury/statusbar.html +0 -0
  102. data/spec/javascripts/{fixtures → templates}/mercury/table_editor.html +0 -0
  103. data/spec/javascripts/{fixtures → templates}/mercury/toolbar.button.html +0 -0
  104. data/spec/javascripts/{fixtures → templates}/mercury/toolbar.button_group.html +0 -0
  105. data/spec/javascripts/{fixtures → templates}/mercury/toolbar.expander.html +0 -0
  106. data/spec/javascripts/{fixtures → templates}/mercury/toolbar.html +0 -0
  107. data/spec/javascripts/{fixtures → templates}/mercury/tooltip.html +0 -0
  108. data/spec/javascripts/{fixtures → templates}/mercury/uploader.html +0 -0
  109. data/{app → vendor}/assets/images/mercury/button.png +0 -0
  110. data/{app → vendor}/assets/images/mercury/close.png +0 -0
  111. data/{app → vendor}/assets/images/mercury/loading-dark.gif +0 -0
  112. data/{app → vendor}/assets/images/mercury/loading-light.gif +0 -0
  113. data/{app → vendor}/assets/images/mercury/missing-image.png +0 -0
  114. data/{app → vendor}/assets/images/mercury/search-icon.png +0 -0
  115. data/{app → vendor}/assets/images/mercury/temp-logo.png +0 -0
  116. data/{app/assets/javascripts → vendor/assets/javascripts/mercury/dependencies}/jquery-1.7.js +0 -0
  117. data/{app → vendor}/assets/javascripts/mercury/dependencies/jquery-ui-1.8.13.custom.js +0 -0
  118. data/{app → vendor}/assets/javascripts/mercury/dependencies/jquery.additions.js +13 -103
  119. data/{app → vendor}/assets/javascripts/mercury/dependencies/jquery.htmlClean.js +0 -0
  120. data/{app → vendor}/assets/javascripts/mercury/dependencies/liquidmetal.js +0 -0
  121. data/{app → vendor}/assets/javascripts/mercury/dependencies/showdown.js +0 -0
  122. data/{app → vendor}/assets/javascripts/mercury/dialog.js.coffee +0 -0
  123. data/{app → vendor}/assets/javascripts/mercury/dialogs/backcolor.js.coffee +0 -0
  124. data/{app → vendor}/assets/javascripts/mercury/dialogs/forecolor.js.coffee +1 -1
  125. data/{app → vendor}/assets/javascripts/mercury/dialogs/formatblock.js.coffee +0 -0
  126. data/{app → vendor}/assets/javascripts/mercury/dialogs/snippetpanel.js.coffee +1 -1
  127. data/{app → vendor}/assets/javascripts/mercury/dialogs/style.js.coffee +0 -0
  128. data/{app → vendor}/assets/javascripts/mercury/finalize.js.coffee +0 -0
  129. data/{app → vendor}/assets/javascripts/mercury/history_buffer.js.coffee +0 -0
  130. data/{app → vendor}/assets/javascripts/mercury/lightview.js.coffee +17 -38
  131. data/{features/regions/markdown/uploading_images.feature → vendor/assets/javascripts/mercury/locales/da.locale.js.coffee} +0 -0
  132. data/{app → vendor}/assets/javascripts/mercury/locales/de.locale.js.coffee +10 -4
  133. data/{app → vendor}/assets/javascripts/mercury/locales/es.locale.js.coffee +9 -3
  134. data/{app → vendor}/assets/javascripts/mercury/locales/example.local.js.coffee +5 -3
  135. data/{app → vendor}/assets/javascripts/mercury/locales/fr.locale.js.coffee +9 -3
  136. data/{app → vendor}/assets/javascripts/mercury/locales/it.locale.js.coffee +9 -3
  137. data/{app → vendor}/assets/javascripts/mercury/locales/ko.local.js.coffee +10 -4
  138. data/{app → vendor}/assets/javascripts/mercury/locales/nl.locale.js.coffee +9 -3
  139. data/{app → vendor}/assets/javascripts/mercury/locales/pt.locale.js.coffee +9 -3
  140. data/{app → vendor}/assets/javascripts/mercury/locales/sv.local.js.coffee +9 -3
  141. data/{app → vendor}/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee +9 -3
  142. data/{app → vendor}/assets/javascripts/mercury/mercury.js.coffee +1 -10
  143. data/{app → vendor}/assets/javascripts/mercury/modal.js.coffee +40 -62
  144. data/{app → vendor}/assets/javascripts/mercury/modals/htmleditor.js.coffee +2 -3
  145. data/{app → vendor}/assets/javascripts/mercury/modals/insertcharacter.js.coffee +0 -1
  146. data/{app → vendor}/assets/javascripts/mercury/modals/insertsnippet.js.coffee +0 -2
  147. data/vendor/assets/javascripts/mercury/modals/inserttable.js.coffee +54 -0
  148. data/{app → vendor}/assets/javascripts/mercury/native_extensions.js.coffee +6 -0
  149. data/{app → vendor}/assets/javascripts/mercury/page_editor.js.coffee +50 -84
  150. data/{app → vendor}/assets/javascripts/mercury/palette.js.coffee +1 -1
  151. data/{app → vendor}/assets/javascripts/mercury/panel.js.coffee +2 -3
  152. data/{app → vendor}/assets/javascripts/mercury/plugins/save_as_xml/mercury/page_editor.js.coffee +2 -2
  153. data/{app → vendor}/assets/javascripts/mercury/plugins/save_as_xml/plugin.js +0 -0
  154. data/{app → vendor}/assets/javascripts/mercury/region.js.coffee +17 -18
  155. data/{app/assets/javascripts/mercury/regions/full.js.coffee → vendor/assets/javascripts/mercury/regions/editable.js.coffee} +31 -41
  156. data/{app/assets/javascripts/mercury/regions/markdown.js.coffee → vendor/assets/javascripts/mercury/regions/markupable.js.coffee} +24 -29
  157. data/{app → vendor}/assets/javascripts/mercury/regions/simple.js.coffee +54 -11
  158. data/{app/assets/javascripts/mercury/regions/snippets.js.coffee → vendor/assets/javascripts/mercury/regions/snippetable.js.coffee} +9 -10
  159. data/{app → vendor}/assets/javascripts/mercury/select.js.coffee +1 -1
  160. data/{app → vendor}/assets/javascripts/mercury/snippet_toolbar.js.coffee +6 -19
  161. data/{app → vendor}/assets/javascripts/mercury/statusbar.js.coffee +0 -0
  162. data/{app → vendor}/assets/javascripts/mercury/support/history.js +0 -0
  163. data/{app → vendor}/assets/javascripts/mercury/table_editor.js.coffee +0 -16
  164. data/{app → vendor}/assets/javascripts/mercury/toolbar.button.js.coffee +30 -45
  165. data/{app → vendor}/assets/javascripts/mercury/toolbar.button_group.js.coffee +2 -2
  166. data/{app → vendor}/assets/javascripts/mercury/toolbar.expander.js.coffee +4 -4
  167. data/{app → vendor}/assets/javascripts/mercury/toolbar.js.coffee +6 -10
  168. data/{app → vendor}/assets/javascripts/mercury/tooltip.js.coffee +0 -0
  169. data/{app → vendor}/assets/javascripts/mercury/uploader.js.coffee +19 -37
  170. data/{app → vendor}/assets/javascripts/mercury.js +87 -60
  171. data/vendor/assets/javascripts/mercury_loader.js +193 -0
  172. data/vendor/assets/javascripts/mercury_overrides.js +6 -0
  173. data/{app → vendor}/assets/stylesheets/mercury/all_images.css.erb +2 -6
  174. data/{app → vendor}/assets/stylesheets/mercury/dialog.css +8 -21
  175. data/{app → vendor}/assets/stylesheets/mercury/lightview.css +56 -6
  176. data/vendor/assets/stylesheets/mercury/mercury.css +151 -0
  177. data/{app → vendor}/assets/stylesheets/mercury/modal.css +32 -15
  178. data/{app → vendor}/assets/stylesheets/mercury/statusbar.css +0 -0
  179. data/{app → vendor}/assets/stylesheets/mercury/toolbar.css +1 -4
  180. data/{app → vendor}/assets/stylesheets/mercury/tooltip.css +0 -0
  181. data/{app → vendor}/assets/stylesheets/mercury/uploader.css +4 -4
  182. data/{app → vendor}/assets/stylesheets/mercury.css +5 -1
  183. data/vendor/assets/stylesheets/mercury_overrides.css +17 -0
  184. metadata +197 -367
  185. data/POST_INSTALL +0 -21
  186. data/app/assets/images/mercury/default-snippet.png +0 -0
  187. data/app/assets/images/mercury/toolbar/editable/buttons.png +0 -0
  188. data/app/assets/images/mercury/toolbar/primary/_expander.png +0 -0
  189. data/app/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
  190. data/app/assets/images/mercury/toolbar/primary/action.png +0 -0
  191. data/app/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
  192. data/app/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
  193. data/app/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
  194. data/app/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
  195. data/app/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
  196. data/app/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
  197. data/app/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
  198. data/app/assets/images/mercury/toolbar/primary/preview.png +0 -0
  199. data/app/assets/images/mercury/toolbar/primary/redo.png +0 -0
  200. data/app/assets/images/mercury/toolbar/primary/save.png +0 -0
  201. data/app/assets/images/mercury/toolbar/primary/snippetpanel.png +0 -0
  202. data/app/assets/images/mercury/toolbar/primary/tools.png +0 -0
  203. data/app/assets/images/mercury/toolbar/primary/undo.png +0 -0
  204. data/app/assets/images/mercury/toolbar/primary/user.png +0 -0
  205. data/app/assets/images/mercury/toolbar/snippets/buttons.png +0 -0
  206. data/app/assets/javascripts/mercury/locales/ar.locale.js.coffee +0 -201
  207. data/app/assets/javascripts/mercury/locales/da.locale.js.coffee +0 -208
  208. data/app/assets/javascripts/mercury/locales/hu.locale.js.coffee +0 -209
  209. data/app/assets/javascripts/mercury/locales/pl.locale.js.coffee +0 -213
  210. data/app/assets/javascripts/mercury/locales/ru.locale.js.coffee +0 -200
  211. data/app/assets/javascripts/mercury/locales/uk.locale.js.coffee +0 -200
  212. data/app/assets/javascripts/mercury/locales/zh.local.js.coffee +0 -203
  213. data/app/assets/javascripts/mercury/mercury-compiled.js +0 -10720
  214. data/app/assets/javascripts/mercury/modals/insertlink.js.coffee +0 -152
  215. data/app/assets/javascripts/mercury/modals/insertmedia.js.coffee +0 -132
  216. data/app/assets/javascripts/mercury/modals/inserttable.js.coffee +0 -68
  217. data/app/assets/javascripts/mercury/regions/image.js.coffee +0 -93
  218. data/app/assets/javascripts/mercury/snippet.js.coffee +0 -136
  219. data/app/assets/stylesheets/_mercury-bootstrap-overrides.scss +0 -61
  220. data/app/assets/stylesheets/_mercury-sass.scss +0 -33
  221. data/app/assets/stylesheets/mercury/bootstrap-ish.css +0 -1367
  222. data/app/assets/stylesheets/mercury/bootstrap-overrides.css +0 -61
  223. data/app/assets/stylesheets/mercury/mercury.css +0 -43
  224. data/app/helpers/mercury_helper.rb +0 -7
  225. data/app/views/layouts/mercury.html.haml +0 -19
  226. data/app/views/layouts/mercury.html.slim +0 -19
  227. data/app/views/mercury/snippets/no_options/preview.html.erb +0 -1
  228. data/config/routes.rb +0 -9
  229. data/features/generators/authentication.feature +0 -10
  230. data/features/generators/images.feature +0 -41
  231. data/features/generators/install.feature +0 -21
  232. data/features/regions/full/basic_editing.feature +0 -198
  233. data/features/regions/full/inserting_tables.feature +0 -109
  234. data/features/regions/simple/basic_editing.feature +0 -5
  235. data/features/step_definitions/custom_web_steps.rb +0 -22
  236. data/features/step_definitions/generator_steps.rb +0 -23
  237. data/features/support/aruba.rb +0 -28
  238. data/lib/generators/mercury/install/authentication/authentication_generator.rb +0 -17
  239. data/lib/generators/mercury/install/images/images_generator.rb +0 -47
  240. data/lib/mercury/cucumber/step_definitions/mercury_steps.rb +0 -408
  241. data/lib/mercury/cucumber/step_definitions.rb +0 -13
  242. data/lib/mercury/engine.rb +0 -19
  243. data/lib/mercury/rails.rb +0 -5
  244. data/lib/mercury/version.rb +0 -3
  245. data/spec/dummy/Rakefile +0 -7
  246. data/spec/dummy/app/assets/javascripts/application.js +0 -0
  247. data/spec/dummy/app/assets/javascripts/prototype.js +0 -6082
  248. data/spec/dummy/app/assets/stylesheets/application.css.scss +0 -110
  249. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  250. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  251. data/spec/dummy/app/views/layouts/mercury.html.erb +0 -28
  252. data/spec/dummy/config/application.rb +0 -58
  253. data/spec/dummy/config/boot.rb +0 -10
  254. data/spec/dummy/config/database.yml +0 -10
  255. data/spec/dummy/config/environment.rb +0 -5
  256. data/spec/dummy/config/environments/development.rb +0 -37
  257. data/spec/dummy/config/environments/production.rb +0 -67
  258. data/spec/dummy/config/environments/test.rb +0 -37
  259. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  260. data/spec/dummy/config/initializers/inflections.rb +0 -15
  261. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  262. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  263. data/spec/dummy/config/initializers/session_store.rb +0 -8
  264. data/spec/dummy/config/initializers/teabag.rb +0 -9
  265. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  266. data/spec/dummy/config/locales/en.yml +0 -5
  267. data/spec/dummy/config/routes.rb +0 -5
  268. data/spec/dummy/config.ru +0 -4
  269. data/spec/dummy/db/.gitkeep +0 -0
  270. data/spec/dummy/public/500.html +0 -25
  271. data/spec/dummy/public/blank.html +0 -1
  272. data/spec/dummy/public/favicon.ico +0 -0
  273. data/spec/dummy/public/images/bunny.gif +0 -0
  274. data/spec/dummy/public/images/bunny2.jpg +0 -0
  275. data/spec/dummy/public/index.html +0 -279
  276. data/spec/dummy/script/rails +0 -6
  277. data/spec/javascripts/fixtures/mercury/modals/insertlink.html +0 -67
  278. data/spec/javascripts/fixtures/mercury/modals/insertmedia.html +0 -87
  279. data/spec/javascripts/fixtures/mercury/modals/inserttable.html +0 -73
  280. data/spec/javascripts/fixtures/mercury/region.html +0 -6
  281. data/spec/javascripts/fixtures/mercury/regions/full.html +0 -1
  282. data/spec/javascripts/fixtures/mercury/regions/image.html +0 -1
  283. data/spec/javascripts/fixtures/mercury/regions/markdown.html +0 -1
  284. data/spec/javascripts/fixtures/mercury/regions/simple.html +0 -1
  285. data/spec/javascripts/fixtures/mercury/regions/snippets.html +0 -4
  286. data/spec/javascripts/mercury/regions/image_spec.js.coffee +0 -33
  287. data/spec/javascripts/mercury/regions/simple_spec.js.coffee +0 -32
  288. data/spec/javascripts/spec_helper.coffee +0 -4
  289. data/spec/teabag_env.rb +0 -32
data/POST_INSTALL DELETED
@@ -1,21 +0,0 @@
1
- +============================================================================+
2
- Congratulations, Mercury was successfully installed in your app. Documentation
3
- and other useful info can be found at: https://github.com/jejacks0n/mercury
4
-
5
- Here's a post install checklist:
6
-
7
- * Adjust your application.js & css files to not `require_tree .`
8
-
9
- * Learn about, and change configurations in app/assets/javascripts/mercury.js.
10
-
11
- * If installed, you can make changes to the provided layout and css files too.
12
-
13
- * If you want image processing and uploading (using paperclip by default):
14
-
15
- rails g mercury:install:images (use --orm=mongoid for MongoDB)
16
- bundle
17
- rake db:migrate (if using ActiveRecord)
18
-
19
- * For a basic example of authentication for Mercury, install the example:
20
-
21
- rails g mercury:install:authentication
@@ -1,201 +0,0 @@
1
- Mercury.I18n['ar'] =
2
- # ## Javascript Strings
3
-
4
- # ### Default Configuration
5
- "Save": "حفظ"
6
- "Save this page": "حفظ الصفحة"
7
- "Preview": "معاينة"
8
- "Preview this page": "معاينة هذه الضفحة"
9
- "Undo": "تراجع"
10
- "Undo your last action": "تراجع عن أخر فعل"
11
- "Redo": "إعادة"
12
- "Redo your last action": "إعادة أخر فعل"
13
- "Link": "رابط"
14
- "Insert Link": "إدراج رابط"
15
- "Media": "ملف ميديا"
16
- "Insert Media (images and videos)": "إدراج ملف ميديا (صور أو فيديو)"
17
- "Table": "جدول"
18
- "Insert Table": "إدراج جدول"
19
- "Character": "حرف"
20
- "Special Characters": "حرف مميز "
21
- "Snippet": "قصاصة"
22
- "Snippet Panel": "لوحة قصاصات"
23
- "History": "سجل"
24
- "Page Version History": "نسج مسجلة من الصفحة"
25
- "Notes": "ملاحظات"
26
- "Page Notes": "ملاحظات الصفحة"
27
- "Style": "نمط"
28
- "Block Format": "تنسيق كتلة"
29
- "Background Color": "لون الخلفية"
30
- "Text Color": "لون النص"
31
- "Bold": "واضح"
32
- "Italicize": "مائلة"
33
- "Overline": "خط فوق"
34
- "Strikethrough": " خط فى الوسط "
35
- "Underline": "خط تحت"
36
- "Subscript": " نص سفلى"
37
- "Superscript": " نص علوى"
38
- "Align Left": "محاذاة إلى اليسار"
39
- "Center": "محاذاة إلى الوسط"
40
- "Align Right": "محاذاة إلى اليمين"
41
- "Justify Full": "ضبط كامل"
42
- "Unordered List": "قائمة غير مرتبة"
43
- "Numbered List": "قائمة مرقمة"
44
- "Decrease Indentation": "إنقاص المسافة البادئة"
45
- "Increase Indentation": "زيادة المسافة البادئة"
46
- "Insert Table Row": "إدراج صف "
47
- "Insert a table row before the cursor": "إدراج صف قبل المؤشر"
48
- "Insert a table row after the cursor": "إدراج صف بعد المؤشر"
49
- "Delete Table Row": "حذف صف"
50
- "Delete this table row": "حذف هذا الصف"
51
- "Insert Table Column": "إضافة عمود للجدول"
52
- "Insert a table column before the cursor": "إدراج عمود قبل المؤشر"
53
- "Insert a table column after the cursor": "إدراج عمود بعد المؤشر"
54
- "Delete Table Column": "حذف عمود جدول"
55
- "Delete this table column": "حذف هذا العمود"
56
- "Increase Cell Columns": "زيادة أعمدة الخلية"
57
- "Decrease Cell Columns": "إنقاص أعمدة الخلية"
58
- "Increase Cell Rows": "زيادة صفوف الخلية"
59
- "Decrease Cell Rows": "إنقاص صفوف الخلية"
60
- "Horizontal Rule": "مسطرة أفقية"
61
- "Insert a horizontal rule": "إدراج مسطرة أفقية"
62
- "Remove Formatting": "إزالة التنسيق"
63
- "Remove formatting for the selection": "إزالة التنسيق لاختيار"
64
- "Edit HTML": "تعديل ال HTML"
65
- "Edit the HTML content": "تعديل ال HTML"
66
- "Edit Snippet Settings": "تعديل ضبط قصاصة"
67
- "Remove Snippet": "إزالة القصاصات"
68
-
69
- # ### General
70
- # Error Messages
71
- "Mercury.Regions.%s is unsupported in this client. Supported browsers are %s.": "Mercury.Regions.%s غير غير مدعوم فى هذا المتصفح. المتصفحات المدعومة هى %s"
72
- "Mercury.PageEditor can only be instantiated once.": "Mercury.PageEditor لا يمكن إلا أن يمثل مرة واحدة.."
73
- "Opera isn't a fully supported browser, your results may not be optimal.": "أوبرا ليست متصفح متوافق بالكامل، قد لا تكون نتائجك الأمثل."
74
- "Mercury.PageEditor failed to load: %s\n\nPlease try refreshing.": "Mercury.PageEditor غير قاد على تحميل: %s\n\nمن فضلك حدث الصفحة ."
75
- "Region type is malformed, no data-type provided, or \"%s\" is unknown for the \"%s\" region.": "نوع المساحة تالف, لا يوجد نوع , أو \"%s\" غير معروف للمساحة \"%s\""
76
- "Mercury was unable to save to the url: %s": "غير قادر على حفظ الرابط: %s"
77
- "invalid": "باطل"
78
- "can't be blank": "لا يمكن أن تكون فارغة"
79
- # Confirmations
80
- "You have unsaved changes.Are you sure you want to leave without saving them first?": "لديك تغييرات غير محفوظة. هل أنت متأكد أنك تريد أن تترك دون حفظها أولا؟"
81
-
82
- # ### Toolbar / Buttons
83
- # Error Messages
84
- "Unknown button type \"%s\" used for the \"%s\" button.": "نوع زر غير معروف \"%s\" مستخدمة ل \"%s\""
85
- "Unknown button structure -- please provide an array, object, or string for \"%s\".": "بنية زر غير معروفة - يرجى تقديم مجموعة واسعة، كائنات، أو كلمة \"%s\"."
86
-
87
- # ### Modals / Dialogs / Etc.
88
- # Error Messages
89
- "Mercury was unable to load %s for the \"%s\" dialog.": "غير قادر على تحميل %s للنافذة \"%s\"."
90
- "Mercury was unable to load %s for the lightview.": "غير قادر على تحميل %s للضوء."
91
- "Mercury was unable to load %s for the modal.": "غير قادر على تحميل %s للنافذة."
92
-
93
- # ### Snippets
94
- # Error Messages
95
- "Error loading the preview for the \"%s\" snippet.": "خطأ فى تحميل معاينة القصاصة \"%s\"."
96
- # Misc
97
- "Snippet Options": "خيارات القصاصة"
98
-
99
- # ### Uploader
100
- # Error Messages
101
- "Unable to process response: %s": "غير قادر على معالجة الرد: %s"
102
- "Error: Unable to upload the file": "خطأ: غير قادر على رفع الملف"
103
- "Malformed response from server": "استجابة من الخادم متلوفة"
104
- "Too large": "كبير جدا"
105
- "Unsupported format": "تنسيق غير مدعوم"
106
- # Statuses
107
- "Processing...": "معالجة..."
108
- "Uploading...": "رفع..."
109
- "Aborted": "ملغى"
110
- "Successfully uploaded...": "تم الرفع بنجاح..."
111
- "Name: %s": "اسم: %s"
112
- "Size: %s": "حجم: %s"
113
- "Type: %s": "نوع: %s"
114
-
115
- # Statusbar
116
- "Path:": "مسار:"
117
-
118
-
119
- # ## HTML / Template Strings
120
-
121
- # ### Modals
122
- # Insert Link Modal (link.html)
123
- "Link Content": "محتوى الرابط"
124
- "Standard Links": "رابط قياسى"
125
- "URL": "عنوان"
126
- "Index / Bookmark Links": "روابط فهرس / الإشارة المرجعية"
127
- "Existing Links": "الروابط الموجودة"
128
- "Bookmark": "الإشارة المرجعية"
129
- "Options": "خيارات"
130
- "Link Target": "هدف الرابط"
131
- "Self (the same window or tab)": "الذاتية (نفس النافذة أو التبويب)"
132
- "Blank (a new window or tab)": "فارغة (نافذة جديدة أو علامة التبويب)"
133
- "Top (removes any frames)": "أعلى (يزيل أي إطارات)"
134
- "Popup Window (javascript new window popup)": "نافذة منبثقة (جافا سكريبت نافذة منبثقة جديد)"
135
- "Popup Width": "عرض النافذة المنبثقة"
136
- "Popup Height": "طول النافذة المنبثقة"
137
-
138
- # Insert Media Modal (media.html)
139
- "Images": "صور"
140
- "Videos": "فيديو"
141
- "YouTube URL": "رابط يوتيوب"
142
- "Vimeo URL": "رابط فيميو"
143
- "Alignment": "المحاذاة"
144
- "None": "لا شيء"
145
- "Left": "يسار"
146
- "Right": "يمين"
147
- "Top": "أعلى"
148
- "Middle": "وسط"
149
- "Bottom": "أسفل"
150
- "Absolute Middle": "أوسط مطلق"
151
- "Absolute Bottom": "أسفل مطلق"
152
- "Width": "عرض"
153
- "Height": "ارتفاع"
154
- "Insert Media": "إدراج ملف ميديا"
155
-
156
- # Insert Table Modal (table.html)
157
- "Rows": "صفوف"
158
- "Add Before": "إضافة قبل"
159
- "Add After": "إضافة بعد"
160
- "Remove": "حذف"
161
- "Columns": "أعمدة"
162
- "Row Span": "إمتداد الصف"
163
- "Column Span": "إمتداد العمود"
164
- "Border": "الحدود"
165
- "Spacing": "تباعد"
166
-
167
- # HTML Editor Modal (htmleditor.html)
168
- "HTML Editor": "HTML محرر"
169
- "Save and Replace": "حفظ واستبدال"
170
-
171
- # ### Dialogs / Etc.
172
- # Color Palettes (forecolor.html, backcolor.html)
173
- "Last Color Picked": "التقطت آخر لون"
174
-
175
- # Block Format Select (formatblock.html)
176
- "Heading 1": "العنوان 1"
177
- "Heading 2": "العنوان 2"
178
- "Heading 3": "العنوان 3"
179
- "Heading 4": "العنوان 4"
180
- "Heading 5": "العنوان 5"
181
- "Heading 6": "العنوان 6"
182
- "Paragraph": "فقرة"
183
- "Blockquote": "قتباس فقرة"
184
- "Formatted": "منسقة"
185
-
186
- # About Mercury Panel (about.html)
187
- "Project Home": "صفحة المشروع"
188
- "Project Source": "مصدر المشروع"
189
-
190
- # ### Demo / Placeholder / Defaults
191
- "The history panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.": "لوحة التواريخ متوقع أن تكن مبرمجة. بما أن هد نسخة تجربية فهى غير محتواه."
192
-
193
- "The notes panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.": "لوحة الملاحظات متوقع أن تكن مبرمجة. بما أن هد نسخة تجربية فهى غير محتواه"
194
-
195
- "Snippet Name": "اسم قصاصة"
196
- "A one or two line long description of what this snippet does.": "وصف سطر واحد أو اثنين عما تفعل هذه القصاصة."
197
-
198
- "First Name": "اﻷسم اﻷول"
199
- "Favorite Beer": "المفضلة"
200
- "Insert Snippet": "إدراج قصاصة"
201
-
@@ -1,208 +0,0 @@
1
- <<<<<<< HEAD:vendor/assets/javascripts/mercury/locales/da.locale.js.coffee
2
- =======
3
- Mercury.I18n['da'] =
4
- # ## Javascript Strings
5
-
6
- # ### Default Configuration
7
- "Save": "Gem"
8
- "Save this page": "Gem denne side"
9
- "Preview": "Forhåndsvisning"
10
- "Preview this page": "Forhåndsvis denne side"
11
- "Undo": "Fortryd"
12
- "Undo your last action": "Fortryd din sidste hændelse"
13
- "Redo": "Gentag"
14
- "Redo your last action": "Gentag din sidste hændelse"
15
- "Link": "Link"
16
- "Insert Link": "Indsæt link"
17
- "Media": "Media"
18
- "Insert Media (images and videos)": "Indsæt media (billeder og videoer)"
19
- "Table": "Tabel"
20
- "Insert Table": "Indsæt Tabel"
21
- "Character": "Tegn"
22
- "Special Characters": "Specialtegn"
23
- "Snippet": "Snippet"
24
- "Snippet Panel": "Snippetpanel"
25
- "History": "Historie"
26
- "Page Version History": "Sidens versionshistorik"
27
- "Notes": "Noter"
28
- "Page Notes": "Sidenoter"
29
- "Style": "Stil"
30
- "Block Format": "Blokformat"
31
- "Background Color": "Baggrundsfarve"
32
- "Text Color": "Tekstfarve"
33
- "Bold": "Fed"
34
- "Italicize": "Kursiv"
35
- "Overline": "Overstreg"
36
- "Strikethrough": "Gennemstreg"
37
- "Underline": "Understreg"
38
- "Subscript": "Sænket skrift"
39
- "Superscript": "Hævet skrift"
40
- "Align Left": "Venstrejusteret"
41
- "Center": "Centreret"
42
- "Align Right": "Højrejusteret"
43
- "Justify Full": "Lige margener"
44
- "Unordered List": "Usorteret liste"
45
- "Numbered List": "Nummereret liste"
46
- "Decrease Indentation": "Formindsk indrykning"
47
- "Increase Indentation": "Forøg indrykning"
48
- "Insert Table Row": "Indsæt tabelrække"
49
- "Insert a table row before the cursor": "Indsæt en tabelrække før pegeren"
50
- "Insert a table row after the cursor": "Indsæt en tabelrække efter pegeren"
51
- "Delete Table Row": "Slet tabelrække"
52
- "Delete this table row": "Slet denne tabelrække"
53
- "Insert Table Column": "Indsæt tabelkolonne"
54
- "Insert a table column before the cursor": "Indsæt en tabelkolonne før pegeren"
55
- "Insert a table column after the cursor": "Indsæt en tabelkolonne efter pegeren"
56
- "Delete Table Column": "Slet tabelkolonne"
57
- "Delete this table column": "Slet denne tabelkolonne"
58
- "Increase Cell Columns": "Forøg cellekolonner"
59
- "Decrease Cell Columns": "Formindsk cellekolonner"
60
- "Increase Cell Rows": "Forøg cellerækker"
61
- "Decrease Cell Rows": "Formindsk cellerækker"
62
- "Horizontal Rule": "Vandret linje"
63
- "Insert a horizontal rule": "Indsæt en vandret linje"
64
- "Remove Formatting": "Fjern formatering"
65
- "Remove formatting for the selection": "Fjern formatering fra markeringen"
66
- "Edit HTML": "Rediger HTML"
67
- "Edit the HTML content": "Rediger HTML-indholdet"
68
- "Edit Snippet Settings": "Rediger snippetindstillinger"
69
- "Remove Snippet": "Fjern snippet"
70
-
71
- # ### General
72
- # Error Messages
73
- "Mercury.Regions.%s is unsupported in this client. Supported browsers are %s.": "Mercury.Regions.%s er ikke understøttet i denne browser. Understøttede browsere er %s."
74
- "Mercury.PageEditor can only be instantiated once.": "Mercury.PageEditor kan kun blive instantieret én gang."
75
- "Opera isn't a fully supported browser, your results may not be optimal.": "Opera er ikke en fuldt ud understøttet. Dine resultater kan derfor være uoptimale."
76
- "Mercury.PageEditor failed to load: %s\n\nPlease try refreshing.": "Mercury.PageEditor kunne ikke starte: %s\n\n Prøv venligst at opdatere siden."
77
- "Region type is malformed, no data-type provided, or \"%s\" is unknown for the \"%s\" region.": "Regionstype er forkert formateret. Enten blev ingen datatype angivet, ellers er \"%s\" ukendt for \"%s\"regionen."
78
- "Mercury was unable to save to the url: %s": "Mercury var ikke i stand til at gemme til addressen: %s"
79
- "invalid": "ugyldig"
80
- "can't be blank": "kan ikke være tomt"
81
- # Confirmations
82
- "You have unsaved changes. Are you sure you want to leave without saving them first?": "Du har ændringer der ikke er blevet gemt. Er du sikker på, at du vil forlade siden uden først at gemme dem?"
83
-
84
- # ### Toolbar / Buttons
85
- # Error Messages
86
- "Unknown button type \"%s\" used for the \"%s\" button.": "Ukendt knaptype \"%s\" anvendt for \"%s\"knappen."
87
- "Unknown button structure -- please provide an array, object, or string for \"%s\".": "Ukendt knappestruktur -- Angiv venligst et array, objekt eller en streng for \"%s\"."
88
-
89
- # ### Modals / Dialogs / Etc.
90
- # Error Messages
91
- "Mercury was unable to load %s for the \"%s\" dialog.": "Mercury kunne ikke indlæse %s for \"%s\"dialogen."
92
- "Mercury was unable to load %s for the lightview.": "Mercury kunne ikke indlæse %s for lightview."
93
- "Mercury was unable to load %s for the modal.": "Mercury kunne ikke indlæse %s for denna modal."
94
-
95
- # ### Snippets
96
- # Error Messages
97
- "Error loading the preview for the \"%s\" snippet.": "Fejl ved indlæsning af forhåndsvisningen for \"%s\"snippeten."
98
- # Misc
99
- "Snippet Options": "Snippetindstillinger"
100
-
101
- # ### Uploader
102
- # Error Messages
103
- "Unable to process response: %s": "Kunne ikke forarbejde svar: %s"
104
- "Error: Unable to upload the file": "Fejl: Kunne ikke uploade filen"
105
- "Malformed response from server": "Deform svar fra server"
106
- "Too large": "For stor"
107
- "Unsupported format": "Formatet er ikke understøttet"
108
- # Statuses
109
- "Processing...": "Forarbejder..."
110
- "Uploading...": "Uploader..."
111
- "Aborted": "Afbrudt"
112
- "Successfully uploaded...": "Upload færdig..."
113
- "Name: %s": "Navn: %s"
114
- "Size: %s": "Størrelse: %s"
115
- "Type: %s": "Type: %s"
116
-
117
- # Statusbar
118
- "Path:": "Sti:"
119
-
120
-
121
- # ## HTML / Template Strings
122
-
123
- # ### Modals
124
- # Insert Link Modal (link.html)
125
- "Link Content": "Link indhold"
126
- "Standard Links": "Standard links"
127
- "URL": "URL"
128
- "Index / Bookmark Links": "Indeks- / bogmærkelinks"
129
- "Existing Links": "Eksisterende links"
130
- "Bookmark": "Bogmærke"
131
- "Options": "Indstillinger"
132
- "Link Target": "Link Target"
133
- "Self (the same window or tab)": "Self (det samme vindue eller fane)"
134
- "Blank (a new window or tab)": "Blank (et nyt vindue eller fane)"
135
- "Top (removes any frames)": "Top (fjerner eventuelle rammer)"
136
- "Popup Window (javascript new window popup)": "Popupvindue (JavaScript nyt vindue popup)"
137
- "Popup Width": "Bredde for popup"
138
- "Popup Height": "Højde for popup"
139
-
140
- # Insert Media Modal (media.html)
141
- "Images": "Billeder"
142
- "Videos": "Videoer"
143
- "YouTube URL": "YouTube-URL"
144
- "Vimeo URL": "Vimeo-URL"
145
- "Alignment": "Justering"
146
- "None": "Ingen"
147
- "Left": "Venstre"
148
- "Right": "Højre"
149
- "Top": "Top"
150
- "Middle": "Midt"
151
- "Bottom": "Bund"
152
- "Absolute Middle": "Absolut midte"
153
- "Absolute Bottom": "Absolut bund"
154
- "Width": "Bredde"
155
- "Height": "Højde"
156
- "Insert Media": "Indsæt media"
157
-
158
- # Insert Table Modal (table.html)
159
- "Rows": "Rækker"
160
- "Add Before": "Tilføj før"
161
- "Add After": "Tilføj efter"
162
- "Remove": "Fjern"
163
- "Columns": "Kolonner"
164
- "Row Span": "Rækkevidde"
165
- "Column Span": "Kolonnevidde"
166
- "Border": "Ramme"
167
- "Spacing": "Mellemrum"
168
-
169
- # HTML Editor Modal (htmleditor.html)
170
- "HTML Editor": "HTML-editor"
171
- "Save and Replace": "Gem og erstat"
172
-
173
- # ### Dialogs / Etc.
174
- # Color Palettes (forecolor.html, backcolor.html)
175
- "Last Color Picked": "Sidste valgte farve"
176
-
177
- # Block Format Select (formatblock.html)
178
- "Heading 1": "Rubrik 1"
179
- "Heading 2": "Rubrik 2"
180
- "Heading 3": "Rubrik 3"
181
- "Heading 4": "Rubrik 4"
182
- "Heading 5": "Rubrik 5"
183
- "Heading 6": "Rubrik 6"
184
- "Paragraph": "Paragraf"
185
- "Blockquote": "Citattekst"
186
- "Formatted": "Formateret"
187
-
188
- # About Mercury Panel (about.html)
189
- "Project Home": "Projektets hjemmeside"
190
- "Project Source": "Projektets kildekode"
191
-
192
- # ### Demo / Placeholder / Defaults
193
- "The history panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.": "Historikpanelet forventes at være implementeret med en server back-end. Eftersom dette er en demo så inkluderede vi den ikke."
194
-
195
- "The notes panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.": "Notepanelet forventes at være implementeret med en server back-end. Eftersom dette er en demo så inkluderede vi den ikke."
196
-
197
- "Snippet Name": "Snippetnavn"
198
- "A one or two line long description of what this snippet does.": "En eller to linjers lang beskrivelse om hvad denne snippet gør."
199
-
200
- "First Name": "Fornavn"
201
- "Favorite Beer": "Favorit øl"
202
- "Insert Snippet": "Indsæt snippet"
203
-
204
-
205
- # ## Custom Regional Overrides (eg. en-US)
206
- _US_:
207
- "Save": "Gem"
208
- >>>>>>> upstream/master:app/assets/javascripts/mercury/locales/da.locale.js.coffee