-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
66 lines (45 loc) · 2.03 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Redmine Task Manager
--------------------
The project is to convert this Javascript into a Redmine
plugin in order to propose its installation into
the Redmine Plugins inventory.
Install:
--------
The way to make this work is slightly simple:
* Install this js file into the $REDMINE_HOME/public/javascripts/
directory
* Modify the file $REDMINE_HOME/lib/redcloth3.rb to allow HTML
tags:
HTML_TAGS = [
"blockquote", "body", "br", "div", "h1", "h2", "h3", "h4", "h5", "h6", "head", "hr", "html", "p",
"base", "link", "meta", "script", "style", "title",
"dd", "dir", "dl", "dt", "li", "menu", "ol", "ul",
"a", "abbr", "acronym", "address", "b", "basefont", "bdo", "big", "blink", "center", "cite", "code", "comment", "del", "dfn",
"em", "font", "i", "ins", "kbd", "marquee", "nobr", "noscript", "plaintext", "pre", "q", "rb", "rbc", "rp", "rt", "rtc",
"ruby", "s", "samp", "small", "span", "strike", "strong", "sub", "sup", "tt", "u", "var", "wbr", "xmp",
"button", "fieldset", "form", "input", "isindex", "label", "legend", "optgroup", "option", "select", "textarea",
"applet", "area", "bgsound", "embed", "img", "map", "noembed", "object", "param",
"caption", "col", "colgroup", "table", "tbody", "td", "tfoot", "th", "thead", "tr",
"frame", "frameset", "noframes", "iframe"
]
ALLOWED_TAGS = %w(redpre pre code notextile)
HTML_TAGS.each do |tag_html|
ALLOWED_TAGS << tag_html
end
right after the "clean_html" function definition.
* And now create a wiki page in your project with the following lines:
<script src="/javascripts/JInterface.js" type="text/javascript"></script>
<script src="/javascripts/JLib.js" type="text/javascript"></script>
<script src="/javascripts/TGrabber.js" type="text/javascript"></script>
<script src="/javascripts/JList.js" type="text/javascript"></script>
<script>JInterface.init(600)</script>
Notes:
------
As you can see it uses Scriptacolous, an already included library in Redmine.
Regards,
Joax.
Author:
-------
Joaquin Ayuso de Paul
http://joax.wordpress.com