markitup_erb-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +71 -0
- data/Rakefile +2 -0
- data/lib/markitup_erb/rails/engine.rb +8 -0
- data/lib/markitup_erb/rails/version.rb +5 -0
- data/lib/markitup_erb-rails.rb +7 -0
- data/markitup_erb-rails.gemspec +22 -0
- data/vendor/assets/images/markitup/sets/bbcode/bold.png +0 -0
- data/vendor/assets/images/markitup/sets/bbcode/clean.png +0 -0
- data/vendor/assets/images/markitup/sets/bbcode/code.png +0 -0
- data/vendor/assets/images/markitup/sets/bbcode/fonts.png +0 -0
- data/vendor/assets/images/markitup/sets/bbcode/italic.png +0 -0
- data/vendor/assets/images/markitup/sets/bbcode/link.png +0 -0
- data/vendor/assets/images/markitup/sets/bbcode/list-bullet.png +0 -0
- data/vendor/assets/images/markitup/sets/bbcode/list-item.png +0 -0
- data/vendor/assets/images/markitup/sets/bbcode/list-numeric.png +0 -0
- data/vendor/assets/images/markitup/sets/bbcode/picture.png +0 -0
- data/vendor/assets/images/markitup/sets/bbcode/preview.png +0 -0
- data/vendor/assets/images/markitup/sets/bbcode/quotes.png +0 -0
- data/vendor/assets/images/markitup/sets/bbcode/stroke.png +0 -0
- data/vendor/assets/images/markitup/sets/bbcode/underline.png +0 -0
- data/vendor/assets/images/markitup/sets/default/bold.png +0 -0
- data/vendor/assets/images/markitup/sets/default/clean.png +0 -0
- data/vendor/assets/images/markitup/sets/default/image.png +0 -0
- data/vendor/assets/images/markitup/sets/default/italic.png +0 -0
- data/vendor/assets/images/markitup/sets/default/link.png +0 -0
- data/vendor/assets/images/markitup/sets/default/list-bullet.png +0 -0
- data/vendor/assets/images/markitup/sets/default/list-numeric.png +0 -0
- data/vendor/assets/images/markitup/sets/default/picture.png +0 -0
- data/vendor/assets/images/markitup/sets/default/preview.png +0 -0
- data/vendor/assets/images/markitup/sets/default/stroke.png +0 -0
- data/vendor/assets/images/markitup/sets/html/bold.png +0 -0
- data/vendor/assets/images/markitup/sets/html/clean.png +0 -0
- data/vendor/assets/images/markitup/sets/html/h1.png +0 -0
- data/vendor/assets/images/markitup/sets/html/h2.png +0 -0
- data/vendor/assets/images/markitup/sets/html/h3.png +0 -0
- data/vendor/assets/images/markitup/sets/html/h4.png +0 -0
- data/vendor/assets/images/markitup/sets/html/h5.png +0 -0
- data/vendor/assets/images/markitup/sets/html/h6.png +0 -0
- data/vendor/assets/images/markitup/sets/html/image.png +0 -0
- data/vendor/assets/images/markitup/sets/html/italic.png +0 -0
- data/vendor/assets/images/markitup/sets/html/link.png +0 -0
- data/vendor/assets/images/markitup/sets/html/list-bullet.png +0 -0
- data/vendor/assets/images/markitup/sets/html/list-item.png +0 -0
- data/vendor/assets/images/markitup/sets/html/list-numeric.png +0 -0
- data/vendor/assets/images/markitup/sets/html/paragraph.png +0 -0
- data/vendor/assets/images/markitup/sets/html/picture.png +0 -0
- data/vendor/assets/images/markitup/sets/html/preview.png +0 -0
- data/vendor/assets/images/markitup/sets/html/stroke.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/bold.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/code.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/h1.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/h2.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/h3.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/h4.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/h5.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/h6.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/italic.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/link.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/list-bullet.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/list-numeric.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/picture.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/preview.png +0 -0
- data/vendor/assets/images/markitup/sets/markdown/quotes.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/bold.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/code.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/h1.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/h2.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/h3.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/h4.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/h5.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/h6.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/italic.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/link.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/list-bullet.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/list-numeric.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/paragraph.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/picture.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/preview.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/quotes.png +0 -0
- data/vendor/assets/images/markitup/sets/textile/stroke.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/bold.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/code.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/h1.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/h2.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/h3.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/h4.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/h5.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/h6.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/italic.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/link.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/list-bullet.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/list-numeric.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/picture.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/preview.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/quotes.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/stroke.png +0 -0
- data/vendor/assets/images/markitup/sets/wiki/url.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-container.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-bbcode.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-dotclear.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-html.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-json.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-markdown.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-textile.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-wiki.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-xml.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/handle.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/menu.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/submenu.png +0 -0
- data/vendor/assets/images/markitup/skins/simple/handle.png +0 -0
- data/vendor/assets/images/markitup/skins/simple/menu.png +0 -0
- data/vendor/assets/images/markitup/skins/simple/submenu.png +0 -0
- data/vendor/assets/javascripts/markitup/jquery.markitup.js +593 -0
- data/vendor/assets/javascripts/markitup/sets/bbcode/set.js +39 -0
- data/vendor/assets/javascripts/markitup/sets/default/set.js +30 -0
- data/vendor/assets/javascripts/markitup/sets/html/set.js +39 -0
- data/vendor/assets/javascripts/markitup/sets/markdown/set.js +52 -0
- data/vendor/assets/javascripts/markitup/sets/textile/set.js +40 -0
- data/vendor/assets/javascripts/markitup/sets/wiki/set.js +37 -0
- data/vendor/assets/stylesheets/markitup/sets/bbcode/style.css.erb +47 -0
- data/vendor/assets/stylesheets/markitup/sets/default/style.css.erb +34 -0
- data/vendor/assets/stylesheets/markitup/sets/html/style.css.erb +59 -0
- data/vendor/assets/stylesheets/markitup/sets/markdown/style.css.erb +54 -0
- data/vendor/assets/stylesheets/markitup/sets/textile/style.css.erb +60 -0
- data/vendor/assets/stylesheets/markitup/sets/wiki/style.css.erb +57 -0
- data/vendor/assets/stylesheets/markitup/skins/markitup/style.css.erb +147 -0
- data/vendor/assets/stylesheets/markitup/skins/simple/style.css.erb +118 -0
- metadata +196 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Juan Felipe Alvarez Saldarriaga
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
# MarkitupErb::Rails
|
2
|
+
|
3
|
+
Vanilla [markItUp!](http://markitup.jaysalvat.com) for Rails 3.x, works with ERB, so, no extra gems needed like SCSS (huh?) or LESS.
|
4
|
+
It comes with these sets from markItUp!: Html, Textile, Wiki Syntax, Markdown, and BBcode, if
|
5
|
+
you use one of them maybe you will need to add other gems to parse it ;-).
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
gem "markitup_erb-rails"
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install markitup_erb-rails
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
In `app/assets/javascripts/application.js` add this:
|
24
|
+
|
25
|
+
```javascript
|
26
|
+
//= require markitup/jquery.markitup
|
27
|
+
//= require markitup/sets/default/set
|
28
|
+
```
|
29
|
+
|
30
|
+
Now, in `app/assets/stylesheets/application.css` add this:
|
31
|
+
|
32
|
+
```css
|
33
|
+
*= require markitup/skins/simple/style
|
34
|
+
*= require markitup/sets/default/style
|
35
|
+
```
|
36
|
+
|
37
|
+
This gem comes with this extra sets from markItUp!: html, textile, wiki, markdown, and bbcode. To use it just
|
38
|
+
replace `sets` lines in `app/assets/javascripts/application.js` and `app/assets/stylesheets/application.css`.
|
39
|
+
|
40
|
+
`app/assets/javascripts/application.js`:
|
41
|
+
|
42
|
+
```javascript
|
43
|
+
//= require markitup/jquery.markitup
|
44
|
+
//= require markitup/sets/markdown/set
|
45
|
+
```
|
46
|
+
|
47
|
+
`app/assets/stylesheets/application.css`:
|
48
|
+
|
49
|
+
```css
|
50
|
+
*= require markitup/skins/simple/style
|
51
|
+
*= require markitup/sets/markdown/style
|
52
|
+
```
|
53
|
+
|
54
|
+
In order to use [markItUp!](http://markitup.jaysalvat.com) follow the
|
55
|
+
[documentation](http://markitup.jaysalvat.com/documentation) from step 4 :-).
|
56
|
+
|
57
|
+
## Contributing
|
58
|
+
|
59
|
+
1. Fork it
|
60
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
61
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
62
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
63
|
+
5. Create new Pull Request
|
64
|
+
|
65
|
+
## License
|
66
|
+
|
67
|
+
Copyright (C) 2007-2011 Jay Salvat. [markItUp!](http://markitup.jaysalvat.com)
|
68
|
+
is released under both the MIT and GPL Open Source licenses.
|
69
|
+
|
70
|
+
Copyright (C) 2012 Juan Felipe Alvarez Saldarriaga. MarkitupErb::Rails is distributed
|
71
|
+
under the MIT license.
|
data/Rakefile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/markitup_erb/rails/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Juan Felipe Alvarez Saldarriaga"]
|
6
|
+
gem.email = ["nebiros@gmail.com"]
|
7
|
+
gem.description = <<-EOF
|
8
|
+
Vanilla markItUp! for Rails 3.x, works with ERB, so, no extra gems needed like SCSS (huh?) or LESS.
|
9
|
+
It comes with these sets from markItUp!: Html, Textile, Wiki Syntax, Markdown, and BBcode, if
|
10
|
+
you use one of them maybe you will need to add other gems to parse it ;-).
|
11
|
+
EOF
|
12
|
+
gem.summary = %q{Vanilla markItUp! for Rails 3.x}
|
13
|
+
gem.homepage = "https://github.com/nebiros/markitup_erb-rails"
|
14
|
+
|
15
|
+
gem.files = `git ls-files`.split($\)
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.name = "markitup_erb-rails"
|
19
|
+
gem.require_paths = ["lib"]
|
20
|
+
gem.version = MarkitupErb::Rails::VERSION
|
21
|
+
gem.add_runtime_dependency "rails", "~> 3.1"
|
22
|
+
end
|
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
|
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
|
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
|
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
|
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
|
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
|