rails3_markitup 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/README.md +35 -0
- data/Rakefile +2 -0
- data/app/assets/images/sets/default/bold.png +0 -0
- data/app/assets/images/sets/default/clean.png +0 -0
- data/app/assets/images/sets/default/image.png +0 -0
- data/app/assets/images/sets/default/italic.png +0 -0
- data/app/assets/images/sets/default/link.png +0 -0
- data/app/assets/images/sets/default/list-bullet.png +0 -0
- data/app/assets/images/sets/default/list-numeric.png +0 -0
- data/app/assets/images/sets/default/picture.png +0 -0
- data/app/assets/images/sets/default/preview.png +0 -0
- data/app/assets/images/sets/default/stroke.png +0 -0
- data/app/assets/images/sets/markdown/bold.png +0 -0
- data/app/assets/images/sets/markdown/code.png +0 -0
- data/app/assets/images/sets/markdown/h1.png +0 -0
- data/app/assets/images/sets/markdown/h2.png +0 -0
- data/app/assets/images/sets/markdown/h3.png +0 -0
- data/app/assets/images/sets/markdown/h4.png +0 -0
- data/app/assets/images/sets/markdown/h5.png +0 -0
- data/app/assets/images/sets/markdown/h6.png +0 -0
- data/app/assets/images/sets/markdown/italic.png +0 -0
- data/app/assets/images/sets/markdown/link.png +0 -0
- data/app/assets/images/sets/markdown/list-bullet.png +0 -0
- data/app/assets/images/sets/markdown/list-numeric.png +0 -0
- data/app/assets/images/sets/markdown/picture.png +0 -0
- data/app/assets/images/sets/markdown/preview.png +0 -0
- data/app/assets/images/sets/markdown/quotes.png +0 -0
- data/app/assets/images/skins/markitup/bg-container.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-bbcode.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-dotclear.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-html.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-json.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-markdown.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-textile.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-wiki.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor-xml.png +0 -0
- data/app/assets/images/skins/markitup/bg-editor.png +0 -0
- data/app/assets/images/skins/markitup/handle.png +0 -0
- data/app/assets/images/skins/markitup/menu.png +0 -0
- data/app/assets/images/skins/markitup/submenu.png +0 -0
- data/app/assets/images/skins/simple/handle.png +0 -0
- data/app/assets/images/skins/simple/menu.png +0 -0
- data/app/assets/images/skins/simple/submenu.png +0 -0
- data/app/assets/javascripts/jquery.markitup.config.js +4 -0
- data/app/assets/javascripts/jquery.markitup.js +593 -0
- data/app/assets/javascripts/sets/default/set.js +31 -0
- data/app/assets/javascripts/sets/markdown/set.js +48 -0
- data/app/assets/stylesheets/sets/default/style.css +34 -0
- data/app/assets/stylesheets/sets/markdown/style.css +54 -0
- data/app/assets/stylesheets/skins/markitup/style.css.scss +152 -0
- data/app/assets/stylesheets/skins/simple/style.css.scss +122 -0
- data/app/assets/stylesheets/templates/preview.css +5 -0
- data/app/controllers/markitup/parsers_controller.rb +12 -0
- data/app/views/markitup/parsers/default.html.erb +11 -0
- data/app/views/markitup/parsers/markdown.html.erb +11 -0
- data/config/routes.rb +5 -0
- data/lib/rails3_markitup/controller_additions.rb +23 -0
- data/lib/rails3_markitup/engine.rb +10 -0
- data/lib/rails3_markitup/helper.rb +21 -0
- data/lib/rails3_markitup/version.rb +3 -0
- data/lib/rails3_markitup.rb +8 -0
- data/rails3_markitup.gemspec +21 -0
- metadata +143 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
Markitup! For Rails3
|
2
|
+
--------------------
|
3
|
+
|
4
|
+
Markitup_rails is a Rails 3.1 engine that allows you to integrate the {MarkItUp}[http://markitup.jaysalvat.com/home/] text editor into the asset pipeline.
|
5
|
+
|
6
|
+
This uses the 1.1.12 release of Markitup, by {Jay Salvat}[http://jaysalvat.com]
|
7
|
+
|
8
|
+
This engine allows you to add in the CSS and Javascript as written in the MarkItUp plugin. I would strongly recommend that you read the documentation tha comes with MarkItUp.
|
9
|
+
|
10
|
+
This engine includes the following MarkItUp elements:
|
11
|
+
|
12
|
+
* MarkItUp images and stylesheets
|
13
|
+
* MarkItUp javascript
|
14
|
+
* a MarkItUp set for Markdown
|
15
|
+
|
16
|
+
MarkItUp support a variety of markup parsers, however, this plugin only includes support for Markdown and HTML.
|
17
|
+
Pull requests are welcome!
|
18
|
+
|
19
|
+
= Usage
|
20
|
+
|
21
|
+
Add the markitup_rails gem to your Gemfile. In Gemfile:
|
22
|
+
|
23
|
+
gem "markitup_rails"
|
24
|
+
|
25
|
+
Basically include <%= include_markitup_if_needed %> under the <head> element of your in your layout file:
|
26
|
+
|
27
|
+
<%= include_markitup_if_needed %>
|
28
|
+
|
29
|
+
In your controller, use include_markitup method to load markitup javascripts and stylesheets:
|
30
|
+
|
31
|
+
include_markitup
|
32
|
+
|
33
|
+
Assign your textarea with id
|
34
|
+
|
35
|
+
:classs => "markitup_html"
|
data/Rakefile
ADDED
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
|