locomotive_cms 0.0.2.5 → 0.0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (304) hide show
  1. data/app/controllers/admin/asset_collections_controller.rb +1 -1
  2. data/app/controllers/admin/contents_controller.rb +1 -1
  3. data/app/controllers/admin/current_sites_controller.rb +2 -3
  4. data/app/controllers/admin/custom_fields_controller.rb +11 -5
  5. data/app/controllers/admin/layouts_controller.rb +2 -1
  6. data/app/controllers/admin/sites_controller.rb +0 -11
  7. data/app/controllers/admin/snippets_controller.rb +1 -1
  8. data/app/controllers/application_controller.rb +1 -1
  9. data/app/helpers/admin/custom_fields_helper.rb +14 -2
  10. data/app/helpers/admin/pages_helper.rb +10 -0
  11. data/app/models/asset_collection.rb +1 -1
  12. data/app/models/content_instance.rb +8 -0
  13. data/app/models/content_type.rb +25 -0
  14. data/app/models/page.rb +6 -2
  15. data/app/models/site.rb +3 -1
  16. data/app/views/admin/asset_collections/edit.html.haml +1 -1
  17. data/app/views/admin/assets/_form.html.haml +5 -6
  18. data/app/views/admin/content_types/_form.html.haml +6 -2
  19. data/app/views/admin/content_types/edit.html.haml +2 -2
  20. data/app/views/admin/contents/_form.html.haml +2 -17
  21. data/app/views/admin/contents/_list.html.haml +16 -0
  22. data/app/views/admin/contents/index.html.haml +6 -14
  23. data/app/views/admin/current_sites/_form.html.haml +6 -1
  24. data/app/views/admin/custom_fields/_custom_form.html.haml +18 -0
  25. data/app/views/admin/custom_fields/_edit_field.html.haml +3 -2
  26. data/app/views/admin/custom_fields/_index.html.haml +10 -6
  27. data/app/views/admin/custom_fields/edit_category.html.haml +1 -1
  28. data/app/views/admin/layouts/_form.html.haml +1 -1
  29. data/app/views/admin/pages/_form.html.haml +1 -4
  30. data/app/views/admin/shared/menu/_contents.html.haml +1 -1
  31. data/app/views/admin/sites/_form.html.haml +1 -1
  32. data/config/locales/admin_ui_en.yml +27 -5
  33. data/config/routes.rb +4 -4
  34. data/lib/locomotive.rb +2 -3
  35. data/lib/locomotive/liquid/drops/base.rb +2 -0
  36. data/lib/locomotive/liquid/drops/content.rb +1 -3
  37. data/lib/locomotive/liquid/drops/contents.rb +6 -1
  38. data/lib/locomotive/liquid/drops/page.rb +19 -0
  39. data/lib/locomotive/patches.rb +1 -2
  40. data/lib/locomotive/render.rb +9 -7
  41. data/lib/locomotive/routing/default_constraint.rb +3 -9
  42. data/lib/locomotive/routing/site_dispatcher.rb +8 -14
  43. data/public/javascripts/admin/application.js +13 -2
  44. data/public/javascripts/admin/asset_collections.js +1 -0
  45. data/public/javascripts/admin/assets.js +5 -0
  46. data/public/javascripts/admin/contents.js +7 -15
  47. data/public/javascripts/admin/custom_fields.js +18 -4
  48. data/public/javascripts/admin/custom_fields/category.js +13 -0
  49. data/public/javascripts/admin/plugins/tiny_mce/langs/en.js +170 -0
  50. data/public/javascripts/admin/plugins/tiny_mce/license.txt +504 -0
  51. data/public/javascripts/admin/plugins/tiny_mce/plugins/advhr/css/advhr.css +5 -0
  52. data/public/javascripts/admin/plugins/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
  53. data/public/javascripts/admin/plugins/tiny_mce/plugins/advhr/editor_plugin_src.js +57 -0
  54. data/public/javascripts/admin/plugins/tiny_mce/plugins/advhr/js/rule.js +43 -0
  55. data/public/javascripts/admin/plugins/tiny_mce/plugins/advhr/langs/en_dlg.js +5 -0
  56. data/public/javascripts/admin/plugins/tiny_mce/plugins/advhr/rule.htm +57 -0
  57. data/public/javascripts/admin/plugins/tiny_mce/plugins/advimage/css/advimage.css +13 -0
  58. data/public/javascripts/admin/plugins/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
  59. data/public/javascripts/admin/plugins/tiny_mce/plugins/advimage/editor_plugin_src.js +50 -0
  60. data/public/javascripts/admin/plugins/tiny_mce/plugins/advimage/image.htm +232 -0
  61. data/public/javascripts/admin/plugins/tiny_mce/plugins/advimage/img/sample.gif +0 -0
  62. data/public/javascripts/admin/plugins/tiny_mce/plugins/advimage/js/image.js +443 -0
  63. data/public/javascripts/admin/plugins/tiny_mce/plugins/advimage/langs/en_dlg.js +43 -0
  64. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlink/css/advlink.css +8 -0
  65. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
  66. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlink/editor_plugin_src.js +61 -0
  67. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlink/js/advlink.js +528 -0
  68. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlink/langs/en_dlg.js +52 -0
  69. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlink/link.htm +333 -0
  70. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlist/editor_plugin.js +1 -0
  71. data/public/javascripts/admin/plugins/tiny_mce/plugins/advlist/editor_plugin_src.js +154 -0
  72. data/public/javascripts/admin/plugins/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
  73. data/public/javascripts/admin/plugins/tiny_mce/plugins/autoresize/editor_plugin_src.js +119 -0
  74. data/public/javascripts/admin/plugins/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
  75. data/public/javascripts/admin/plugins/tiny_mce/plugins/autosave/editor_plugin_src.js +422 -0
  76. data/public/javascripts/admin/plugins/tiny_mce/plugins/autosave/langs/en.js +4 -0
  77. data/public/javascripts/admin/plugins/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
  78. data/public/javascripts/admin/plugins/tiny_mce/plugins/bbcode/editor_plugin_src.js +120 -0
  79. data/public/javascripts/admin/plugins/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
  80. data/public/javascripts/admin/plugins/tiny_mce/plugins/contextmenu/editor_plugin_src.js +147 -0
  81. data/public/javascripts/admin/plugins/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
  82. data/public/javascripts/admin/plugins/tiny_mce/plugins/directionality/editor_plugin_src.js +82 -0
  83. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
  84. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/editor_plugin_src.js +43 -0
  85. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/emotions.htm +40 -0
  86. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
  87. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
  88. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  89. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  90. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
  91. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
  92. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
  93. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
  94. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  95. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
  96. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
  97. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
  98. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  99. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
  100. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
  101. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
  102. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/js/emotions.js +22 -0
  103. data/public/javascripts/admin/plugins/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
  104. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/dialog.htm +22 -0
  105. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/editor_plugin.js +1 -0
  106. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/editor_plugin_src.js +84 -0
  107. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/img/example.gif +0 -0
  108. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/js/dialog.js +19 -0
  109. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/langs/en.js +3 -0
  110. data/public/javascripts/admin/plugins/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
  111. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullpage/css/fullpage.css +182 -0
  112. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
  113. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullpage/editor_plugin_src.js +153 -0
  114. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullpage/fullpage.htm +571 -0
  115. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullpage/js/fullpage.js +471 -0
  116. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullpage/langs/en_dlg.js +85 -0
  117. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
  118. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullscreen/editor_plugin_src.js +151 -0
  119. data/public/javascripts/admin/plugins/tiny_mce/plugins/fullscreen/fullscreen.htm +109 -0
  120. data/public/javascripts/admin/plugins/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
  121. data/public/javascripts/admin/plugins/tiny_mce/plugins/iespell/editor_plugin_src.js +54 -0
  122. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
  123. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +635 -0
  124. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  125. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  126. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  127. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  128. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  129. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  130. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  131. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
  132. data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/template.htm +387 -0
  133. data/public/javascripts/admin/plugins/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
  134. data/public/javascripts/admin/plugins/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +83 -0
  135. data/public/javascripts/admin/plugins/tiny_mce/plugins/layer/editor_plugin.js +1 -0
  136. data/public/javascripts/admin/plugins/tiny_mce/plugins/layer/editor_plugin_src.js +212 -0
  137. data/public/javascripts/admin/plugins/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -0
  138. data/public/javascripts/admin/plugins/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +136 -0
  139. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/css/content.css +6 -0
  140. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/css/media.css +16 -0
  141. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/editor_plugin.js +1 -0
  142. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/editor_plugin_src.js +414 -0
  143. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/flash.gif +0 -0
  144. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/flv_player.swf +0 -0
  145. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/quicktime.gif +0 -0
  146. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/realmedia.gif +0 -0
  147. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/shockwave.gif +0 -0
  148. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/trans.gif +0 -0
  149. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
  150. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/js/embed.js +73 -0
  151. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/js/media.js +630 -0
  152. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/langs/en_dlg.js +103 -0
  153. data/public/javascripts/admin/plugins/tiny_mce/plugins/media/media.htm +817 -0
  154. data/public/javascripts/admin/plugins/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
  155. data/public/javascripts/admin/plugins/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +53 -0
  156. data/public/javascripts/admin/plugins/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
  157. data/public/javascripts/admin/plugins/tiny_mce/plugins/noneditable/editor_plugin_src.js +90 -0
  158. data/public/javascripts/admin/plugins/tiny_mce/plugins/pagebreak/css/content.css +1 -0
  159. data/public/javascripts/admin/plugins/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
  160. data/public/javascripts/admin/plugins/tiny_mce/plugins/pagebreak/editor_plugin_src.js +77 -0
  161. data/public/javascripts/admin/plugins/tiny_mce/plugins/pagebreak/img/pagebreak.gif +0 -0
  162. data/public/javascripts/admin/plugins/tiny_mce/plugins/pagebreak/img/trans.gif +0 -0
  163. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/editor_plugin.js +1 -0
  164. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/editor_plugin_src.js +940 -0
  165. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/js/pastetext.js +36 -0
  166. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/js/pasteword.js +51 -0
  167. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
  168. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/pastetext.htm +27 -0
  169. data/public/javascripts/admin/plugins/tiny_mce/plugins/paste/pasteword.htm +21 -0
  170. data/public/javascripts/admin/plugins/tiny_mce/plugins/preview/editor_plugin.js +1 -0
  171. data/public/javascripts/admin/plugins/tiny_mce/plugins/preview/editor_plugin_src.js +53 -0
  172. data/public/javascripts/admin/plugins/tiny_mce/plugins/preview/example.html +28 -0
  173. data/public/javascripts/admin/plugins/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
  174. data/public/javascripts/admin/plugins/tiny_mce/plugins/preview/preview.html +17 -0
  175. data/public/javascripts/admin/plugins/tiny_mce/plugins/print/editor_plugin.js +1 -0
  176. data/public/javascripts/admin/plugins/tiny_mce/plugins/print/editor_plugin_src.js +34 -0
  177. data/public/javascripts/admin/plugins/tiny_mce/plugins/save/editor_plugin.js +1 -0
  178. data/public/javascripts/admin/plugins/tiny_mce/plugins/save/editor_plugin_src.js +101 -0
  179. data/public/javascripts/admin/plugins/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
  180. data/public/javascripts/admin/plugins/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
  181. data/public/javascripts/admin/plugins/tiny_mce/plugins/searchreplace/editor_plugin_src.js +57 -0
  182. data/public/javascripts/admin/plugins/tiny_mce/plugins/searchreplace/js/searchreplace.js +130 -0
  183. data/public/javascripts/admin/plugins/tiny_mce/plugins/searchreplace/langs/en_dlg.js +16 -0
  184. data/public/javascripts/admin/plugins/tiny_mce/plugins/searchreplace/searchreplace.htm +99 -0
  185. data/public/javascripts/admin/plugins/tiny_mce/plugins/spellchecker/css/content.css +1 -0
  186. data/public/javascripts/admin/plugins/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
  187. data/public/javascripts/admin/plugins/tiny_mce/plugins/spellchecker/editor_plugin_src.js +417 -0
  188. data/public/javascripts/admin/plugins/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
  189. data/public/javascripts/admin/plugins/tiny_mce/plugins/style/css/props.css +13 -0
  190. data/public/javascripts/admin/plugins/tiny_mce/plugins/style/editor_plugin.js +1 -0
  191. data/public/javascripts/admin/plugins/tiny_mce/plugins/style/editor_plugin_src.js +55 -0
  192. data/public/javascripts/admin/plugins/tiny_mce/plugins/style/js/props.js +641 -0
  193. data/public/javascripts/admin/plugins/tiny_mce/plugins/style/langs/en_dlg.js +63 -0
  194. data/public/javascripts/admin/plugins/tiny_mce/plugins/style/props.htm +723 -0
  195. data/public/javascripts/admin/plugins/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
  196. data/public/javascripts/admin/plugins/tiny_mce/plugins/tabfocus/editor_plugin_src.js +112 -0
  197. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/cell.htm +178 -0
  198. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/css/cell.css +17 -0
  199. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/css/row.css +25 -0
  200. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/css/table.css +13 -0
  201. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/editor_plugin.js +1 -0
  202. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/editor_plugin_src.js +1125 -0
  203. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/js/cell.js +286 -0
  204. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/js/merge_cells.js +27 -0
  205. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/js/row.js +237 -0
  206. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/js/table.js +449 -0
  207. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/langs/en_dlg.js +74 -0
  208. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/merge_cells.htm +32 -0
  209. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/row.htm +155 -0
  210. data/public/javascripts/admin/plugins/tiny_mce/plugins/table/table.htm +187 -0
  211. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/blank.htm +12 -0
  212. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/css/template.css +23 -0
  213. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/editor_plugin.js +1 -0
  214. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/editor_plugin_src.js +159 -0
  215. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/js/template.js +106 -0
  216. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/langs/en_dlg.js +15 -0
  217. data/public/javascripts/admin/plugins/tiny_mce/plugins/template/template.htm +31 -0
  218. data/public/javascripts/admin/plugins/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
  219. data/public/javascripts/admin/plugins/tiny_mce/plugins/visualchars/editor_plugin_src.js +76 -0
  220. data/public/javascripts/admin/plugins/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
  221. data/public/javascripts/admin/plugins/tiny_mce/plugins/wordcount/editor_plugin_src.js +98 -0
  222. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/abbr.htm +141 -0
  223. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/acronym.htm +141 -0
  224. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/attributes.htm +148 -0
  225. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/cite.htm +141 -0
  226. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
  227. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
  228. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/del.htm +161 -0
  229. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
  230. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +144 -0
  231. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/ins.htm +161 -0
  232. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/abbr.js +28 -0
  233. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/acronym.js +28 -0
  234. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/attributes.js +126 -0
  235. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/cite.js +28 -0
  236. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/del.js +63 -0
  237. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/element_common.js +231 -0
  238. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/js/ins.js +62 -0
  239. data/public/javascripts/admin/plugins/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
  240. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/about.htm +54 -0
  241. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/anchor.htm +26 -0
  242. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/charmap.htm +52 -0
  243. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/color_picker.htm +73 -0
  244. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/editor_template.js +1 -0
  245. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/editor_template_src.js +1194 -0
  246. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/image.htm +80 -0
  247. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  248. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/img/icons.gif +0 -0
  249. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/about.js +72 -0
  250. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/anchor.js +37 -0
  251. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/charmap.js +335 -0
  252. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/color_picker.js +253 -0
  253. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/image.js +245 -0
  254. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/link.js +156 -0
  255. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/source_editor.js +62 -0
  256. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/langs/en.js +62 -0
  257. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/langs/en_dlg.js +51 -0
  258. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/link.htm +58 -0
  259. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/content.css +35 -0
  260. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/dialog.css +117 -0
  261. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/buttons.png +0 -0
  262. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/items.gif +0 -0
  263. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/menu_arrow.gif +0 -0
  264. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/menu_check.gif +0 -0
  265. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/progress.gif +0 -0
  266. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/tabs.gif +0 -0
  267. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/ui.css +213 -0
  268. data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/source_editor.htm +25 -0
  269. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/editor_template.js +1 -0
  270. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/editor_template_src.js +85 -0
  271. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/img/icons.gif +0 -0
  272. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/langs/en.js +11 -0
  273. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/skins/default/content.css +25 -0
  274. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/skins/default/ui.css +32 -0
  275. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
  276. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  277. data/public/javascripts/admin/plugins/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
  278. data/public/javascripts/admin/plugins/tiny_mce/tiny_mce.js +1 -0
  279. data/public/javascripts/admin/plugins/tiny_mce/tiny_mce_popup.js +5 -0
  280. data/public/javascripts/admin/plugins/tiny_mce/tiny_mce_src.js +13374 -0
  281. data/public/javascripts/admin/plugins/tiny_mce/tinymce.js +1 -0
  282. data/public/javascripts/admin/plugins/tiny_mce/utils/editable_selects.js +70 -0
  283. data/public/javascripts/admin/plugins/tiny_mce/utils/form_utils.js +200 -0
  284. data/public/javascripts/admin/plugins/tiny_mce/utils/mctabs.js +77 -0
  285. data/public/javascripts/admin/plugins/tiny_mce/utils/validate.js +220 -0
  286. data/public/stylesheets/admin/box.css +8 -0
  287. data/public/stylesheets/admin/formtastic_changes.css +15 -0
  288. data/public/stylesheets/admin/plugins/tiny_mce.css +105 -0
  289. data/spec/lib/locomotive/liquid/drops/contents_spec.rb +33 -0
  290. data/spec/lib/locomotive/liquid/drops/page_spec.rb +48 -0
  291. data/spec/lib/locomotive/render_spec.rb +12 -3
  292. data/vendor/plugins/custom_fields/Gemfile +1 -1
  293. data/vendor/plugins/custom_fields/lib/custom_fields.rb +3 -0
  294. data/vendor/plugins/custom_fields/lib/custom_fields/field.rb +9 -15
  295. data/vendor/plugins/custom_fields/lib/custom_fields/types/boolean.rb +29 -0
  296. data/vendor/plugins/custom_fields/lib/custom_fields/types/category.rb +15 -3
  297. data/vendor/plugins/custom_fields/lib/custom_fields/types/default.rb +21 -2
  298. data/vendor/plugins/custom_fields/lib/custom_fields/types/string.rb +13 -0
  299. data/vendor/plugins/custom_fields/lib/custom_fields/types/text.rb +15 -0
  300. data/vendor/plugins/custom_fields/spec/models/project.rb +2 -0
  301. data/vendor/plugins/custom_fields/spec/unit/types/boolean_spec.rb +81 -0
  302. data/vendor/plugins/custom_fields/spec/unit/types/category_spec.rb +15 -0
  303. metadata +251 -4
  304. data/lib/locomotive/devise/sessions_controller.rb +0 -2
@@ -0,0 +1,213 @@
1
+ /* Reset */
2
+ .locomotiveSkin table, .locomotiveSkin tbody, .locomotiveSkin a, .locomotiveSkin img, .locomotiveSkin tr, .locomotiveSkin div, .locomotiveSkin td, .locomotiveSkin iframe, .locomotiveSkin span, .locomotiveSkin *, .locomotiveSkin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left}
3
+ .locomotiveSkin a:hover, .locomotiveSkin a:link, .locomotiveSkin a:visited, .locomotiveSkin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000}
4
+ .locomotiveSkin table td {vertical-align:middle}
5
+
6
+ /* Containers */
7
+ .locomotiveSkin table {direction:ltr; background:#D8DCE7}
8
+ .locomotiveSkin iframe {display:block; background:#FFF}
9
+ .locomotiveSkin .mceToolbar {height:26px}
10
+ .locomotiveSkin .mceLeft {text-align:left}
11
+ .locomotiveSkin .mceRight {text-align:right}
12
+
13
+ /* External */
14
+ .locomotiveSkin .mceExternalToolbar {position:absolute; border:1px solid #A6A8B8; border-bottom:0; display:none;}
15
+ .locomotiveSkin .mceExternalToolbar td.mceToolbar {padding-right:13px;}
16
+ .locomotiveSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0}
17
+
18
+ /* Layout */
19
+ .locomotiveSkin table.mceLayout {border:0; border-left:1px solid #A6A8B8; border-right:1px solid #A6A8B8}
20
+ .locomotiveSkin table.mceLayout tr.mceFirst td {border-top:1px solid #A6A8B8}
21
+ .locomotiveSkin table.mceLayout tr.mceLast td {border-bottom:1px solid #A6A8B8}
22
+ .locomotiveSkin table.mceToolbar, .locomotiveSkin tr.mceFirst .mceToolbar tr td, .locomotiveSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0;}
23
+ .locomotiveSkin td.mceToolbar {padding-top:1px; vertical-align:top}
24
+ .locomotiveSkin .mceIframeContainer {border-top:1px solid #A6A8B8; border-bottom:1px solid #A6A8B8}
25
+ .locomotiveSkin .mceStatusbar {font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; display:block; height:20px}
26
+ .locomotiveSkin .mceStatusbar div {float:left; margin:2px}
27
+ .locomotiveSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0}
28
+ .locomotiveSkin .mceStatusbar a:hover {text-decoration:underline}
29
+ .locomotiveSkin table.mceToolbar {margin-left:3px}
30
+ .locomotiveSkin span.mceIcon, .locomotiveSkin img.mceIcon {display:block; width:20px; height:20px}
31
+ .locomotiveSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px}
32
+ .locomotiveSkin td.mceCenter {text-align:center;}
33
+ .locomotiveSkin td.mceCenter table {margin:0 auto; text-align:left;}
34
+ .locomotiveSkin td.mceRight table {margin:0 0 0 auto;}
35
+
36
+ /* Button */
37
+ .locomotiveSkin .mceButton {display:block; border:1px solid #D8DCE7; width:20px; height:20px; margin-right:1px}
38
+ .locomotiveSkin a.mceButtonEnabled:hover {border:1px solid #0A246A; background-color:#B2BBD0}
39
+ .locomotiveSkin a.mceButtonActive, .locomotiveSkin a.mceButtonSelected {border:1px solid #0A246A; background-color:#C2CBE0}
40
+ .locomotiveSkin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
41
+ .locomotiveSkin .mceButtonLabeled {width:auto}
42
+ .locomotiveSkin .mceButtonLabeled span.mceIcon {float:left}
43
+ .locomotiveSkin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica}
44
+ .locomotiveSkin .mceButtonDisabled .mceButtonLabel {color:#888}
45
+
46
+ /* Separator */
47
+ .locomotiveSkin .mceSeparator {display:block; background:url(../../img/icons.gif) -180px 0; width:2px; height:20px; margin:2px 2px 0 4px}
48
+
49
+ /* ListBox */
50
+ .locomotiveSkin .mceListBox, .locomotiveSkin .mceListBox a {display:block}
51
+ .locomotiveSkin .mceListBox .mceText {padding-left:4px; width:70px; text-align:left; border:1px solid #CCC; border-right:0; background:#FFF; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden}
52
+ .locomotiveSkin .mceListBox .mceOpen {width:9px; height:20px; background:url(../../img/icons.gif) -741px 0; margin-right:2px; border:1px solid #CCC;}
53
+ .locomotiveSkin table.mceListBoxEnabled:hover .mceText, .locomotiveSkin .mceListBoxHover .mceText, .locomotiveSkin .mceListBoxSelected .mceText {border:1px solid #A2ABC0; border-right:0; background:#FFF}
54
+ .locomotiveSkin table.mceListBoxEnabled:hover .mceOpen, .locomotiveSkin .mceListBoxHover .mceOpen, .locomotiveSkin .mceListBoxSelected .mceOpen {background-color:#FFF; border:1px solid #A2ABC0}
55
+ .locomotiveSkin .mceListBoxDisabled a.mceText {color:gray; background-color:transparent;}
56
+ .locomotiveSkin .mceListBoxMenu {overflow:auto; overflow-x:hidden}
57
+ .locomotiveSkin .mceOldBoxModel .mceListBox .mceText {height:22px}
58
+ .locomotiveSkin .mceOldBoxModel .mceListBox .mceOpen {width:11px; height:22px;}
59
+ .locomotiveSkin select.mceNativeListBox {font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:7pt; background:#F0F0EE; border:1px solid gray; margin-right:2px;}
60
+
61
+ /* SplitButton */
62
+ .locomotiveSkin .mceSplitButton {width:32px; height:20px; direction:ltr}
63
+ .locomotiveSkin .mceSplitButton a, .locomotiveSkin .mceSplitButton span {height:20px; display:block}
64
+ .locomotiveSkin .mceSplitButton a.mceAction {width:20px; border:1px solid #F0F0EE; border-right:0;}
65
+ .locomotiveSkin .mceSplitButton span.mceAction {width:20px; background-image:url(../../img/icons.gif);}
66
+ .locomotiveSkin .mceSplitButton a.mceOpen {width:9px; background:url(../../img/icons.gif) -741px 0; border:1px solid #F0F0EE;}
67
+ .locomotiveSkin .mceSplitButton span.mceOpen {display:none}
68
+ .locomotiveSkin table.mceSplitButtonEnabled:hover a.mceAction, .locomotiveSkin .mceSplitButtonHover a.mceAction, .locomotiveSkin .mceSplitButtonSelected a.mceAction {border:1px solid #0A246A; border-right:0; background-color:#B2BBD0}
69
+ .locomotiveSkin table.mceSplitButtonEnabled:hover a.mceOpen, .locomotiveSkin .mceSplitButtonHover a.mceOpen, .locomotiveSkin .mceSplitButtonSelected a.mceOpen {background-color:#B2BBD0; border:1px solid #0A246A;}
70
+ .locomotiveSkin .mceSplitButtonDisabled .mceAction, .locomotiveSkin .mceSplitButtonDisabled a.mceOpen {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
71
+ .locomotiveSkin .mceSplitButtonActive a.mceAction {border:1px solid #0A246A; background-color:#C2CBE0}
72
+ .locomotiveSkin .mceSplitButtonActive a.mceOpen {border-left:0;}
73
+
74
+ /* ColorSplitButton */
75
+ .locomotiveSkin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray}
76
+ .locomotiveSkin .mceColorSplitMenu td {padding:2px}
77
+ .locomotiveSkin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080}
78
+ .locomotiveSkin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px}
79
+ .locomotiveSkin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF}
80
+ .locomotiveSkin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2}
81
+ .locomotiveSkin a.mceMoreColors:hover {border:1px solid #0A246A}
82
+ .locomotiveSkin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a}
83
+ .locomotiveSkin .mce_forecolor span.mceAction, .locomotiveSkin .mce_backcolor span.mceAction {overflow:hidden; height:16px}
84
+
85
+ /* Menu */
86
+ .locomotiveSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #D4D0C8}
87
+ .locomotiveSkin .mceNoIcons span.mceIcon {width:0;}
88
+ .locomotiveSkin .mceNoIcons a .mceText {padding-left:10px}
89
+ .locomotiveSkin .mceMenu table {background:#FFF}
90
+ .locomotiveSkin .mceMenu a, .locomotiveSkin .mceMenu span, .locomotiveSkin .mceMenu {display:block}
91
+ .locomotiveSkin .mceMenu td {height:20px}
92
+ .locomotiveSkin .mceMenu a {position:relative;padding:3px 0 4px 0}
93
+ .locomotiveSkin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block}
94
+ .locomotiveSkin .mceMenu span.mceText, .locomotiveSkin .mceMenu .mcePreview {font-size:11px}
95
+ .locomotiveSkin .mceMenu pre.mceText {font-family:Monospace}
96
+ .locomotiveSkin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;}
97
+ .locomotiveSkin .mceMenu .mceMenuItemEnabled a:hover, .locomotiveSkin .mceMenu .mceMenuItemActive {background-color:#dbecf3}
98
+ .locomotiveSkin td.mceMenuItemSeparator {background:#DDD; height:1px}
99
+ .locomotiveSkin .mceMenuItemTitle a {border:0; background:#EEE; border-bottom:1px solid #DDD}
100
+ .locomotiveSkin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px}
101
+ .locomotiveSkin .mceMenuItemDisabled .mceText {color:#888}
102
+ .locomotiveSkin .mceMenuItemSelected .mceIcon {background:url(img/menu_check.gif)}
103
+ .locomotiveSkin .mceNoIcons .mceMenuItemSelected a {background:url(img/menu_arrow.gif) no-repeat -6px center}
104
+ .locomotiveSkin .mceMenu span.mceMenuLine {display:none}
105
+ .locomotiveSkin .mceMenuItemSub a {background:url(img/menu_arrow.gif) no-repeat top right;}
106
+
107
+ /* Progress,Resize */
108
+ .locomotiveSkin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=50)'; filter:alpha(opacity=50); background:#FFF}
109
+ .locomotiveSkin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px}
110
+
111
+ /* Formats */
112
+ .locomotiveSkin .mce_formatPreview a {font-size:10px}
113
+ .locomotiveSkin .mce_p span.mceText {}
114
+ .locomotiveSkin .mce_address span.mceText {font-style:italic}
115
+ .locomotiveSkin .mce_pre span.mceText {font-family:monospace}
116
+ .locomotiveSkin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em}
117
+ .locomotiveSkin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em}
118
+ .locomotiveSkin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em}
119
+ .locomotiveSkin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em}
120
+ .locomotiveSkin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em}
121
+ .locomotiveSkin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em}
122
+
123
+ /* Theme */
124
+ .locomotiveSkin span.mce_bold {background-position:0 0}
125
+ .locomotiveSkin span.mce_italic {background-position:-60px 0}
126
+ .locomotiveSkin span.mce_underline {background-position:-140px 0}
127
+ .locomotiveSkin span.mce_strikethrough {background-position:-120px 0}
128
+ .locomotiveSkin span.mce_undo {background-position:-160px 0}
129
+ .locomotiveSkin span.mce_redo {background-position:-100px 0}
130
+ .locomotiveSkin span.mce_cleanup {background-position:-40px 0}
131
+ .locomotiveSkin span.mce_bullist {background-position:-20px 0}
132
+ .locomotiveSkin span.mce_numlist {background-position:-80px 0}
133
+ .locomotiveSkin span.mce_justifyleft {background-position:-460px 0}
134
+ .locomotiveSkin span.mce_justifyright {background-position:-480px 0}
135
+ .locomotiveSkin span.mce_justifycenter {background-position:-420px 0}
136
+ .locomotiveSkin span.mce_justifyfull {background-position:-440px 0}
137
+ .locomotiveSkin span.mce_anchor {background-position:-200px 0}
138
+ .locomotiveSkin span.mce_indent {background-position:-400px 0}
139
+ .locomotiveSkin span.mce_outdent {background-position:-540px 0}
140
+ .locomotiveSkin span.mce_link {background-position:-500px 0}
141
+ .locomotiveSkin span.mce_unlink {background-position:-640px 0}
142
+ .locomotiveSkin span.mce_sub {background-position:-600px 0}
143
+ .locomotiveSkin span.mce_sup {background-position:-620px 0}
144
+ .locomotiveSkin span.mce_removeformat {background-position:-580px 0}
145
+ .locomotiveSkin span.mce_newdocument {background-position:-520px 0}
146
+ .locomotiveSkin span.mce_image {background-position:-380px 0}
147
+ .locomotiveSkin span.mce_help {background-position:-340px 0}
148
+ .locomotiveSkin span.mce_code {background-position:-260px 0}
149
+ .locomotiveSkin span.mce_hr {background-position:-360px 0}
150
+ .locomotiveSkin span.mce_visualaid {background-position:-660px 0}
151
+ .locomotiveSkin span.mce_charmap {background-position:-240px 0}
152
+ .locomotiveSkin span.mce_paste {background-position:-560px 0}
153
+ .locomotiveSkin span.mce_copy {background-position:-700px 0}
154
+ .locomotiveSkin span.mce_cut {background-position:-680px 0}
155
+ .locomotiveSkin span.mce_blockquote {background-position:-220px 0}
156
+ .locomotiveSkin .mce_forecolor span.mceAction {background-position:-720px 0}
157
+ .locomotiveSkin .mce_backcolor span.mceAction {background-position:-760px 0}
158
+ .locomotiveSkin span.mce_forecolorpicker {background-position:-720px 0}
159
+ .locomotiveSkin span.mce_backcolorpicker {background-position:-760px 0}
160
+
161
+ /* Plugins */
162
+ .locomotiveSkin span.mce_advhr {background-position:-0px -20px}
163
+ .locomotiveSkin span.mce_ltr {background-position:-20px -20px}
164
+ .locomotiveSkin span.mce_rtl {background-position:-40px -20px}
165
+ .locomotiveSkin span.mce_emotions {background-position:-60px -20px}
166
+ .locomotiveSkin span.mce_fullpage {background-position:-80px -20px}
167
+ .locomotiveSkin span.mce_fullscreen {background-position:-100px -20px}
168
+ .locomotiveSkin span.mce_iespell {background-position:-120px -20px}
169
+ .locomotiveSkin span.mce_insertdate {background-position:-140px -20px}
170
+ .locomotiveSkin span.mce_inserttime {background-position:-160px -20px}
171
+ .locomotiveSkin span.mce_absolute {background-position:-180px -20px}
172
+ .locomotiveSkin span.mce_backward {background-position:-200px -20px}
173
+ .locomotiveSkin span.mce_forward {background-position:-220px -20px}
174
+ .locomotiveSkin span.mce_insert_layer {background-position:-240px -20px}
175
+ .locomotiveSkin span.mce_insertlayer {background-position:-260px -20px}
176
+ .locomotiveSkin span.mce_movebackward {background-position:-280px -20px}
177
+ .locomotiveSkin span.mce_moveforward {background-position:-300px -20px}
178
+ .locomotiveSkin span.mce_media {background-position:-320px -20px}
179
+ .locomotiveSkin span.mce_nonbreaking {background-position:-340px -20px}
180
+ .locomotiveSkin span.mce_pastetext {background-position:-360px -20px}
181
+ .locomotiveSkin span.mce_pasteword {background-position:-380px -20px}
182
+ .locomotiveSkin span.mce_selectall {background-position:-400px -20px}
183
+ .locomotiveSkin span.mce_preview {background-position:-420px -20px}
184
+ .locomotiveSkin span.mce_print {background-position:-440px -20px}
185
+ .locomotiveSkin span.mce_cancel {background-position:-460px -20px}
186
+ .locomotiveSkin span.mce_save {background-position:-480px -20px}
187
+ .locomotiveSkin span.mce_replace {background-position:-500px -20px}
188
+ .locomotiveSkin span.mce_search {background-position:-520px -20px}
189
+ .locomotiveSkin span.mce_styleprops {background-position:-560px -20px}
190
+ .locomotiveSkin span.mce_table {background-position:-580px -20px}
191
+ .locomotiveSkin span.mce_cell_props {background-position:-600px -20px}
192
+ .locomotiveSkin span.mce_delete_table {background-position:-620px -20px}
193
+ .locomotiveSkin span.mce_delete_col {background-position:-640px -20px}
194
+ .locomotiveSkin span.mce_delete_row {background-position:-660px -20px}
195
+ .locomotiveSkin span.mce_col_after {background-position:-680px -20px}
196
+ .locomotiveSkin span.mce_col_before {background-position:-700px -20px}
197
+ .locomotiveSkin span.mce_row_after {background-position:-720px -20px}
198
+ .locomotiveSkin span.mce_row_before {background-position:-740px -20px}
199
+ .locomotiveSkin span.mce_merge_cells {background-position:-760px -20px}
200
+ .locomotiveSkin span.mce_table_props {background-position:-980px -20px}
201
+ .locomotiveSkin span.mce_row_props {background-position:-780px -20px}
202
+ .locomotiveSkin span.mce_split_cells {background-position:-800px -20px}
203
+ .locomotiveSkin span.mce_template {background-position:-820px -20px}
204
+ .locomotiveSkin span.mce_visualchars {background-position:-840px -20px}
205
+ .locomotiveSkin span.mce_abbr {background-position:-860px -20px}
206
+ .locomotiveSkin span.mce_acronym {background-position:-880px -20px}
207
+ .locomotiveSkin span.mce_attribs {background-position:-900px -20px}
208
+ .locomotiveSkin span.mce_cite {background-position:-920px -20px}
209
+ .locomotiveSkin span.mce_del {background-position:-940px -20px}
210
+ .locomotiveSkin span.mce_ins {background-position:-960px -20px}
211
+ .locomotiveSkin span.mce_pagebreak {background-position:0 -40px}
212
+ .locomotiveSkin span.mce_restoredraft {background-position:-20px -40px}
213
+ .locomotiveSkin span.mce_spellchecker {background-position:-540px -20px}
@@ -0,0 +1,25 @@
1
+ <html xmlns="http://www.w3.org/1999/xhtml">
2
+ <head>
3
+ <title>{#advanced_dlg.code_title}</title>
4
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
5
+ <script type="text/javascript" src="js/source_editor.js"></script>
6
+ </head>
7
+ <body onresize="resizeInputs();" style="display:none; overflow:hidden;">
8
+ <form name="source" onsubmit="saveContent();return false;" action="#">
9
+ <div style="float: left" class="title">{#advanced_dlg.code_title}</div>
10
+
11
+ <div id="wrapline" style="float: right">
12
+ <input type="checkbox" name="wraped" id="wraped" onclick="toggleWordWrap(this);" class="wordWrapCode" /><label for="wraped">{#advanced_dlg.code_wordwrap}</label>
13
+ </div>
14
+
15
+ <br style="clear: both" />
16
+
17
+ <textarea name="htmlSource" id="htmlSource" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,monospace; font-size: 12px;" dir="ltr" wrap="off" class="mceFocus"></textarea>
18
+
19
+ <div class="mceActionPanel">
20
+ <input type="submit" name="insert" value="{#update}" id="insert" />
21
+ <input type="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
22
+ </div>
23
+ </form>
24
+ </body>
25
+ </html>
@@ -0,0 +1 @@
1
+ (function(){var a=tinymce.DOM;tinymce.ThemeManager.requireLangPack("simple");tinymce.create("tinymce.themes.SimpleTheme",{init:function(c,d){var e=this,b=["Bold","Italic","Underline","Strikethrough","InsertUnorderedList","InsertOrderedList"],f=c.settings;e.editor=c;c.onInit.add(function(){c.onNodeChange.add(function(h,g){tinymce.each(b,function(i){g.get(i.toLowerCase()).setActive(h.queryCommandState(i))})});c.dom.loadCSS(d+"/skins/"+f.skin+"/content.css")});a.loadCSS((f.editor_css?c.documentBaseURI.toAbsolute(f.editor_css):"")||d+"/skins/"+f.skin+"/ui.css")},renderUI:function(h){var e=this,i=h.targetNode,b,c,d=e.editor,f=d.controlManager,g;i=a.insertAfter(a.create("span",{id:d.id+"_container","class":"mceEditor "+d.settings.skin+"SimpleSkin"}),i);i=g=a.add(i,"table",{cellPadding:0,cellSpacing:0,"class":"mceLayout"});i=c=a.add(i,"tbody");i=a.add(c,"tr");i=b=a.add(a.add(i,"td"),"div",{"class":"mceIframeContainer"});i=a.add(a.add(c,"tr",{"class":"last"}),"td",{"class":"mceToolbar mceLast",align:"center"});c=e.toolbar=f.createToolbar("tools1");c.add(f.createButton("bold",{title:"simple.bold_desc",cmd:"Bold"}));c.add(f.createButton("italic",{title:"simple.italic_desc",cmd:"Italic"}));c.add(f.createButton("underline",{title:"simple.underline_desc",cmd:"Underline"}));c.add(f.createButton("strikethrough",{title:"simple.striketrough_desc",cmd:"Strikethrough"}));c.add(f.createSeparator());c.add(f.createButton("undo",{title:"simple.undo_desc",cmd:"Undo"}));c.add(f.createButton("redo",{title:"simple.redo_desc",cmd:"Redo"}));c.add(f.createSeparator());c.add(f.createButton("cleanup",{title:"simple.cleanup_desc",cmd:"mceCleanup"}));c.add(f.createSeparator());c.add(f.createButton("insertunorderedlist",{title:"simple.bullist_desc",cmd:"InsertUnorderedList"}));c.add(f.createButton("insertorderedlist",{title:"simple.numlist_desc",cmd:"InsertOrderedList"}));c.renderTo(i);return{iframeContainer:b,editorContainer:d.id+"_container",sizeContainer:g,deltaHeight:-20}},getInfo:function(){return{longname:"Simple theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.ThemeManager.add("simple",tinymce.themes.SimpleTheme)})();
@@ -0,0 +1,85 @@
1
+ /**
2
+ * editor_template_src.js
3
+ *
4
+ * Copyright 2009, Moxiecode Systems AB
5
+ * Released under LGPL License.
6
+ *
7
+ * License: http://tinymce.moxiecode.com/license
8
+ * Contributing: http://tinymce.moxiecode.com/contributing
9
+ */
10
+
11
+ (function() {
12
+ var DOM = tinymce.DOM;
13
+
14
+ // Tell it to load theme specific language pack(s)
15
+ tinymce.ThemeManager.requireLangPack('simple');
16
+
17
+ tinymce.create('tinymce.themes.SimpleTheme', {
18
+ init : function(ed, url) {
19
+ var t = this, states = ['Bold', 'Italic', 'Underline', 'Strikethrough', 'InsertUnorderedList', 'InsertOrderedList'], s = ed.settings;
20
+
21
+ t.editor = ed;
22
+
23
+ ed.onInit.add(function() {
24
+ ed.onNodeChange.add(function(ed, cm) {
25
+ tinymce.each(states, function(c) {
26
+ cm.get(c.toLowerCase()).setActive(ed.queryCommandState(c));
27
+ });
28
+ });
29
+
30
+ ed.dom.loadCSS(url + "/skins/" + s.skin + "/content.css");
31
+ });
32
+
33
+ DOM.loadCSS((s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : '') || url + "/skins/" + s.skin + "/ui.css");
34
+ },
35
+
36
+ renderUI : function(o) {
37
+ var t = this, n = o.targetNode, ic, tb, ed = t.editor, cf = ed.controlManager, sc;
38
+
39
+ n = DOM.insertAfter(DOM.create('span', {id : ed.id + '_container', 'class' : 'mceEditor ' + ed.settings.skin + 'SimpleSkin'}), n);
40
+ n = sc = DOM.add(n, 'table', {cellPadding : 0, cellSpacing : 0, 'class' : 'mceLayout'});
41
+ n = tb = DOM.add(n, 'tbody');
42
+
43
+ // Create iframe container
44
+ n = DOM.add(tb, 'tr');
45
+ n = ic = DOM.add(DOM.add(n, 'td'), 'div', {'class' : 'mceIframeContainer'});
46
+
47
+ // Create toolbar container
48
+ n = DOM.add(DOM.add(tb, 'tr', {'class' : 'last'}), 'td', {'class' : 'mceToolbar mceLast', align : 'center'});
49
+
50
+ // Create toolbar
51
+ tb = t.toolbar = cf.createToolbar("tools1");
52
+ tb.add(cf.createButton('bold', {title : 'simple.bold_desc', cmd : 'Bold'}));
53
+ tb.add(cf.createButton('italic', {title : 'simple.italic_desc', cmd : 'Italic'}));
54
+ tb.add(cf.createButton('underline', {title : 'simple.underline_desc', cmd : 'Underline'}));
55
+ tb.add(cf.createButton('strikethrough', {title : 'simple.striketrough_desc', cmd : 'Strikethrough'}));
56
+ tb.add(cf.createSeparator());
57
+ tb.add(cf.createButton('undo', {title : 'simple.undo_desc', cmd : 'Undo'}));
58
+ tb.add(cf.createButton('redo', {title : 'simple.redo_desc', cmd : 'Redo'}));
59
+ tb.add(cf.createSeparator());
60
+ tb.add(cf.createButton('cleanup', {title : 'simple.cleanup_desc', cmd : 'mceCleanup'}));
61
+ tb.add(cf.createSeparator());
62
+ tb.add(cf.createButton('insertunorderedlist', {title : 'simple.bullist_desc', cmd : 'InsertUnorderedList'}));
63
+ tb.add(cf.createButton('insertorderedlist', {title : 'simple.numlist_desc', cmd : 'InsertOrderedList'}));
64
+ tb.renderTo(n);
65
+
66
+ return {
67
+ iframeContainer : ic,
68
+ editorContainer : ed.id + '_container',
69
+ sizeContainer : sc,
70
+ deltaHeight : -20
71
+ };
72
+ },
73
+
74
+ getInfo : function() {
75
+ return {
76
+ longname : 'Simple theme',
77
+ author : 'Moxiecode Systems AB',
78
+ authorurl : 'http://tinymce.moxiecode.com',
79
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
80
+ }
81
+ }
82
+ });
83
+
84
+ tinymce.ThemeManager.add('simple', tinymce.themes.SimpleTheme);
85
+ })();
@@ -0,0 +1,11 @@
1
+ tinyMCE.addI18n('en.simple',{
2
+ bold_desc:"Bold (Ctrl+B)",
3
+ italic_desc:"Italic (Ctrl+I)",
4
+ underline_desc:"Underline (Ctrl+U)",
5
+ striketrough_desc:"Strikethrough",
6
+ bullist_desc:"Unordered list",
7
+ numlist_desc:"Ordered list",
8
+ undo_desc:"Undo (Ctrl+Z)",
9
+ redo_desc:"Redo (Ctrl+Y)",
10
+ cleanup_desc:"Cleanup messy code"
11
+ });
@@ -0,0 +1,25 @@
1
+ body, td, pre {
2
+ font-family: Verdana, Arial, Helvetica, sans-serif;
3
+ font-size: 10px;
4
+ }
5
+
6
+ body {
7
+ background-color: #FFFFFF;
8
+ }
9
+
10
+ .mceVisualAid {
11
+ border: 1px dashed #BBBBBB;
12
+ }
13
+
14
+ /* MSIE specific */
15
+
16
+ * html body {
17
+ scrollbar-3dlight-color: #F0F0EE;
18
+ scrollbar-arrow-color: #676662;
19
+ scrollbar-base-color: #F0F0EE;
20
+ scrollbar-darkshadow-color: #DDDDDD;
21
+ scrollbar-face-color: #E0E0DD;
22
+ scrollbar-highlight-color: #F0F0EE;
23
+ scrollbar-shadow-color: #F0F0EE;
24
+ scrollbar-track-color: #F5F5F5;
25
+ }
@@ -0,0 +1,32 @@
1
+ /* Reset */
2
+ .defaultSimpleSkin table, .defaultSimpleSkin tbody, .defaultSimpleSkin a, .defaultSimpleSkin img, .defaultSimpleSkin tr, .defaultSimpleSkin div, .defaultSimpleSkin td, .defaultSimpleSkin iframe, .defaultSimpleSkin span, .defaultSimpleSkin * {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000}
3
+
4
+ /* Containers */
5
+ .defaultSimpleSkin {position:relative}
6
+ .defaultSimpleSkin table.mceLayout {background:#F0F0EE; border:1px solid #CCC;}
7
+ .defaultSimpleSkin iframe {display:block; background:#FFF; border-bottom:1px solid #CCC;}
8
+ .defaultSimpleSkin .mceToolbar {height:24px;}
9
+
10
+ /* Layout */
11
+ .defaultSimpleSkin span.mceIcon, .defaultSimpleSkin img.mceIcon {display:block; width:20px; height:20px}
12
+ .defaultSimpleSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px}
13
+
14
+ /* Button */
15
+ .defaultSimpleSkin .mceButton {display:block; border:1px solid #F0F0EE; width:20px; height:20px}
16
+ .defaultSimpleSkin a.mceButtonEnabled:hover {border:1px solid #0A246A; background-color:#B2BBD0}
17
+ .defaultSimpleSkin a.mceButtonActive {border:1px solid #0A246A; background-color:#C2CBE0}
18
+ .defaultSimpleSkin .mceButtonDisabled span {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
19
+
20
+ /* Separator */
21
+ .defaultSimpleSkin .mceSeparator {display:block; background:url(../../img/icons.gif) -180px 0; width:2px; height:20px; margin:0 2px 0 4px}
22
+
23
+ /* Theme */
24
+ .defaultSimpleSkin span.mce_bold {background-position:0 0}
25
+ .defaultSimpleSkin span.mce_italic {background-position:-60px 0}
26
+ .defaultSimpleSkin span.mce_underline {background-position:-140px 0}
27
+ .defaultSimpleSkin span.mce_strikethrough {background-position:-120px 0}
28
+ .defaultSimpleSkin span.mce_undo {background-position:-160px 0}
29
+ .defaultSimpleSkin span.mce_redo {background-position:-100px 0}
30
+ .defaultSimpleSkin span.mce_cleanup {background-position:-40px 0}
31
+ .defaultSimpleSkin span.mce_insertunorderedlist {background-position:-20px 0}
32
+ .defaultSimpleSkin span.mce_insertorderedlist {background-position:-80px 0}
@@ -0,0 +1,17 @@
1
+ body, td, pre {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;}
2
+
3
+ body {background: #FFF;}
4
+ .mceVisualAid {border: 1px dashed #BBB;}
5
+
6
+ /* IE */
7
+
8
+ * html body {
9
+ scrollbar-3dlight-color: #F0F0EE;
10
+ scrollbar-arrow-color: #676662;
11
+ scrollbar-base-color: #F0F0EE;
12
+ scrollbar-darkshadow-color: #DDDDDD;
13
+ scrollbar-face-color: #E0E0DD;
14
+ scrollbar-highlight-color: #F0F0EE;
15
+ scrollbar-shadow-color: #F0F0EE;
16
+ scrollbar-track-color: #F5F5F5;
17
+ }
@@ -0,0 +1,35 @@
1
+ /* Reset */
2
+ .o2k7SimpleSkin table, .o2k7SimpleSkin tbody, .o2k7SimpleSkin a, .o2k7SimpleSkin img, .o2k7SimpleSkin tr, .o2k7SimpleSkin div, .o2k7SimpleSkin td, .o2k7SimpleSkin iframe, .o2k7SimpleSkin span, .o2k7SimpleSkin * {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000}
3
+
4
+ /* Containers */
5
+ .o2k7SimpleSkin {position:relative}
6
+ .o2k7SimpleSkin table.mceLayout {background:#E5EFFD; border:1px solid #ABC6DD;}
7
+ .o2k7SimpleSkin iframe {display:block; background:#FFF; border-bottom:1px solid #ABC6DD;}
8
+ .o2k7SimpleSkin .mceToolbar {height:26px;}
9
+
10
+ /* Layout */
11
+ .o2k7SimpleSkin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; }
12
+ .o2k7SimpleSkin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px}
13
+ .o2k7SimpleSkin span.mceIcon, .o2k7SimpleSkin img.mceIcon {display:block; width:20px; height:20px}
14
+ .o2k7SimpleSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px}
15
+
16
+ /* Button */
17
+ .o2k7SimpleSkin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px}
18
+ .o2k7SimpleSkin a.mceButton span, .o2k7SimpleSkin a.mceButton img {margin:1px 0 0 1px}
19
+ .o2k7SimpleSkin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px}
20
+ .o2k7SimpleSkin a.mceButtonActive {background-position:0 -44px}
21
+ .o2k7SimpleSkin .mceButtonDisabled span {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
22
+
23
+ /* Separator */
24
+ .o2k7SimpleSkin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px}
25
+
26
+ /* Theme */
27
+ .o2k7SimpleSkin span.mce_bold {background-position:0 0}
28
+ .o2k7SimpleSkin span.mce_italic {background-position:-60px 0}
29
+ .o2k7SimpleSkin span.mce_underline {background-position:-140px 0}
30
+ .o2k7SimpleSkin span.mce_strikethrough {background-position:-120px 0}
31
+ .o2k7SimpleSkin span.mce_undo {background-position:-160px 0}
32
+ .o2k7SimpleSkin span.mce_redo {background-position:-100px 0}
33
+ .o2k7SimpleSkin span.mce_cleanup {background-position:-40px 0}
34
+ .o2k7SimpleSkin span.mce_insertunorderedlist {background-position:-20px 0}
35
+ .o2k7SimpleSkin span.mce_insertorderedlist {background-position:-80px 0}