beautiful_scaffold 0.3.5 → 2.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. checksums.yaml +7 -0
  2. data/.gitattributes +2 -0
  3. data/.gitignore +1 -0
  4. data/CHANGELOG +66 -1
  5. data/Gemfile +24 -17
  6. data/Gemfile.lock +209 -0
  7. data/README.rdoc +56 -44
  8. data/Rakefile +32 -0
  9. data/beautiful_scaffold.gemspec +8 -5
  10. data/lib/beautiful_scaffold/version.rb +3 -0
  11. data/lib/generators/beautiful_devisecancan_generator.rb +1 -1
  12. data/lib/generators/beautiful_jointable_generator.rb +40 -7
  13. data/lib/generators/beautiful_locale_generator.rb +102 -80
  14. data/lib/generators/beautiful_migration_generator.rb +12 -20
  15. data/lib/generators/beautiful_scaffold_common_methods.rb +88 -29
  16. data/lib/generators/beautiful_scaffold_generator.rb +166 -111
  17. data/lib/generators/templates/app/assets/javascripts/application-bs.js +11 -19
  18. data/lib/generators/templates/app/assets/javascripts/beautiful_scaffold.js +68 -78
  19. data/lib/generators/templates/app/assets/javascripts/bootstrap-datetimepicker-for-beautiful-scaffold.js +23 -42
  20. data/lib/generators/templates/app/assets/javascripts/fixed_menu.js +3 -1
  21. data/lib/generators/templates/app/assets/javascripts/jstree.min.js +6 -0
  22. data/lib/generators/templates/app/assets/stylesheets/application-bs.css +14 -12
  23. data/lib/generators/templates/app/assets/stylesheets/beautiful-scaffold.css.scss +36 -3
  24. data/lib/generators/templates/app/assets/stylesheets/themes/default-dark/32px.png +0 -0
  25. data/lib/generators/templates/app/assets/stylesheets/themes/default-dark/40px.png +0 -0
  26. data/lib/generators/templates/app/assets/stylesheets/themes/default-dark/style.scss +1146 -0
  27. data/lib/generators/templates/app/assets/stylesheets/themes/default-dark/throbber.gif +0 -0
  28. data/lib/generators/templates/app/assets/stylesheets/themes/default/32px.png +0 -0
  29. data/lib/generators/templates/app/assets/stylesheets/themes/default/40px.png +0 -0
  30. data/lib/generators/templates/app/assets/stylesheets/themes/default/style.scss +1102 -0
  31. data/lib/generators/templates/app/assets/stylesheets/themes/default/throbber.gif +0 -0
  32. data/lib/generators/templates/app/controllers/base.rb +32 -15
  33. data/lib/generators/templates/app/controllers/master_base.rb +55 -47
  34. data/lib/generators/templates/app/helpers/beautiful_helper.rb +104 -67
  35. data/lib/generators/templates/app/helpers/model_helper.rb +14 -3
  36. data/lib/generators/templates/app/initializers/link_renderer.rb +24 -17
  37. data/lib/generators/templates/app/initializers/ransack.rb +16 -0
  38. data/lib/generators/templates/app/locales/beautiful_scaffold.ja.yml +50 -0
  39. data/lib/generators/templates/app/models/concerns/fulltext_concern.rb +10 -10
  40. data/lib/generators/templates/app/views/_form.html.erb +5 -2
  41. data/lib/generators/templates/app/views/_form_habtm_tag.html.erb +6 -2
  42. data/lib/generators/templates/app/views/_mass_inserting.html.erb +40 -31
  43. data/lib/generators/templates/app/views/_modal_columns.html.erb +4 -4
  44. data/lib/generators/templates/app/views/edit.html.erb +1 -3
  45. data/lib/generators/templates/app/views/index.html.erb +84 -58
  46. data/lib/generators/templates/app/views/layout.html.erb +29 -47
  47. data/lib/generators/templates/app/views/new.html.erb +0 -2
  48. data/lib/generators/templates/app/views/partials/_forget_password.html.erb +2 -2
  49. data/lib/generators/templates/app/views/partials/_form_field.html.erb +7 -33
  50. data/lib/generators/templates/app/views/partials/_index_batch.html.erb +1 -1
  51. data/lib/generators/templates/app/views/partials/_index_column.html.erb +4 -6
  52. data/lib/generators/templates/app/views/partials/_index_header.html.erb +1 -1
  53. data/lib/generators/templates/app/views/partials/_index_search.html.erb +2 -4
  54. data/lib/generators/templates/app/views/partials/_index_search_default_fields.html.erb +1 -1
  55. data/lib/generators/templates/app/views/partials/_register_form.html.erb +2 -2
  56. data/lib/generators/templates/app/views/partials/_show_field.html.erb +3 -3
  57. data/lib/generators/templates/app/views/partials/_sign_in_form.html.erb +1 -1
  58. data/lib/generators/templates/app/views/partials/_sign_in_sign_out.html.erb +2 -2
  59. data/lib/generators/templates/app/views/show.html.erb +2 -2
  60. data/lib/generators/templates/app/views/treeview.html.erb +8 -5
  61. metadata +43 -188
  62. data/lib/generators/templates/app/assets/javascripts/bootstrap-datepicker.js +0 -834
  63. data/lib/generators/templates/app/assets/javascripts/bootstrap-timepicker.js +0 -797
  64. data/lib/generators/templates/app/assets/javascripts/jquery.jstree.js +0 -4551
  65. data/lib/generators/templates/app/assets/javascripts/jquery.livequery.js +0 -226
  66. data/lib/generators/templates/app/assets/stylesheets/bootstrap_and_overrides.css.less +0 -40
  67. data/lib/generators/templates/app/assets/stylesheets/datepicker.css +0 -224
  68. data/lib/generators/templates/app/assets/stylesheets/reset.css +0 -48
  69. data/lib/generators/templates/app/assets/stylesheets/themes/default/d.gif +0 -0
  70. data/lib/generators/templates/app/assets/stylesheets/themes/default/d.png +0 -0
  71. data/lib/generators/templates/app/assets/stylesheets/themes/default/style.css +0 -74
  72. data/lib/generators/templates/app/assets/stylesheets/timepicker.css +0 -89
  73. data/lib/generators/templates/markitup/jquery.markitup.js +0 -593
  74. data/lib/generators/templates/markitup/sets/bbcode/images/bold.png +0 -0
  75. data/lib/generators/templates/markitup/sets/bbcode/images/clean.png +0 -0
  76. data/lib/generators/templates/markitup/sets/bbcode/images/code.png +0 -0
  77. data/lib/generators/templates/markitup/sets/bbcode/images/fonts.png +0 -0
  78. data/lib/generators/templates/markitup/sets/bbcode/images/italic.png +0 -0
  79. data/lib/generators/templates/markitup/sets/bbcode/images/link.png +0 -0
  80. data/lib/generators/templates/markitup/sets/bbcode/images/list-bullet.png +0 -0
  81. data/lib/generators/templates/markitup/sets/bbcode/images/list-item.png +0 -0
  82. data/lib/generators/templates/markitup/sets/bbcode/images/list-numeric.png +0 -0
  83. data/lib/generators/templates/markitup/sets/bbcode/images/picture.png +0 -0
  84. data/lib/generators/templates/markitup/sets/bbcode/images/preview.png +0 -0
  85. data/lib/generators/templates/markitup/sets/bbcode/images/quotes.png +0 -0
  86. data/lib/generators/templates/markitup/sets/bbcode/images/stroke.png +0 -0
  87. data/lib/generators/templates/markitup/sets/bbcode/images/underline.png +0 -0
  88. data/lib/generators/templates/markitup/sets/bbcode/readme.txt +0 -11
  89. data/lib/generators/templates/markitup/sets/bbcode/set.js +0 -39
  90. data/lib/generators/templates/markitup/sets/bbcode/style.css +0 -47
  91. data/lib/generators/templates/markitup/sets/default/images/bold.png +0 -0
  92. data/lib/generators/templates/markitup/sets/default/images/clean.png +0 -0
  93. data/lib/generators/templates/markitup/sets/default/images/image.png +0 -0
  94. data/lib/generators/templates/markitup/sets/default/images/italic.png +0 -0
  95. data/lib/generators/templates/markitup/sets/default/images/link.png +0 -0
  96. data/lib/generators/templates/markitup/sets/default/images/list-bullet.png +0 -0
  97. data/lib/generators/templates/markitup/sets/default/images/list-numeric.png +0 -0
  98. data/lib/generators/templates/markitup/sets/default/images/picture.png +0 -0
  99. data/lib/generators/templates/markitup/sets/default/images/preview.png +0 -0
  100. data/lib/generators/templates/markitup/sets/default/images/stroke.png +0 -0
  101. data/lib/generators/templates/markitup/sets/default/set.js +0 -30
  102. data/lib/generators/templates/markitup/sets/default/style.css +0 -34
  103. data/lib/generators/templates/markitup/sets/html/images/bold.png +0 -0
  104. data/lib/generators/templates/markitup/sets/html/images/clean.png +0 -0
  105. data/lib/generators/templates/markitup/sets/html/images/h1.png +0 -0
  106. data/lib/generators/templates/markitup/sets/html/images/h2.png +0 -0
  107. data/lib/generators/templates/markitup/sets/html/images/h3.png +0 -0
  108. data/lib/generators/templates/markitup/sets/html/images/h4.png +0 -0
  109. data/lib/generators/templates/markitup/sets/html/images/h5.png +0 -0
  110. data/lib/generators/templates/markitup/sets/html/images/h6.png +0 -0
  111. data/lib/generators/templates/markitup/sets/html/images/image.png +0 -0
  112. data/lib/generators/templates/markitup/sets/html/images/italic.png +0 -0
  113. data/lib/generators/templates/markitup/sets/html/images/link.png +0 -0
  114. data/lib/generators/templates/markitup/sets/html/images/list-bullet.png +0 -0
  115. data/lib/generators/templates/markitup/sets/html/images/list-item.png +0 -0
  116. data/lib/generators/templates/markitup/sets/html/images/list-numeric.png +0 -0
  117. data/lib/generators/templates/markitup/sets/html/images/paragraph.png +0 -0
  118. data/lib/generators/templates/markitup/sets/html/images/picture.png +0 -0
  119. data/lib/generators/templates/markitup/sets/html/images/preview.png +0 -0
  120. data/lib/generators/templates/markitup/sets/html/images/stroke.png +0 -0
  121. data/lib/generators/templates/markitup/sets/html/readme.txt +0 -11
  122. data/lib/generators/templates/markitup/sets/html/set.js +0 -39
  123. data/lib/generators/templates/markitup/sets/html/style.css +0 -59
  124. data/lib/generators/templates/markitup/sets/markdown/images/bold.png +0 -0
  125. data/lib/generators/templates/markitup/sets/markdown/images/code.png +0 -0
  126. data/lib/generators/templates/markitup/sets/markdown/images/h1.png +0 -0
  127. data/lib/generators/templates/markitup/sets/markdown/images/h2.png +0 -0
  128. data/lib/generators/templates/markitup/sets/markdown/images/h3.png +0 -0
  129. data/lib/generators/templates/markitup/sets/markdown/images/h4.png +0 -0
  130. data/lib/generators/templates/markitup/sets/markdown/images/h5.png +0 -0
  131. data/lib/generators/templates/markitup/sets/markdown/images/h6.png +0 -0
  132. data/lib/generators/templates/markitup/sets/markdown/images/italic.png +0 -0
  133. data/lib/generators/templates/markitup/sets/markdown/images/link.png +0 -0
  134. data/lib/generators/templates/markitup/sets/markdown/images/list-bullet.png +0 -0
  135. data/lib/generators/templates/markitup/sets/markdown/images/list-numeric.png +0 -0
  136. data/lib/generators/templates/markitup/sets/markdown/images/picture.png +0 -0
  137. data/lib/generators/templates/markitup/sets/markdown/images/preview.png +0 -0
  138. data/lib/generators/templates/markitup/sets/markdown/images/quotes.png +0 -0
  139. data/lib/generators/templates/markitup/sets/markdown/readme.txt +0 -11
  140. data/lib/generators/templates/markitup/sets/markdown/set.js +0 -52
  141. data/lib/generators/templates/markitup/sets/markdown/style.css +0 -54
  142. data/lib/generators/templates/markitup/sets/textile/images/bold.png +0 -0
  143. data/lib/generators/templates/markitup/sets/textile/images/code.png +0 -0
  144. data/lib/generators/templates/markitup/sets/textile/images/h1.png +0 -0
  145. data/lib/generators/templates/markitup/sets/textile/images/h2.png +0 -0
  146. data/lib/generators/templates/markitup/sets/textile/images/h3.png +0 -0
  147. data/lib/generators/templates/markitup/sets/textile/images/h4.png +0 -0
  148. data/lib/generators/templates/markitup/sets/textile/images/h5.png +0 -0
  149. data/lib/generators/templates/markitup/sets/textile/images/h6.png +0 -0
  150. data/lib/generators/templates/markitup/sets/textile/images/italic.png +0 -0
  151. data/lib/generators/templates/markitup/sets/textile/images/link.png +0 -0
  152. data/lib/generators/templates/markitup/sets/textile/images/list-bullet.png +0 -0
  153. data/lib/generators/templates/markitup/sets/textile/images/list-numeric.png +0 -0
  154. data/lib/generators/templates/markitup/sets/textile/images/paragraph.png +0 -0
  155. data/lib/generators/templates/markitup/sets/textile/images/picture.png +0 -0
  156. data/lib/generators/templates/markitup/sets/textile/images/preview.png +0 -0
  157. data/lib/generators/templates/markitup/sets/textile/images/quotes.png +0 -0
  158. data/lib/generators/templates/markitup/sets/textile/images/stroke.png +0 -0
  159. data/lib/generators/templates/markitup/sets/textile/readme.txt +0 -11
  160. data/lib/generators/templates/markitup/sets/textile/set.js +0 -40
  161. data/lib/generators/templates/markitup/sets/textile/style.css +0 -60
  162. data/lib/generators/templates/markitup/sets/wiki/images/bold.png +0 -0
  163. data/lib/generators/templates/markitup/sets/wiki/images/code.png +0 -0
  164. data/lib/generators/templates/markitup/sets/wiki/images/h1.png +0 -0
  165. data/lib/generators/templates/markitup/sets/wiki/images/h2.png +0 -0
  166. data/lib/generators/templates/markitup/sets/wiki/images/h3.png +0 -0
  167. data/lib/generators/templates/markitup/sets/wiki/images/h4.png +0 -0
  168. data/lib/generators/templates/markitup/sets/wiki/images/h5.png +0 -0
  169. data/lib/generators/templates/markitup/sets/wiki/images/h6.png +0 -0
  170. data/lib/generators/templates/markitup/sets/wiki/images/italic.png +0 -0
  171. data/lib/generators/templates/markitup/sets/wiki/images/link.png +0 -0
  172. data/lib/generators/templates/markitup/sets/wiki/images/list-bullet.png +0 -0
  173. data/lib/generators/templates/markitup/sets/wiki/images/list-numeric.png +0 -0
  174. data/lib/generators/templates/markitup/sets/wiki/images/picture.png +0 -0
  175. data/lib/generators/templates/markitup/sets/wiki/images/preview.png +0 -0
  176. data/lib/generators/templates/markitup/sets/wiki/images/quotes.png +0 -0
  177. data/lib/generators/templates/markitup/sets/wiki/images/stroke.png +0 -0
  178. data/lib/generators/templates/markitup/sets/wiki/images/url.png +0 -0
  179. data/lib/generators/templates/markitup/sets/wiki/readme.txt +0 -11
  180. data/lib/generators/templates/markitup/sets/wiki/set.js +0 -37
  181. data/lib/generators/templates/markitup/sets/wiki/style.css +0 -57
  182. data/lib/generators/templates/markitup/skins/markitup/images/bg-container.png +0 -0
  183. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-bbcode.png +0 -0
  184. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-dotclear.png +0 -0
  185. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-html.png +0 -0
  186. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-json.png +0 -0
  187. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-markdown.png +0 -0
  188. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-textile.png +0 -0
  189. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-wiki.png +0 -0
  190. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-xml.png +0 -0
  191. data/lib/generators/templates/markitup/skins/markitup/images/bg-editor.png +0 -0
  192. data/lib/generators/templates/markitup/skins/markitup/images/handle.png +0 -0
  193. data/lib/generators/templates/markitup/skins/markitup/images/menu.png +0 -0
  194. data/lib/generators/templates/markitup/skins/markitup/images/submenu.png +0 -0
  195. data/lib/generators/templates/markitup/skins/markitup/style.css +0 -147
  196. data/lib/generators/templates/markitup/skins/simple/images/handle.png +0 -0
  197. data/lib/generators/templates/markitup/skins/simple/images/menu.png +0 -0
  198. data/lib/generators/templates/markitup/skins/simple/images/submenu.png +0 -0
  199. data/lib/generators/templates/markitup/skins/simple/style.css +0 -118
  200. data/lib/generators/templates/markitup/templates/preview.css +0 -5
  201. data/lib/generators/templates/markitup/templates/preview.html +0 -11
@@ -1,54 +0,0 @@
1
- /* -------------------------------------------------------------------
2
- // markItUp!
3
- // By Jay Salvat - http://markitup.jaysalvat.com/
4
- // ------------------------------------------------------------------*/
5
- .markdown .markItUpButton1 a {
6
- background-image:url(images/h1.png);
7
- }
8
- .markdown .markItUpButton2 a {
9
- background-image:url(images/h2.png);
10
- }
11
- .markdown .markItUpButton3 a {
12
- background-image:url(images/h3.png);
13
- }
14
- .markdown .markItUpButton4 a {
15
- background-image:url(images/h4.png);
16
- }
17
- .markdown .markItUpButton5 a {
18
- background-image:url(images/h5.png);
19
- }
20
- .markdown .markItUpButton6 a {
21
- background-image:url(images/h6.png);
22
- }
23
-
24
- .markdown .markItUpButton7 a {
25
- background-image:url(images/bold.png);
26
- }
27
- .markdown .markItUpButton8 a {
28
- background-image:url(images/italic.png);
29
- }
30
-
31
- .markdown .markItUpButton9 a {
32
- background-image:url(images/list-bullet.png);
33
- }
34
- .markdown .markItUpButton10 a {
35
- background-image:url(images/list-numeric.png);
36
- }
37
-
38
- .markdown .markItUpButton11 a {
39
- background-image:url(images/picture.png);
40
- }
41
- .markdown .markItUpButton12 a {
42
- background-image:url(images/link.png);
43
- }
44
-
45
- .markdown .markItUpButton13 a {
46
- background-image:url(images/quotes.png);
47
- }
48
- .markdown .markItUpButton14 a {
49
- background-image:url(images/code.png);
50
- }
51
-
52
- .markdown .preview a {
53
- background-image:url(images/preview.png);
54
- }
@@ -1,11 +0,0 @@
1
- Markup language:
2
- Textile
3
-
4
- Description:
5
- A basic Textile markup set with Headings, Bold, Italic, Stroke through, Picture, Link, List, Quotes, Code, Preview button.
6
-
7
- Install:
8
- - Download the zip file
9
- - Unzip it in your markItUp! sets folder
10
- - Modify your JS link to point at this set.js
11
- - Modify your CSS link to point at this style.css
@@ -1,40 +0,0 @@
1
- // -------------------------------------------------------------------
2
- // markItUp!
3
- // -------------------------------------------------------------------
4
- // Copyright (C) 2008 Jay Salvat
5
- // http://markitup.jaysalvat.com/
6
- // -------------------------------------------------------------------
7
- // Textile tags example
8
- // http://en.wikipedia.org/wiki/Textile_(markup_language)
9
- // http://www.textism.com/
10
- // -------------------------------------------------------------------
11
- // Feel free to add more tags
12
- // -------------------------------------------------------------------
13
- myTextileSettings = {
14
- previewParserPath: '', // path to your Textile parser
15
- onShiftEnter: {keepDefault:false, replaceWith:'\n\n'},
16
- markupSet: [
17
- {name:'Heading 1', key:'1', openWith:'h1(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
18
- {name:'Heading 2', key:'2', openWith:'h2(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
19
- {name:'Heading 3', key:'3', openWith:'h3(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
20
- {name:'Heading 4', key:'4', openWith:'h4(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
21
- {name:'Heading 5', key:'5', openWith:'h5(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
22
- {name:'Heading 6', key:'6', openWith:'h6(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
23
- {name:'Paragraph', key:'P', openWith:'p(!(([![Class]!]))!). '},
24
- {separator:'---------------' },
25
- {name:'Bold', key:'B', closeWith:'*', openWith:'*'},
26
- {name:'Italic', key:'I', closeWith:'_', openWith:'_'},
27
- {name:'Stroke through', key:'S', closeWith:'-', openWith:'-'},
28
- {separator:'---------------' },
29
- {name:'Bulleted list', openWith:'(!(* |!|*)!)'},
30
- {name:'Numeric list', openWith:'(!(# |!|#)!)'},
31
- {separator:'---------------' },
32
- {name:'Picture', replaceWith:'![![Source:!:http://]!]([![Alternative text]!])!'},
33
- {name:'Link', openWith:'"', closeWith:'([![Title]!])":[![Link:!:http://]!]', placeHolder:'Your text to link here...' },
34
- {separator:'---------------' },
35
- {name:'Quotes', openWith:'bq(!(([![Class]!]))!). '},
36
- {name:'Code', openWith:'@', closeWith:'@'},
37
- {separator:'---------------' },
38
- {name:'Preview', call:'preview', className:'preview'}
39
- ]
40
- }
@@ -1,60 +0,0 @@
1
- /* -------------------------------------------------------------------
2
- // markItUp!
3
- // By Jay Salvat - http://markitup.jaysalvat.com/
4
- // ------------------------------------------------------------------*/
5
- .textile .markItUpButton1 a {
6
- background-image:url(images/h1.png);
7
- }
8
- .textile .markItUpButton2 a {
9
- background-image:url(images/h2.png);
10
- }
11
- .textile .markItUpButton3 a {
12
- background-image:url(images/h3.png);
13
- }
14
- .textile .markItUpButton4 a {
15
- background-image:url(images/h4.png);
16
- }
17
- .textile .markItUpButton5 a {
18
- background-image:url(images/h5.png);
19
- }
20
- .textile .markItUpButton6 a {
21
- background-image:url(images/h6.png);
22
- }
23
- .textile .markItUpButton7 a {
24
- background-image:url(images/paragraph.png);
25
- }
26
-
27
- .textile .markItUpButton8 a {
28
- background-image:url(images/bold.png);
29
- }
30
- .textile .markItUpButton9 a {
31
- background-image:url(images/italic.png);
32
- }
33
- .textile .markItUpButton10 a {
34
- background-image:url(images/stroke.png);
35
- }
36
-
37
- .textile .markItUpButton11 a {
38
- background-image:url(images/list-bullet.png);
39
- }
40
- .textile .markItUpButton12 a {
41
- background-image:url(images/list-numeric.png);
42
- }
43
-
44
- .textile .markItUpButton13 a {
45
- background-image:url(images/picture.png);
46
- }
47
- .textile .markItUpButton14 a {
48
- background-image:url(images/link.png);
49
- }
50
-
51
- .textile .markItUpButton15 a {
52
- background-image:url(images/quotes.png);
53
- }
54
- .textile .markItUpButton16 a {
55
- background-image:url(images/code.png);
56
- }
57
-
58
- .textile .preview a {
59
- background-image:url(images/preview.png);
60
- }
@@ -1,11 +0,0 @@
1
- Markup language:
2
- Wiki
3
-
4
- Description:
5
- A basic Wiki markup set with Headings, Bold, Italic, Stroke through, Picture, Link, List, Quotes, Code, Preview button.
6
-
7
- Install:
8
- - Download the zip file
9
- - Unzip it in your markItUp! sets folder
10
- - Modify your JS link to point at this set.js
11
- - Modify your CSS link to point at this style.css
@@ -1,37 +0,0 @@
1
- // -------------------------------------------------------------------
2
- // markItUp!
3
- // -------------------------------------------------------------------
4
- // Copyright (C) 2008 Jay Salvat
5
- // http://markitup.jaysalvat.com/
6
- // -------------------------------------------------------------------
7
- // Mediawiki Wiki tags example
8
- // -------------------------------------------------------------------
9
- // Feel free to add more tags
10
- // -------------------------------------------------------------------
11
- myWikiSettings = {
12
- previewParserPath: '', // path to your Wiki parser
13
- onShiftEnter: {keepDefault:false, replaceWith:'\n\n'},
14
- markupSet: [
15
- {name:'Heading 1', key:'1', openWith:'== ', closeWith:' ==', placeHolder:'Your title here...' },
16
- {name:'Heading 2', key:'2', openWith:'=== ', closeWith:' ===', placeHolder:'Your title here...' },
17
- {name:'Heading 3', key:'3', openWith:'==== ', closeWith:' ====', placeHolder:'Your title here...' },
18
- {name:'Heading 4', key:'4', openWith:'===== ', closeWith:' =====', placeHolder:'Your title here...' },
19
- {name:'Heading 5', key:'5', openWith:'====== ', closeWith:' ======', placeHolder:'Your title here...' },
20
- {separator:'---------------' },
21
- {name:'Bold', key:'B', openWith:"'''", closeWith:"'''"},
22
- {name:'Italic', key:'I', openWith:"''", closeWith:"''"},
23
- {name:'Stroke through', key:'S', openWith:'<s>', closeWith:'</s>'},
24
- {separator:'---------------' },
25
- {name:'Bulleted list', openWith:'(!(* |!|*)!)'},
26
- {name:'Numeric list', openWith:'(!(# |!|#)!)'},
27
- {separator:'---------------' },
28
- {name:'Picture', key:"P", replaceWith:'[[Image:[![Url:!:http://]!]|[![name]!]]]'},
29
- {name:'Link', key:"L", openWith:"[[![Link]!] ", closeWith:']', placeHolder:'Your text to link here...' },
30
- {name:'Url', openWith:"[[![Url:!:http://]!] ", closeWith:']', placeHolder:'Your text to link here...' },
31
- {separator:'---------------' },
32
- {name:'Quotes', openWith:'(!(> |!|>)!)', placeHolder:''},
33
- {name:'Code', openWith:'(!(<source lang="[![Language:!:php]!]">|!|<pre>)!)', closeWith:'(!(</source>|!|</pre>)!)'},
34
- {separator:'---------------' },
35
- {name:'Preview', call:'preview', className:'preview'}
36
- ]
37
- }
@@ -1,57 +0,0 @@
1
- /* -------------------------------------------------------------------
2
- // markItUp!
3
- // By Jay Salvat - http://markitup.jaysalvat.com/
4
- // ------------------------------------------------------------------*/
5
- .wiki .markItUpButton1 a {
6
- background-image:url(images/h1.png);
7
- }
8
- .wiki .markItUpButton2 a {
9
- background-image:url(images/h2.png);
10
- }
11
- .wiki .markItUpButton3 a {
12
- background-image:url(images/h3.png);
13
- }
14
- .wiki .markItUpButton4 a {
15
- background-image:url(images/h4.png);
16
- }
17
- .wiki .markItUpButton5 a {
18
- background-image:url(images/h5.png);
19
- }
20
-
21
- .wiki .markItUpButton6 a {
22
- background-image:url(images/bold.png);
23
- }
24
- .wiki .markItUpButton7 a {
25
- background-image:url(images/italic.png);
26
- }
27
- .wiki .markItUpButton8 a {
28
- background-image:url(images/stroke.png);
29
- }
30
-
31
- .wiki .markItUpButton9 a {
32
- background-image:url(images/list-bullet.png);
33
- }
34
- .wiki .markItUpButton10 a {
35
- background-image:url(images/list-numeric.png);
36
- }
37
-
38
- .wiki .markItUpButton11 a {
39
- background-image:url(images/picture.png);
40
- }
41
- .wiki .markItUpButton12 a {
42
- background-image:url(images/link.png);
43
- }
44
- .wiki .markItUpButton13 a {
45
- background-image:url(images/url.png);
46
- }
47
-
48
- .wiki .markItUpButton14 a {
49
- background-image:url(images/quotes.png);
50
- }
51
- .wiki .markItUpButton15 a {
52
- background-image:url(images/code.png);
53
- }
54
-
55
- .wiki .preview a {
56
- background-image:url(images/preview.png);
57
- }
@@ -1,147 +0,0 @@
1
- /* -------------------------------------------------------------------
2
- // markItUp! Universal MarkUp Engine, JQuery plugin
3
- // By Jay Salvat - http://markitup.jaysalvat.com/
4
- // ------------------------------------------------------------------*/
5
- .markItUp * {
6
- margin:0px; padding:0px;
7
- outline:none;
8
- }
9
- .markItUp a:link,
10
- .markItUp a:visited {
11
- color:#000;
12
- text-decoration:none;
13
- }
14
- .markItUp {
15
- width:700px;
16
- margin:5px 0 5px 0;
17
- border:5px solid #F5F5F5;
18
- }
19
- .markItUpContainer {
20
- border:1px solid #3C769D;
21
- background:#FFF url(images/bg-container.png) repeat-x top left;
22
- padding:5px 5px 2px 5px;
23
- font:11px Verdana, Arial, Helvetica, sans-serif;
24
- }
25
- .markItUpEditor {
26
- font:12px 'Courier New', Courier, monospace;
27
- padding:5px 5px 5px 35px;
28
- border:3px solid #3C769D;
29
- width:643px;
30
- height:320px;
31
- background:#FFF url(images/bg-editor.png) no-repeat;
32
- clear:both;
33
- line-height:18px;
34
- overflow:auto;
35
- }
36
- .markItUpPreviewFrame {
37
- overflow:auto;
38
- background-color:#FFFFFF;
39
- border:1px solid #3C769D;
40
- width:99.9%;
41
- height:300px;
42
- margin:5px 0;
43
- }
44
- .markItUpFooter {
45
- width:100%;
46
- cursor:n-resize;
47
- }
48
- .markItUpResizeHandle {
49
- overflow:hidden;
50
- width:22px; height:5px;
51
- margin-left:auto;
52
- margin-right:auto;
53
- background-image:url(images/handle.png);
54
- cursor:n-resize;
55
- }
56
- /***************************************************************************************/
57
- /* first row of buttons */
58
- .markItUpHeader ul li {
59
- list-style:none;
60
- float:left;
61
- position:relative;
62
- }
63
- .markItUpHeader ul li ul{
64
- display:none;
65
- }
66
- .markItUpHeader ul li:hover > ul{
67
- display:block;
68
- }
69
- .markItUpHeader ul .markItUpDropMenu {
70
- background:transparent url(images/menu.png) no-repeat 115% 50%;
71
- margin-right:5px;
72
- }
73
- .markItUpHeader ul .markItUpDropMenu li {
74
- margin-right:0px;
75
- }
76
- .markItUpHeader ul .markItUpSeparator {
77
- margin:0 10px;
78
- width:1px;
79
- height:16px;
80
- overflow:hidden;
81
- background-color:#CCC;
82
- }
83
- .markItUpHeader ul ul .markItUpSeparator {
84
- width:auto; height:1px;
85
- margin:0px;
86
- }
87
- /* next rows of buttons */
88
- .markItUpHeader ul ul {
89
- display:none;
90
- position:absolute;
91
- top:18px; left:0px;
92
- background:#F5F5F5;
93
- border:1px solid #3C769D;
94
- height:inherit;
95
- }
96
- .markItUpHeader ul ul li {
97
- float:none;
98
- border-bottom:1px solid #3C769D;
99
- }
100
- .markItUpHeader ul ul .markItUpDropMenu {
101
- background:#F5F5F5 url(images/submenu.png) no-repeat 100% 50%;
102
- }
103
- /* next rows of buttons */
104
- .markItUpHeader ul ul ul {
105
- position:absolute;
106
- top:-1px; left:150px;
107
- }
108
- .markItUpHeader ul ul ul li {
109
- float:none;
110
- }
111
- .markItUpHeader ul a {
112
- display:block;
113
- width:16px; height:16px;
114
- text-indent:-10000px;
115
- background-repeat:no-repeat;
116
- padding:3px;
117
- margin:0px;
118
- }
119
- .markItUpHeader ul ul a {
120
- display:block;
121
- padding-left:0px;
122
- text-indent:0;
123
- width:120px;
124
- padding:5px 5px 5px 25px;
125
- background-position:2px 50%;
126
- }
127
- .markItUpHeader ul ul a:hover {
128
- color:#FFF;
129
- background-color:#3C769D;
130
- }
131
- /***************************************************************************************/
132
- .html .markItUpEditor {
133
- background-image:url(images/bg-editor-html.png);
134
- }
135
- .markdown .markItUpEditor {
136
- background-image:url(images/bg-editor-markdown.png);
137
- }
138
- .textile .markItUpEditor {
139
- background-image:url(images/bg-editor-textile.png);
140
- }
141
- .bbcode .markItUpEditor {
142
- background-image:url(images/bg-editor-bbcode.png);
143
- }
144
- .wiki .markItUpEditor,
145
- .dotclear .markItUpEditor {
146
- background-image:url(images/bg-editor-wiki.png);
147
- }