markitup_erb-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/README.md +71 -0
  5. data/Rakefile +2 -0
  6. data/lib/markitup_erb/rails/engine.rb +8 -0
  7. data/lib/markitup_erb/rails/version.rb +5 -0
  8. data/lib/markitup_erb-rails.rb +7 -0
  9. data/markitup_erb-rails.gemspec +22 -0
  10. data/vendor/assets/images/markitup/sets/bbcode/bold.png +0 -0
  11. data/vendor/assets/images/markitup/sets/bbcode/clean.png +0 -0
  12. data/vendor/assets/images/markitup/sets/bbcode/code.png +0 -0
  13. data/vendor/assets/images/markitup/sets/bbcode/fonts.png +0 -0
  14. data/vendor/assets/images/markitup/sets/bbcode/italic.png +0 -0
  15. data/vendor/assets/images/markitup/sets/bbcode/link.png +0 -0
  16. data/vendor/assets/images/markitup/sets/bbcode/list-bullet.png +0 -0
  17. data/vendor/assets/images/markitup/sets/bbcode/list-item.png +0 -0
  18. data/vendor/assets/images/markitup/sets/bbcode/list-numeric.png +0 -0
  19. data/vendor/assets/images/markitup/sets/bbcode/picture.png +0 -0
  20. data/vendor/assets/images/markitup/sets/bbcode/preview.png +0 -0
  21. data/vendor/assets/images/markitup/sets/bbcode/quotes.png +0 -0
  22. data/vendor/assets/images/markitup/sets/bbcode/stroke.png +0 -0
  23. data/vendor/assets/images/markitup/sets/bbcode/underline.png +0 -0
  24. data/vendor/assets/images/markitup/sets/default/bold.png +0 -0
  25. data/vendor/assets/images/markitup/sets/default/clean.png +0 -0
  26. data/vendor/assets/images/markitup/sets/default/image.png +0 -0
  27. data/vendor/assets/images/markitup/sets/default/italic.png +0 -0
  28. data/vendor/assets/images/markitup/sets/default/link.png +0 -0
  29. data/vendor/assets/images/markitup/sets/default/list-bullet.png +0 -0
  30. data/vendor/assets/images/markitup/sets/default/list-numeric.png +0 -0
  31. data/vendor/assets/images/markitup/sets/default/picture.png +0 -0
  32. data/vendor/assets/images/markitup/sets/default/preview.png +0 -0
  33. data/vendor/assets/images/markitup/sets/default/stroke.png +0 -0
  34. data/vendor/assets/images/markitup/sets/html/bold.png +0 -0
  35. data/vendor/assets/images/markitup/sets/html/clean.png +0 -0
  36. data/vendor/assets/images/markitup/sets/html/h1.png +0 -0
  37. data/vendor/assets/images/markitup/sets/html/h2.png +0 -0
  38. data/vendor/assets/images/markitup/sets/html/h3.png +0 -0
  39. data/vendor/assets/images/markitup/sets/html/h4.png +0 -0
  40. data/vendor/assets/images/markitup/sets/html/h5.png +0 -0
  41. data/vendor/assets/images/markitup/sets/html/h6.png +0 -0
  42. data/vendor/assets/images/markitup/sets/html/image.png +0 -0
  43. data/vendor/assets/images/markitup/sets/html/italic.png +0 -0
  44. data/vendor/assets/images/markitup/sets/html/link.png +0 -0
  45. data/vendor/assets/images/markitup/sets/html/list-bullet.png +0 -0
  46. data/vendor/assets/images/markitup/sets/html/list-item.png +0 -0
  47. data/vendor/assets/images/markitup/sets/html/list-numeric.png +0 -0
  48. data/vendor/assets/images/markitup/sets/html/paragraph.png +0 -0
  49. data/vendor/assets/images/markitup/sets/html/picture.png +0 -0
  50. data/vendor/assets/images/markitup/sets/html/preview.png +0 -0
  51. data/vendor/assets/images/markitup/sets/html/stroke.png +0 -0
  52. data/vendor/assets/images/markitup/sets/markdown/bold.png +0 -0
  53. data/vendor/assets/images/markitup/sets/markdown/code.png +0 -0
  54. data/vendor/assets/images/markitup/sets/markdown/h1.png +0 -0
  55. data/vendor/assets/images/markitup/sets/markdown/h2.png +0 -0
  56. data/vendor/assets/images/markitup/sets/markdown/h3.png +0 -0
  57. data/vendor/assets/images/markitup/sets/markdown/h4.png +0 -0
  58. data/vendor/assets/images/markitup/sets/markdown/h5.png +0 -0
  59. data/vendor/assets/images/markitup/sets/markdown/h6.png +0 -0
  60. data/vendor/assets/images/markitup/sets/markdown/italic.png +0 -0
  61. data/vendor/assets/images/markitup/sets/markdown/link.png +0 -0
  62. data/vendor/assets/images/markitup/sets/markdown/list-bullet.png +0 -0
  63. data/vendor/assets/images/markitup/sets/markdown/list-numeric.png +0 -0
  64. data/vendor/assets/images/markitup/sets/markdown/picture.png +0 -0
  65. data/vendor/assets/images/markitup/sets/markdown/preview.png +0 -0
  66. data/vendor/assets/images/markitup/sets/markdown/quotes.png +0 -0
  67. data/vendor/assets/images/markitup/sets/textile/bold.png +0 -0
  68. data/vendor/assets/images/markitup/sets/textile/code.png +0 -0
  69. data/vendor/assets/images/markitup/sets/textile/h1.png +0 -0
  70. data/vendor/assets/images/markitup/sets/textile/h2.png +0 -0
  71. data/vendor/assets/images/markitup/sets/textile/h3.png +0 -0
  72. data/vendor/assets/images/markitup/sets/textile/h4.png +0 -0
  73. data/vendor/assets/images/markitup/sets/textile/h5.png +0 -0
  74. data/vendor/assets/images/markitup/sets/textile/h6.png +0 -0
  75. data/vendor/assets/images/markitup/sets/textile/italic.png +0 -0
  76. data/vendor/assets/images/markitup/sets/textile/link.png +0 -0
  77. data/vendor/assets/images/markitup/sets/textile/list-bullet.png +0 -0
  78. data/vendor/assets/images/markitup/sets/textile/list-numeric.png +0 -0
  79. data/vendor/assets/images/markitup/sets/textile/paragraph.png +0 -0
  80. data/vendor/assets/images/markitup/sets/textile/picture.png +0 -0
  81. data/vendor/assets/images/markitup/sets/textile/preview.png +0 -0
  82. data/vendor/assets/images/markitup/sets/textile/quotes.png +0 -0
  83. data/vendor/assets/images/markitup/sets/textile/stroke.png +0 -0
  84. data/vendor/assets/images/markitup/sets/wiki/bold.png +0 -0
  85. data/vendor/assets/images/markitup/sets/wiki/code.png +0 -0
  86. data/vendor/assets/images/markitup/sets/wiki/h1.png +0 -0
  87. data/vendor/assets/images/markitup/sets/wiki/h2.png +0 -0
  88. data/vendor/assets/images/markitup/sets/wiki/h3.png +0 -0
  89. data/vendor/assets/images/markitup/sets/wiki/h4.png +0 -0
  90. data/vendor/assets/images/markitup/sets/wiki/h5.png +0 -0
  91. data/vendor/assets/images/markitup/sets/wiki/h6.png +0 -0
  92. data/vendor/assets/images/markitup/sets/wiki/italic.png +0 -0
  93. data/vendor/assets/images/markitup/sets/wiki/link.png +0 -0
  94. data/vendor/assets/images/markitup/sets/wiki/list-bullet.png +0 -0
  95. data/vendor/assets/images/markitup/sets/wiki/list-numeric.png +0 -0
  96. data/vendor/assets/images/markitup/sets/wiki/picture.png +0 -0
  97. data/vendor/assets/images/markitup/sets/wiki/preview.png +0 -0
  98. data/vendor/assets/images/markitup/sets/wiki/quotes.png +0 -0
  99. data/vendor/assets/images/markitup/sets/wiki/stroke.png +0 -0
  100. data/vendor/assets/images/markitup/sets/wiki/url.png +0 -0
  101. data/vendor/assets/images/markitup/skins/markitup/bg-container.png +0 -0
  102. data/vendor/assets/images/markitup/skins/markitup/bg-editor-bbcode.png +0 -0
  103. data/vendor/assets/images/markitup/skins/markitup/bg-editor-dotclear.png +0 -0
  104. data/vendor/assets/images/markitup/skins/markitup/bg-editor-html.png +0 -0
  105. data/vendor/assets/images/markitup/skins/markitup/bg-editor-json.png +0 -0
  106. data/vendor/assets/images/markitup/skins/markitup/bg-editor-markdown.png +0 -0
  107. data/vendor/assets/images/markitup/skins/markitup/bg-editor-textile.png +0 -0
  108. data/vendor/assets/images/markitup/skins/markitup/bg-editor-wiki.png +0 -0
  109. data/vendor/assets/images/markitup/skins/markitup/bg-editor-xml.png +0 -0
  110. data/vendor/assets/images/markitup/skins/markitup/bg-editor.png +0 -0
  111. data/vendor/assets/images/markitup/skins/markitup/handle.png +0 -0
  112. data/vendor/assets/images/markitup/skins/markitup/menu.png +0 -0
  113. data/vendor/assets/images/markitup/skins/markitup/submenu.png +0 -0
  114. data/vendor/assets/images/markitup/skins/simple/handle.png +0 -0
  115. data/vendor/assets/images/markitup/skins/simple/menu.png +0 -0
  116. data/vendor/assets/images/markitup/skins/simple/submenu.png +0 -0
  117. data/vendor/assets/javascripts/markitup/jquery.markitup.js +593 -0
  118. data/vendor/assets/javascripts/markitup/sets/bbcode/set.js +39 -0
  119. data/vendor/assets/javascripts/markitup/sets/default/set.js +30 -0
  120. data/vendor/assets/javascripts/markitup/sets/html/set.js +39 -0
  121. data/vendor/assets/javascripts/markitup/sets/markdown/set.js +52 -0
  122. data/vendor/assets/javascripts/markitup/sets/textile/set.js +40 -0
  123. data/vendor/assets/javascripts/markitup/sets/wiki/set.js +37 -0
  124. data/vendor/assets/stylesheets/markitup/sets/bbcode/style.css.erb +47 -0
  125. data/vendor/assets/stylesheets/markitup/sets/default/style.css.erb +34 -0
  126. data/vendor/assets/stylesheets/markitup/sets/html/style.css.erb +59 -0
  127. data/vendor/assets/stylesheets/markitup/sets/markdown/style.css.erb +54 -0
  128. data/vendor/assets/stylesheets/markitup/sets/textile/style.css.erb +60 -0
  129. data/vendor/assets/stylesheets/markitup/sets/wiki/style.css.erb +57 -0
  130. data/vendor/assets/stylesheets/markitup/skins/markitup/style.css.erb +147 -0
  131. data/vendor/assets/stylesheets/markitup/skins/simple/style.css.erb +118 -0
  132. metadata +196 -0
@@ -0,0 +1,39 @@
1
+ // ----------------------------------------------------------------------------
2
+ // markItUp!
3
+ // ----------------------------------------------------------------------------
4
+ // Copyright (C) 2008 Jay Salvat
5
+ // http://markitup.jaysalvat.com/
6
+ // ----------------------------------------------------------------------------
7
+ // Html tags
8
+ // http://en.wikipedia.org/wiki/html
9
+ // ----------------------------------------------------------------------------
10
+ // Basic set. Feel free to add more tags
11
+ // ----------------------------------------------------------------------------
12
+ mySettings = {
13
+ onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'},
14
+ onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>\n'},
15
+ onTab: {keepDefault:false, openWith:' '},
16
+ markupSet: [
17
+ {name:'Heading 1', key:'1', openWith:'<h1(!( class="[![Class]!]")!)>', closeWith:'</h1>', placeHolder:'Your title here...' },
18
+ {name:'Heading 2', key:'2', openWith:'<h2(!( class="[![Class]!]")!)>', closeWith:'</h2>', placeHolder:'Your title here...' },
19
+ {name:'Heading 3', key:'3', openWith:'<h3(!( class="[![Class]!]")!)>', closeWith:'</h3>', placeHolder:'Your title here...' },
20
+ {name:'Heading 4', key:'4', openWith:'<h4(!( class="[![Class]!]")!)>', closeWith:'</h4>', placeHolder:'Your title here...' },
21
+ {name:'Heading 5', key:'5', openWith:'<h5(!( class="[![Class]!]")!)>', closeWith:'</h5>', placeHolder:'Your title here...' },
22
+ {name:'Heading 6', key:'6', openWith:'<h6(!( class="[![Class]!]")!)>', closeWith:'</h6>', placeHolder:'Your title here...' },
23
+ {name:'Paragraph', openWith:'<p(!( class="[![Class]!]")!)>', closeWith:'</p>' },
24
+ {separator:'---------------' },
25
+ {name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' },
26
+ {name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)' },
27
+ {name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' },
28
+ {separator:'---------------' },
29
+ {name:'Ul', openWith:'<ul>\n', closeWith:'</ul>\n' },
30
+ {name:'Ol', openWith:'<ol>\n', closeWith:'</ol>\n' },
31
+ {name:'Li', openWith:'<li>', closeWith:'</li>' },
32
+ {separator:'---------------' },
33
+ {name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
34
+ {name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' },
35
+ {separator:'---------------' },
36
+ {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },
37
+ {name:'Preview', className:'preview', call:'preview' }
38
+ ]
39
+ }
@@ -0,0 +1,52 @@
1
+ // -------------------------------------------------------------------
2
+ // markItUp!
3
+ // -------------------------------------------------------------------
4
+ // Copyright (C) 2008 Jay Salvat
5
+ // http://markitup.jaysalvat.com/
6
+ // -------------------------------------------------------------------
7
+ // MarkDown tags example
8
+ // http://en.wikipedia.org/wiki/Markdown
9
+ // http://daringfireball.net/projects/markdown/
10
+ // -------------------------------------------------------------------
11
+ // Feel free to add more tags
12
+ // -------------------------------------------------------------------
13
+ mySettings = {
14
+ previewParserPath: '',
15
+ onShiftEnter: {keepDefault:false, openWith:'\n\n'},
16
+ markupSet: [
17
+ {name:'First Level Heading', key:'1', placeHolder:'Your title here...', closeWith:function(markItUp) { return miu.markdownTitle(markItUp, '=') } },
18
+ {name:'Second Level Heading', key:'2', placeHolder:'Your title here...', closeWith:function(markItUp) { return miu.markdownTitle(markItUp, '-') } },
19
+ {name:'Heading 3', key:'3', openWith:'### ', placeHolder:'Your title here...' },
20
+ {name:'Heading 4', key:'4', openWith:'#### ', placeHolder:'Your title here...' },
21
+ {name:'Heading 5', key:'5', openWith:'##### ', placeHolder:'Your title here...' },
22
+ {name:'Heading 6', key:'6', openWith:'###### ', placeHolder:'Your title here...' },
23
+ {separator:'---------------' },
24
+ {name:'Bold', key:'B', openWith:'**', closeWith:'**'},
25
+ {name:'Italic', key:'I', openWith:'_', closeWith:'_'},
26
+ {separator:'---------------' },
27
+ {name:'Bulleted List', openWith:'- ' },
28
+ {name:'Numeric List', openWith:function(markItUp) {
29
+ return markItUp.line+'. ';
30
+ }},
31
+ {separator:'---------------' },
32
+ {name:'Picture', key:'P', replaceWith:'![[![Alternative text]!]]([![Url:!:http://]!] "[![Title]!]")'},
33
+ {name:'Link', key:'L', openWith:'[', closeWith:']([![Url:!:http://]!] "[![Title]!]")', placeHolder:'Your text to link here...' },
34
+ {separator:'---------------'},
35
+ {name:'Quotes', openWith:'> '},
36
+ {name:'Code Block / Code', openWith:'(!(\t|!|`)!)', closeWith:'(!(`)!)'},
37
+ {separator:'---------------'},
38
+ {name:'Preview', call:'preview', className:"preview"}
39
+ ]
40
+ }
41
+
42
+ // mIu nameSpace to avoid conflict.
43
+ miu = {
44
+ markdownTitle: function(markItUp, char) {
45
+ heading = '';
46
+ n = $.trim(markItUp.selection||markItUp.placeHolder).length;
47
+ for(i = 0; i < n; i++) {
48
+ heading += char;
49
+ }
50
+ return '\n'+heading;
51
+ }
52
+ }
@@ -0,0 +1,40 @@
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
+ mySettings = {
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
+ }
@@ -0,0 +1,37 @@
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
+ mySettings = {
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
+ }
@@ -0,0 +1,47 @@
1
+ /* -------------------------------------------------------------------
2
+ // markItUp!
3
+ // By Jay Salvat - http://markitup.jaysalvat.com/
4
+ // ------------------------------------------------------------------*/
5
+ .markItUp .markItUpButton1 a {
6
+ background-image:url(<%= asset_path "markitup/sets/bbcode/bold.png" %>);
7
+ }
8
+ .markItUp .markItUpButton2 a {
9
+ background-image:url(<%= asset_path "markitup/sets/bbcode/italic.png" %>);
10
+ }
11
+ .markItUp .markItUpButton3 a {
12
+ background-image:url(<%= asset_path "markitup/sets/bbcode/underline.png" %>);
13
+ }
14
+
15
+ .markItUp .markItUpButton4 a {
16
+ background-image:url(<%= asset_path "markitup/sets/bbcode/picture.png" %>);
17
+ }
18
+ .markItUp .markItUpButton5 a {
19
+ background-image:url(<%= asset_path "markitup/sets/bbcode/link.png" %>);
20
+ }
21
+
22
+ .markItUp .markItUpButton6 a {
23
+ background-image:url(<%= asset_path "markitup/sets/bbcode/fonts.png" %>);
24
+ }
25
+ .markItUp .markItUpButton7 a {
26
+ background-image:url(<%= asset_path "markitup/sets/bbcode/list-bullet.png" %>);
27
+ }
28
+ .markItUp .markItUpButton8 a {
29
+ background-image:url(<%= asset_path "markitup/sets/bbcode/list-numeric.png" %>);
30
+ }
31
+ .markItUp .markItUpButton9 a {
32
+ background-image:url(<% asset_path "markitup/sets/bbcode/list-item.png" %>);
33
+ }
34
+
35
+ .markItUp .markItUpButton10 a {
36
+ background-image:url(<%= asset_path "markitup/sets/bbcode/quotes.png" %>);
37
+ }
38
+ .markItUp .markItUpButton11 a {
39
+ background-image:url(<%= asset_path "markitup/sets/bbcode/code.png" %>);
40
+ }
41
+
42
+ .markItUp .clean a {
43
+ background-image:url(<%= asset_path "markitup/sets/bbcode/clean.png" %>);
44
+ }
45
+ .markItUp .preview a {
46
+ background-image:url(<%= asset_path "markitup/sets/bbcode/preview.png" %>);
47
+ }
@@ -0,0 +1,34 @@
1
+ /* -------------------------------------------------------------------
2
+ // markItUp!
3
+ // By Jay Salvat - http://markitup.jaysalvat.com/
4
+ // ------------------------------------------------------------------*/
5
+ .markItUp .markItUpButton1 a {
6
+ background-image:url(<%= asset_path "markitup/sets/default/bold.png" %>);
7
+ }
8
+ .markItUp .markItUpButton2 a {
9
+ background-image:url(<%= asset_path "markitup/sets/default/italic.png" %>);
10
+ }
11
+ .markItUp .markItUpButton3 a {
12
+ background-image:url(<%= asset_path "markitup/sets/default/stroke.png" %>);
13
+ }
14
+
15
+ .markItUp .markItUpButton4 a {
16
+ background-image:url(<%= asset_path "markitup/sets/default/list-bullet.png" %>);
17
+ }
18
+ .markItUp .markItUpButton5 a {
19
+ background-image:url(<%= asset_path "markitup/sets/default/list-numeric.png" %>);
20
+ }
21
+
22
+ .markItUp .markItUpButton6 a {
23
+ background-image:url(<%= asset_path "markitup/sets/default/picture.png" %>);
24
+ }
25
+ .markItUp .markItUpButton7 a {
26
+ background-image:url(<%= asset_path "markitup/sets/default/link.png" %>);
27
+ }
28
+
29
+ .markItUp .markItUpButton8 a {
30
+ background-image:url(<%= asset_path "markitup/sets/default/clean.png" %>);
31
+ }
32
+ .markItUp .preview a {
33
+ background-image:url(<%= asset_path "markitup/sets/default/preview.png" %>);
34
+ }
@@ -0,0 +1,59 @@
1
+ /* -------------------------------------------------------------------
2
+ // markItUp!
3
+ // By Jay Salvat - http://markitup.jaysalvat.com/
4
+ // ------------------------------------------------------------------*/
5
+ .markItUp .markItUpButton1 a {
6
+ background-image:url(<%= asset_path "markitup/sets/html/h1.png" %>);
7
+ }
8
+ .markItUp .markItUpButton2 a {
9
+ background-image:url(<%= asset_path "markitup/sets/html/h2.png" %>);
10
+ }
11
+ .markItUp .markItUpButton3 a {
12
+ background-image:url(<%= asset_path "markitup/sets/html/h3.png" %>);
13
+ }
14
+ .markItUp .markItUpButton4 a {
15
+ background-image:url(<%= asset_path "markitup/sets/html/h4.png" %>);
16
+ }
17
+ .markItUp .markItUpButton5 a {
18
+ background-image:url(<%= asset_path "markitup/sets/html/h5.png" %>);
19
+ }
20
+ .markItUp .markItUpButton6 a {
21
+ background-image:url(<%= asset_path "markitup/sets/html/h6.png" %>);
22
+ }
23
+ .markItUp .markItUpButton7 a {
24
+ background-image:url(<%= asset_path "markitup/sets/html/paragraph.png" %>);
25
+ }
26
+
27
+ .markItUp .markItUpButton8 a {
28
+ background-image:url(<%= asset_path "markitup/sets/html/bold.png" %>);
29
+ }
30
+ .markItUp .markItUpButton9 a {
31
+ background-image:url(<%= asset_path "markitup/sets/html/italic.png" %>);
32
+ }
33
+ .markItUp .markItUpButton10 a {
34
+ background-image:url(<%= asset_path "markitup/sets/html/stroke.png" %>);
35
+ }
36
+
37
+ .markItUp .markItUpButton11 a {
38
+ background-image:url(<%= asset_path "markitup/sets/html/list-bullet.png" %>);
39
+ }
40
+ .markItUp .markItUpButton12 a {
41
+ background-image:url(<%= asset_path "markitup/sets/html/list-numeric.png" %>);
42
+ }
43
+ .markItUp .markItUpButton13 a {
44
+ background-image:url(<%= asset_path "markitup/sets/html/list-item.png" %>);
45
+ }
46
+
47
+ .markItUp .markItUpButton14 a {
48
+ background-image:url(<%= asset_path "markitup/sets/html/picture.png" %>);
49
+ }
50
+ .markItUp .markItUpButton15 a {
51
+ background-image:url(<%= asset_path "markitup/sets/html/link.png" %>);
52
+ }
53
+
54
+ .markItUp .clean a {
55
+ background-image:url(<%= asset_path "markitup/sets/html/clean.png" %>);
56
+ }
57
+ .markItUp .preview a {
58
+ background-image:url(<%= asset_path "markitup/sets/html/preview.png" %>);
59
+ }
@@ -0,0 +1,54 @@
1
+ /* -------------------------------------------------------------------
2
+ // markItUp!
3
+ // By Jay Salvat - http://markitup.jaysalvat.com/
4
+ // ------------------------------------------------------------------*/
5
+ .markItUp .markItUpButton1 a {
6
+ background-image:url(<%= asset_path "markitup/sets/markdown/h1.png" %>);
7
+ }
8
+ .markItUp .markItUpButton2 a {
9
+ background-image:url(<%= asset_path "markitup/sets/markdown/h2.png" %>);
10
+ }
11
+ .markItUp .markItUpButton3 a {
12
+ background-image:url(<%= asset_path "markitup/sets/markdown/h3.png" %>);
13
+ }
14
+ .markItUp .markItUpButton4 a {
15
+ background-image:url(<%= asset_path "markitup/sets/markdown/h4.png" %>);
16
+ }
17
+ .markItUp .markItUpButton5 a {
18
+ background-image:url(<%= asset_path "markitup/sets/markdown/h5.png" %>);
19
+ }
20
+ .markItUp .markItUpButton6 a {
21
+ background-image:url(<%= asset_path "markitup/sets/markdown/h6.png" %>);
22
+ }
23
+
24
+ .markItUp .markItUpButton7 a {
25
+ background-image:url(<%= asset_path "markitup/sets/markdown/bold.png" %>);
26
+ }
27
+ .markItUp .markItUpButton8 a {
28
+ background-image:url(<%= asset_path "markitup/sets/markdown/italic.png" %>);
29
+ }
30
+
31
+ .markItUp .markItUpButton9 a {
32
+ background-image:url(<%= asset_path "markitup/sets/markdown/list-bullet.png" %>);
33
+ }
34
+ .markItUp .markItUpButton10 a {
35
+ background-image:url(<%= asset_path "markitup/sets/markdown/list-numeric.png" %>);
36
+ }
37
+
38
+ .markItUp .markItUpButton11 a {
39
+ background-image:url(<%= asset_path "markitup/sets/markdown/picture.png" %>);
40
+ }
41
+ .markItUp .markItUpButton12 a {
42
+ background-image:url(<%= asset_path "markitup/sets/markdown/link.png" %>);
43
+ }
44
+
45
+ .markItUp .markItUpButton13 a {
46
+ background-image:url(<%= asset_path "markitup/sets/markdown/quotes.png" %>);
47
+ }
48
+ .markItUp .markItUpButton14 a {
49
+ background-image:url(<%= asset_path "markitup/sets/markdown/code.png" %>);
50
+ }
51
+
52
+ .markItUp .preview a {
53
+ background-image:url(<%= asset_path "markitup/sets/markdown/preview.png" %>);
54
+ }
@@ -0,0 +1,60 @@
1
+ /* -------------------------------------------------------------------
2
+ // markItUp!
3
+ // By Jay Salvat - http://markitup.jaysalvat.com/
4
+ // ------------------------------------------------------------------*/
5
+ .markItUp .markItUpButton1 a {
6
+ background-image:url(<%= asset_path "markitup/sets/textile/h1.png" %>);
7
+ }
8
+ .markItUp .markItUpButton2 a {
9
+ background-image:url(<%= asset_path "markitup/sets/textile/h2.png" %>);
10
+ }
11
+ .markItUp .markItUpButton3 a {
12
+ background-image:url(<%= asset_path "markitup/sets/textile/h3.png" %>);
13
+ }
14
+ .markItUp .markItUpButton4 a {
15
+ background-image:url(<%= asset_path "markitup/sets/textile/h4.png" %>);
16
+ }
17
+ .markItUp .markItUpButton5 a {
18
+ background-image:url(<%= asset_path "markitup/sets/textile/h5.png" %>);
19
+ }
20
+ .markItUp .markItUpButton6 a {
21
+ background-image:url(<%= asset_path "markitup/sets/textile/h6.png" %>);
22
+ }
23
+ .markItUp .markItUpButton7 a {
24
+ background-image:url(<%= asset_path "markitup/sets/textile/paragraph.png" %>);
25
+ }
26
+
27
+ .markItUp .markItUpButton8 a {
28
+ background-image:url(<%= asset_path "markitup/sets/textile/bold.png" %>);
29
+ }
30
+ .markItUp .markItUpButton9 a {
31
+ background-image:url(<%= asset_path "markitup/sets/textile/italic.png" %>);
32
+ }
33
+ .markItUp .markItUpButton10 a {
34
+ background-image:url(<%= asset_path "markitup/sets/textile/stroke.png" %>);
35
+ }
36
+
37
+ .markItUp .markItUpButton11 a {
38
+ background-image:url(<%= asset_path "markitup/sets/textile/list-bullet.png" %>);
39
+ }
40
+ .markItUp .markItUpButton12 a {
41
+ background-image:url(<%= asset_path "markitup/sets/textile/list-numeric.png" %>);
42
+ }
43
+
44
+ .markItUp .markItUpButton13 a {
45
+ background-image:url(<%= asset_path "markitup/sets/textile/picture.png" %>);
46
+ }
47
+ .markItUp .markItUpButton14 a {
48
+ background-image:url(<%= asset_path "markitup/sets/textile/link.png" %>);
49
+ }
50
+
51
+ .markItUp .markItUpButton15 a {
52
+ background-image:url(<%= asset_path "markitup/sets/textile/quotes.png" %>);
53
+ }
54
+ .markItUp .markItUpButton16 a {
55
+ background-image:url(<%= asset_path "markitup/sets/textile/code.png" %>);
56
+ }
57
+
58
+ .markItUp .preview a {
59
+ background-image:url(<%= asset_path "markitup/sets/textile/preview.png" %>);
60
+ }
@@ -0,0 +1,57 @@
1
+ /* -------------------------------------------------------------------
2
+ // markItUp!
3
+ // By Jay Salvat - http://markitup.jaysalvat.com/
4
+ // ------------------------------------------------------------------*/
5
+ .markItUp .markItUpButton1 a {
6
+ background-image:url(<%= asset_path "markitup/sets/wiki/h1.png" %>);
7
+ }
8
+ .markItUp .markItUpButton2 a {
9
+ background-image:url(<%= asset_path "markitup/sets/wiki/h2.png" %>);
10
+ }
11
+ .markItUp .markItUpButton3 a {
12
+ background-image:url(<%= asset_path "markitup/sets/wiki/h3.png" %>);
13
+ }
14
+ .markItUp .markItUpButton4 a {
15
+ background-image:url(<%= asset_path "markitup/sets/wiki/h4.png" %>);
16
+ }
17
+ .markItUp .markItUpButton5 a {
18
+ background-image:url(<%= asset_path "markitup/sets/wiki/h5.png" %>);
19
+ }
20
+
21
+ .markItUp .markItUpButton6 a {
22
+ background-image:url(<%= asset_path "markitup/sets/wiki/bold.png" %>);
23
+ }
24
+ .markItUp .markItUpButton7 a {
25
+ background-image:url(<%= asset_path "markitup/sets/wiki/italic.png" %>);
26
+ }
27
+ .markItUp .markItUpButton8 a {
28
+ background-image:url(<%= asset_path "markitup/sets/wiki/stroke.png" %>);
29
+ }
30
+
31
+ .markItUp .markItUpButton9 a {
32
+ background-image:url(<%= asset_path "markitup/sets/wiki/list-bullet.png" %>);
33
+ }
34
+ .markItUp .markItUpButton10 a {
35
+ background-image:url(<%= asset_path "markitup/sets/wiki/list-numeric.png" %>);
36
+ }
37
+
38
+ .markItUp .markItUpButton11 a {
39
+ background-image:url(<%= asset_path "markitup/sets/wiki/picture.png" %>);
40
+ }
41
+ .markItUp .markItUpButton12 a {
42
+ background-image:url(<%= asset_path "markitup/sets/wiki/link.png" %>);
43
+ }
44
+ .markItUp .markItUpButton13 a {
45
+ background-image:url(<%= asset_path "markitup/sets/wiki/url.png" %>);
46
+ }
47
+
48
+ .markItUp .markItUpButton14 a {
49
+ background-image:url(<%= asset_path "markitup/sets/wiki/quotes.png" %>);
50
+ }
51
+ .markItUp .markItUpButton15 a {
52
+ background-image:url(<%= asset_path "markitup/sets/wiki/code.png" %>);
53
+ }
54
+
55
+ .markItUp .preview a {
56
+ background-image:url(<%= asset_path "markitup/sets/wiki/preview.png" %>);
57
+ }
@@ -0,0 +1,147 @@
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(<%= asset_path "markitup/skins/markitup/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(<%= asset_path "markitup/skins/markitup/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(<%= asset_path "markitup/skins/markitup/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(<%= asset_path "markitup/skins/markitup/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(<%= asset_path "markitup/skins/markitup/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(<%= asset_path "markitup/skins/markitup/bg-editor-html.png" %>);
134
+ }
135
+ .markdown .markItUpEditor {
136
+ background-image:url(<%= asset_path "markitup/skins/markitup/bg-editor-markdown.png" %>);
137
+ }
138
+ .textile .markItUpEditor {
139
+ background-image:url(<%= asset_path "markitup/skins/markitup/bg-editor-textile.png" %>);
140
+ }
141
+ .bbcode .markItUpEditor {
142
+ background-image:url(<%= asset_path "markitup/skins/markitup/bg-editor-bbcode.png" %>);
143
+ }
144
+ .wiki .markItUpEditor,
145
+ .dotclear .markItUpEditor {
146
+ background-image:url(<%= asset_path "markitup/skins/markitup/bg-editor-wiki.png" %>);
147
+ }