beautiful_scaffold 0.3.6 → 1.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitattributes +2 -0
- data/CHANGELOG +8 -0
- data/README.rdoc +47 -34
- data/beautiful_scaffold.gemspec +2 -1
- data/lib/generators/beautiful_locale_generator.rb +2 -2
- data/lib/generators/beautiful_migration_generator.rb +2 -2
- data/lib/generators/beautiful_scaffold_common_methods.rb +10 -14
- data/lib/generators/beautiful_scaffold_generator.rb +7 -15
- data/lib/generators/templates/app/assets/javascripts/application-bs.js +4 -12
- data/lib/generators/templates/app/assets/javascripts/beautiful_scaffold.js +0 -33
- data/lib/generators/templates/app/assets/stylesheets/application-bs.css +0 -6
- data/lib/generators/templates/app/assets/stylesheets/bootstrap_and_overrides.css.less +6 -6
- data/lib/generators/templates/app/helpers/beautiful_helper.rb +1 -0
- data/lib/generators/templates/app/initializers/link_renderer.rb +2 -0
- data/lib/generators/templates/app/locales/beautiful_scaffold.ja.yml +50 -0
- data/lib/generators/templates/app/models/concerns/fulltext_concern.rb +10 -10
- data/lib/generators/templates/app/views/partials/_form_field.html.erb +1 -27
- data/lib/generators/templates/app/views/partials/_index_column.html.erb +0 -2
- data/lib/generators/templates/app/views/partials/_index_search.html.erb +0 -2
- metadata +25 -173
- data/lib/generators/templates/app/assets/javascripts/jquery.livequery.js +0 -226
- data/lib/generators/templates/markitup/jquery.markitup.js +0 -593
- data/lib/generators/templates/markitup/sets/bbcode/images/bold.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/clean.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/code.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/fonts.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/italic.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/link.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/list-bullet.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/list-item.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/list-numeric.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/picture.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/preview.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/quotes.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/stroke.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/images/underline.png +0 -0
- data/lib/generators/templates/markitup/sets/bbcode/readme.txt +0 -11
- data/lib/generators/templates/markitup/sets/bbcode/set.js +0 -39
- data/lib/generators/templates/markitup/sets/bbcode/style.css +0 -47
- data/lib/generators/templates/markitup/sets/default/images/bold.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/clean.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/image.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/italic.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/link.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/list-bullet.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/list-numeric.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/picture.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/preview.png +0 -0
- data/lib/generators/templates/markitup/sets/default/images/stroke.png +0 -0
- data/lib/generators/templates/markitup/sets/default/set.js +0 -30
- data/lib/generators/templates/markitup/sets/default/style.css +0 -34
- data/lib/generators/templates/markitup/sets/html/images/bold.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/clean.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/h1.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/h2.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/h3.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/h4.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/h5.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/h6.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/image.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/italic.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/link.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/list-bullet.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/list-item.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/list-numeric.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/paragraph.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/picture.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/preview.png +0 -0
- data/lib/generators/templates/markitup/sets/html/images/stroke.png +0 -0
- data/lib/generators/templates/markitup/sets/html/readme.txt +0 -11
- data/lib/generators/templates/markitup/sets/html/set.js +0 -39
- data/lib/generators/templates/markitup/sets/html/style.css +0 -59
- data/lib/generators/templates/markitup/sets/markdown/images/bold.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/code.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/h1.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/h2.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/h3.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/h4.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/h5.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/h6.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/italic.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/link.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/list-bullet.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/list-numeric.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/picture.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/preview.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/images/quotes.png +0 -0
- data/lib/generators/templates/markitup/sets/markdown/readme.txt +0 -11
- data/lib/generators/templates/markitup/sets/markdown/set.js +0 -52
- data/lib/generators/templates/markitup/sets/markdown/style.css +0 -54
- data/lib/generators/templates/markitup/sets/textile/images/bold.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/code.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/h1.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/h2.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/h3.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/h4.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/h5.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/h6.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/italic.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/link.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/list-bullet.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/list-numeric.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/paragraph.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/picture.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/preview.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/quotes.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/images/stroke.png +0 -0
- data/lib/generators/templates/markitup/sets/textile/readme.txt +0 -11
- data/lib/generators/templates/markitup/sets/textile/set.js +0 -40
- data/lib/generators/templates/markitup/sets/textile/style.css +0 -60
- data/lib/generators/templates/markitup/sets/wiki/images/bold.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/code.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/h1.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/h2.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/h3.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/h4.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/h5.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/h6.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/italic.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/link.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/list-bullet.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/list-numeric.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/picture.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/preview.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/quotes.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/stroke.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/images/url.png +0 -0
- data/lib/generators/templates/markitup/sets/wiki/readme.txt +0 -11
- data/lib/generators/templates/markitup/sets/wiki/set.js +0 -37
- data/lib/generators/templates/markitup/sets/wiki/style.css +0 -57
- data/lib/generators/templates/markitup/skins/markitup/images/bg-container.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-bbcode.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-dotclear.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-html.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-json.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-markdown.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-textile.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-wiki.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor-xml.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/bg-editor.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/handle.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/menu.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/images/submenu.png +0 -0
- data/lib/generators/templates/markitup/skins/markitup/style.css +0 -147
- data/lib/generators/templates/markitup/skins/simple/images/handle.png +0 -0
- data/lib/generators/templates/markitup/skins/simple/images/menu.png +0 -0
- data/lib/generators/templates/markitup/skins/simple/images/submenu.png +0 -0
- data/lib/generators/templates/markitup/skins/simple/style.css +0 -118
- data/lib/generators/templates/markitup/templates/preview.css +0 -5
- data/lib/generators/templates/markitup/templates/preview.html +0 -11
@@ -1,47 +0,0 @@
|
|
1
|
-
/* -------------------------------------------------------------------
|
2
|
-
// markItUp!
|
3
|
-
// By Jay Salvat - http://markitup.jaysalvat.com/
|
4
|
-
// ------------------------------------------------------------------*/
|
5
|
-
.bbcode .markItUpButton1 a {
|
6
|
-
background-image:url(images/bold.png);
|
7
|
-
}
|
8
|
-
.bbcode .markItUpButton2 a {
|
9
|
-
background-image:url(images/italic.png);
|
10
|
-
}
|
11
|
-
.bbcode .markItUpButton3 a {
|
12
|
-
background-image:url(images/underline.png);
|
13
|
-
}
|
14
|
-
|
15
|
-
.bbcode .markItUpButton4 a {
|
16
|
-
background-image:url(images/picture.png);
|
17
|
-
}
|
18
|
-
.bbcode .markItUpButton5 a {
|
19
|
-
background-image:url(images/link.png);
|
20
|
-
}
|
21
|
-
|
22
|
-
.bbcode .markItUpButton6 a {
|
23
|
-
background-image:url(images/fonts.png);
|
24
|
-
}
|
25
|
-
.bbcode .markItUpButton7 a {
|
26
|
-
background-image:url(images/list-bullet.png);
|
27
|
-
}
|
28
|
-
.bbcode .markItUpButton8 a {
|
29
|
-
background-image:url(images/list-numeric.png);
|
30
|
-
}
|
31
|
-
.bbcode .markItUpButton9 a {
|
32
|
-
background-image:url(images/list-item.png);
|
33
|
-
}
|
34
|
-
|
35
|
-
.bbcode .markItUpButton10 a {
|
36
|
-
background-image:url(images/quotes.png);
|
37
|
-
}
|
38
|
-
.bbcode .markItUpButton11 a {
|
39
|
-
background-image:url(images/code.png);
|
40
|
-
}
|
41
|
-
|
42
|
-
.bbcode .clean a {
|
43
|
-
background-image:url(images/clean.png);
|
44
|
-
}
|
45
|
-
.bbcode .preview a {
|
46
|
-
background-image:url(images/preview.png);
|
47
|
-
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,30 +0,0 @@
|
|
1
|
-
// ----------------------------------------------------------------------------
|
2
|
-
// markItUp!
|
3
|
-
// ----------------------------------------------------------------------------
|
4
|
-
// Copyright (C) 2011 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
|
-
var mySettings = {
|
13
|
-
onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'},
|
14
|
-
onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>'},
|
15
|
-
onTab: {keepDefault:false, replaceWith:' '},
|
16
|
-
markupSet: [
|
17
|
-
{name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' },
|
18
|
-
{name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)' },
|
19
|
-
{name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' },
|
20
|
-
{separator:'---------------' },
|
21
|
-
{name:'Bulleted List', openWith:' <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ul>\n', closeBlockWith:'\n</ul>'},
|
22
|
-
{name:'Numeric List', openWith:' <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ol>\n', closeBlockWith:'\n</ol>'},
|
23
|
-
{separator:'---------------' },
|
24
|
-
{name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
|
25
|
-
{name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' },
|
26
|
-
{separator:'---------------' },
|
27
|
-
{name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },
|
28
|
-
{name:'Preview', className:'preview', call:'preview'}
|
29
|
-
]
|
30
|
-
}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
/* -------------------------------------------------------------------
|
2
|
-
// markItUp!
|
3
|
-
// By Jay Salvat - http://markitup.jaysalvat.com/
|
4
|
-
// ------------------------------------------------------------------*/
|
5
|
-
.markItUp .markItUpButton1 a {
|
6
|
-
background-image:url(images/bold.png);
|
7
|
-
}
|
8
|
-
.markItUp .markItUpButton2 a {
|
9
|
-
background-image:url(images/italic.png);
|
10
|
-
}
|
11
|
-
.markItUp .markItUpButton3 a {
|
12
|
-
background-image:url(images/stroke.png);
|
13
|
-
}
|
14
|
-
|
15
|
-
.markItUp .markItUpButton4 a {
|
16
|
-
background-image:url(images/list-bullet.png);
|
17
|
-
}
|
18
|
-
.markItUp .markItUpButton5 a {
|
19
|
-
background-image:url(images/list-numeric.png);
|
20
|
-
}
|
21
|
-
|
22
|
-
.markItUp .markItUpButton6 a {
|
23
|
-
background-image:url(images/picture.png);
|
24
|
-
}
|
25
|
-
.markItUp .markItUpButton7 a {
|
26
|
-
background-image:url(images/link.png);
|
27
|
-
}
|
28
|
-
|
29
|
-
.markItUp .markItUpButton8 a {
|
30
|
-
background-image:url(images/clean.png);
|
31
|
-
}
|
32
|
-
.markItUp .preview a {
|
33
|
-
background-image:url(images/preview.png);
|
34
|
-
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,11 +0,0 @@
|
|
1
|
-
Markup language:
|
2
|
-
Html
|
3
|
-
|
4
|
-
Description:
|
5
|
-
A basic Html markup set with Headings, Paragraph, Bold, Italic, Stroke through, Picture, Link, List, Clean button, 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,39 +0,0 @@
|
|
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
|
-
myHtmlSettings = {
|
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
|
-
}
|
@@ -1,59 +0,0 @@
|
|
1
|
-
/* -------------------------------------------------------------------
|
2
|
-
// markItUp!
|
3
|
-
// By Jay Salvat - http://markitup.jaysalvat.com/
|
4
|
-
// ------------------------------------------------------------------*/
|
5
|
-
.html .markItUpButton1 a {
|
6
|
-
background-image:url(images/h1.png);
|
7
|
-
}
|
8
|
-
.html .markItUpButton2 a {
|
9
|
-
background-image:url(images/h2.png);
|
10
|
-
}
|
11
|
-
.html .markItUpButton3 a {
|
12
|
-
background-image:url(images/h3.png);
|
13
|
-
}
|
14
|
-
.html .markItUpButton4 a {
|
15
|
-
background-image:url(images/h4.png);
|
16
|
-
}
|
17
|
-
.html .markItUpButton5 a {
|
18
|
-
background-image:url(images/h5.png);
|
19
|
-
}
|
20
|
-
.html .markItUpButton6 a {
|
21
|
-
background-image:url(images/h6.png);
|
22
|
-
}
|
23
|
-
.html .markItUpButton7 a {
|
24
|
-
background-image:url(images/paragraph.png);
|
25
|
-
}
|
26
|
-
|
27
|
-
.html .markItUpButton8 a {
|
28
|
-
background-image:url(images/bold.png);
|
29
|
-
}
|
30
|
-
.html .markItUpButton9 a {
|
31
|
-
background-image:url(images/italic.png);
|
32
|
-
}
|
33
|
-
.html .markItUpButton10 a {
|
34
|
-
background-image:url(images/stroke.png);
|
35
|
-
}
|
36
|
-
|
37
|
-
.html .markItUpButton11 a {
|
38
|
-
background-image:url(images/list-bullet.png);
|
39
|
-
}
|
40
|
-
.html .markItUpButton12 a {
|
41
|
-
background-image:url(images/list-numeric.png);
|
42
|
-
}
|
43
|
-
.html .markItUpButton13 a {
|
44
|
-
background-image:url(images/list-item.png);
|
45
|
-
}
|
46
|
-
|
47
|
-
.html .markItUpButton14 a {
|
48
|
-
background-image:url(images/picture.png);
|
49
|
-
}
|
50
|
-
.html .markItUpButton15 a {
|
51
|
-
background-image:url(images/link.png);
|
52
|
-
}
|
53
|
-
|
54
|
-
.html .clean a {
|
55
|
-
background-image:url(images/clean.png);
|
56
|
-
}
|
57
|
-
.html .preview a {
|
58
|
-
background-image:url(images/preview.png);
|
59
|
-
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,11 +0,0 @@
|
|
1
|
-
Markup language:
|
2
|
-
Markdown
|
3
|
-
|
4
|
-
Description:
|
5
|
-
A basic Markdown markup set with Headings, Bold, Italic, 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,52 +0,0 @@
|
|
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
|
-
myMarkdownSettings = {
|
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
|
-
}
|
@@ -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
|
-
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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
|
-
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|