i18n_locale_editor 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/README.rdoc +4 -3
- data/VERSION +1 -1
- data/app/helpers/translations_helper.rb +2 -1
- data/lib/i18n_locale_editor.rb +1 -20
- data/public/{i18n-locale-editor.js → i18n_locale_editor/i18n-locale-editor.js} +15 -4
- data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-blockquote.png +0 -0
- data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-h1.png +0 -0
- data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-h2.png +0 -0
- data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-h3.png +0 -0
- data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-h4.png +0 -0
- data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-h5.png +0 -0
- data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-h6.png +0 -0
- data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-p.png +0 -0
- data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-pre.png +0 -0
- data/public/i18n_locale_editor/wymeditor/iframe/default/wymiframe.css +90 -0
- data/public/i18n_locale_editor/wymeditor/iframe/default/wymiframe.html +26 -0
- data/public/i18n_locale_editor/wymeditor/jquery.wymeditor.js +4688 -0
- data/public/i18n_locale_editor/wymeditor/jquery.wymeditor.min.js +1 -0
- data/public/i18n_locale_editor/wymeditor/jquery.wymeditor.pack.js +1 -0
- data/public/i18n_locale_editor/wymeditor/lang/bg.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/ca.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/cs.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/cy.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/de.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/en.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/es.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/fa.js +46 -0
- data/public/i18n_locale_editor/wymeditor/lang/fi.js +44 -0
- data/public/i18n_locale_editor/wymeditor/lang/fr.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/gl.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/he.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/hr.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/hu.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/it.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/nb.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/nl.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/nn.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/pl.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/pt-br.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/pt.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/ru.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/sv.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/tr.js +45 -0
- data/public/i18n_locale_editor/wymeditor/lang/zh_cn.js +47 -0
- data/public/i18n_locale_editor/wymeditor/plugins/embed/jquery.wymeditor.embed.js +52 -0
- data/public/i18n_locale_editor/wymeditor/plugins/fullscreen/icon_fullscreen.gif +0 -0
- data/public/i18n_locale_editor/wymeditor/plugins/fullscreen/jquery.wymeditor.fullscreen.js +127 -0
- data/public/i18n_locale_editor/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js +57 -0
- data/public/i18n_locale_editor/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js +91 -0
- data/public/i18n_locale_editor/wymeditor/plugins/resizable/readme.txt +124 -0
- data/public/i18n_locale_editor/wymeditor/plugins/tidy/README +19 -0
- data/public/i18n_locale_editor/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js +82 -0
- data/public/i18n_locale_editor/wymeditor/plugins/tidy/tidy.php +36 -0
- data/public/i18n_locale_editor/wymeditor/plugins/tidy/wand.png +0 -0
- data/public/i18n_locale_editor/wymeditor/skins/compact/icons.png +0 -0
- data/public/i18n_locale_editor/wymeditor/skins/compact/skin.css +134 -0
- data/public/i18n_locale_editor/wymeditor/skins/compact/skin.js +35 -0
- data/public/i18n_locale_editor/wymeditor/skins/default/icons.png +0 -0
- data/public/i18n_locale_editor/wymeditor/skins/default/skin.css +133 -0
- data/public/i18n_locale_editor/wymeditor/skins/default/skin.js +40 -0
- data/public/i18n_locale_editor/wymeditor/skins/minimal/images/bg.header.gif +0 -0
- data/public/i18n_locale_editor/wymeditor/skins/minimal/images/bg.selector.silver.gif +0 -0
- data/public/i18n_locale_editor/wymeditor/skins/minimal/images/bg.wymeditor.png +0 -0
- data/public/i18n_locale_editor/wymeditor/skins/minimal/images/icons.silver.gif +0 -0
- data/public/i18n_locale_editor/wymeditor/skins/minimal/skin.css +131 -0
- data/public/i18n_locale_editor/wymeditor/skins/minimal/skin.js +30 -0
- data/public/i18n_locale_editor/wymeditor/skins/silver/COPYING +674 -0
- data/public/i18n_locale_editor/wymeditor/skins/silver/README +27 -0
- data/public/i18n_locale_editor/wymeditor/skins/silver/images/bg.header.gif +0 -0
- data/public/i18n_locale_editor/wymeditor/skins/silver/images/bg.selector.silver.gif +0 -0
- data/public/i18n_locale_editor/wymeditor/skins/silver/images/bg.wymeditor.png +0 -0
- data/public/i18n_locale_editor/wymeditor/skins/silver/images/icons.silver.gif +0 -0
- data/public/i18n_locale_editor/wymeditor/skins/silver/skin.css +297 -0
- data/public/i18n_locale_editor/wymeditor/skins/silver/skin.js +61 -0
- data/public/i18n_locale_editor/wymeditor/skins/twopanels/icons.png +0 -0
- data/public/i18n_locale_editor/wymeditor/skins/twopanels/skin.css +134 -0
- data/public/i18n_locale_editor/wymeditor/skins/twopanels/skin.js +39 -0
- data/public/i18n_locale_editor/wymeditor/skins/wymeditor_icon.png +0 -0
- data/rails/init.rb +5 -5
- metadata +79 -5
@@ -0,0 +1,131 @@
|
|
1
|
+
/*
|
2
|
+
* WYMeditor : what you see is What You Mean web-based editor
|
3
|
+
* Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
|
4
|
+
* Dual licensed under the MIT (MIT-license.txt)
|
5
|
+
* and GPL (GPL-license.txt) licenses.
|
6
|
+
*
|
7
|
+
* For further information visit:
|
8
|
+
* http://www.wymeditor.org/
|
9
|
+
*
|
10
|
+
* File Name:
|
11
|
+
* skin.css
|
12
|
+
* main stylesheet for the minimal WYMeditor skin
|
13
|
+
* See the documentation for more info.
|
14
|
+
*
|
15
|
+
* File Authors:
|
16
|
+
* Jean-Francois Hovinne
|
17
|
+
* Scott Lewis (see Silver skin)
|
18
|
+
*/
|
19
|
+
|
20
|
+
/* Set iframe */
|
21
|
+
.wym_skin_minimal div.wym_iframe iframe {
|
22
|
+
width: 90%;
|
23
|
+
height: 200px;
|
24
|
+
}
|
25
|
+
|
26
|
+
/* Hide h2 by default */
|
27
|
+
.wym_skin_minimal h2 {
|
28
|
+
display: none;
|
29
|
+
}
|
30
|
+
|
31
|
+
/* Show specific h2 */
|
32
|
+
.wym_skin_minimal div.wym_tools h2,
|
33
|
+
.wym_skin_minimal div.wym_containers h2,
|
34
|
+
.wym_skin_minimal div.wym_classes h2 {
|
35
|
+
display: block;
|
36
|
+
}
|
37
|
+
|
38
|
+
.wym_skin_minimal div.wym_section ul {
|
39
|
+
margin: 0;
|
40
|
+
}
|
41
|
+
|
42
|
+
.wym_skin_minimal div.wym_section ul li {
|
43
|
+
float: left;
|
44
|
+
list-style-type: none;
|
45
|
+
margin-right: 5px;
|
46
|
+
}
|
47
|
+
|
48
|
+
.wym_skin_minimal div.wym_area_top,
|
49
|
+
.wym_skin_minimal div.wym_area_right,
|
50
|
+
.wym_skin_minimal div.wym_containers,
|
51
|
+
.wym_skin_minimal div.wym_classes {
|
52
|
+
float: left;
|
53
|
+
}
|
54
|
+
|
55
|
+
.wym_skin_minimal div.wym_area_main {
|
56
|
+
clear: both;
|
57
|
+
}
|
58
|
+
|
59
|
+
.wym_skin_minimal div.wym_html {
|
60
|
+
width: 90%;
|
61
|
+
}
|
62
|
+
|
63
|
+
.wym_skin_minimal textarea.wym_html_val {
|
64
|
+
width: 100%;
|
65
|
+
height: 100px;
|
66
|
+
}
|
67
|
+
|
68
|
+
/* DROPDOWNS (see Silver skin) */
|
69
|
+
.wym_skin_minimal div.wym_dropdown {
|
70
|
+
cursor: pointer;
|
71
|
+
margin: 0px 4px 10px 0px;
|
72
|
+
padding: 0px;
|
73
|
+
z-index: 1001;
|
74
|
+
display: block;
|
75
|
+
}
|
76
|
+
|
77
|
+
.wym_skin_minimal div.wym_dropdown ul {
|
78
|
+
display: none;
|
79
|
+
width: 124px;
|
80
|
+
padding: 0px;
|
81
|
+
margin: 0px;
|
82
|
+
list-style-type: none;
|
83
|
+
list-style-image: none;
|
84
|
+
z-index: 1002;
|
85
|
+
position: absolute;
|
86
|
+
border-top: 1px solid #AAA;
|
87
|
+
}
|
88
|
+
|
89
|
+
.wym_skin_minimal div.wym_dropdown ul li {
|
90
|
+
width: 146px;
|
91
|
+
height: 20px;
|
92
|
+
padding: 0px;
|
93
|
+
margin: 0px;
|
94
|
+
border: 1px solid #777;
|
95
|
+
border-top: none;
|
96
|
+
background: #EEE;
|
97
|
+
list-style-image: none;
|
98
|
+
}
|
99
|
+
|
100
|
+
.wym_skin_minimal div.wym_dropdown h2 {
|
101
|
+
width: 138px;
|
102
|
+
height: 16px;
|
103
|
+
color: #000;
|
104
|
+
background-image: url(images/bg.selector.silver.gif);
|
105
|
+
background-position: 0px -18px;
|
106
|
+
background-repeat: no-repeat;
|
107
|
+
border: none;
|
108
|
+
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
|
109
|
+
font-size: 12px;
|
110
|
+
font-weight: bold;
|
111
|
+
padding: 2px 0px 0px 10px;
|
112
|
+
margin: 0px;
|
113
|
+
}
|
114
|
+
|
115
|
+
.wym_skin_minimal div.wym_dropdown a {
|
116
|
+
text-decoration: none;
|
117
|
+
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
|
118
|
+
font-size: 12px;
|
119
|
+
padding: 5px 0px 0px 10px;
|
120
|
+
display: block;
|
121
|
+
width: 136px;
|
122
|
+
height: 15px;
|
123
|
+
color: #000;
|
124
|
+
text-align: left;
|
125
|
+
margin-left: 0px;
|
126
|
+
}
|
127
|
+
|
128
|
+
.wym_skin_minimal div.wym_dropdown a:hover {
|
129
|
+
background: #BBB;
|
130
|
+
border-bottom: none;
|
131
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
jQuery.fn.selectify = function() {
|
2
|
+
return this.each(function() {
|
3
|
+
jQuery(this).hover(
|
4
|
+
function() {
|
5
|
+
jQuery("h2", this).css("background-position", "0px -18px");
|
6
|
+
jQuery("ul", this).fadeIn("fast");
|
7
|
+
},
|
8
|
+
function() {
|
9
|
+
jQuery("h2", this).css("background-position", "");
|
10
|
+
jQuery("ul", this).fadeOut("fast");
|
11
|
+
}
|
12
|
+
);
|
13
|
+
});
|
14
|
+
};
|
15
|
+
|
16
|
+
WYMeditor.SKINS['minimal'] = {
|
17
|
+
//placeholder for the skin JS, if needed
|
18
|
+
|
19
|
+
//init the skin
|
20
|
+
//wym is the WYMeditor.editor instance
|
21
|
+
init: function(wym) {
|
22
|
+
|
23
|
+
//render following sections as dropdown menus
|
24
|
+
jQuery(wym._box).find(wym._options.toolsSelector + ', ' + wym._options.containersSelector + ', ' + wym._options.classesSelector)
|
25
|
+
.addClass("wym_dropdown")
|
26
|
+
.selectify();
|
27
|
+
|
28
|
+
|
29
|
+
}
|
30
|
+
};
|