spree_editor 0.40.0 → 0.50.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/shared/editor_engines/_tiny_mce.html.erb +1 -0
- data/app/views/shared/editor_engines/_wym_editor.html.erb +1 -1
- data/config/locales/ru.yml +4 -4
- data/public/javascripts/tinymce/langs/ru.js +1 -0
- data/public/javascripts/tinymce/plugins/advhr/langs/ru_dlg.js +1 -0
- data/public/javascripts/tinymce/plugins/advimage/langs/ru_dlg.js +1 -0
- data/public/javascripts/tinymce/plugins/advlink/langs/ru_dlg.js +1 -0
- data/public/javascripts/tinymce/plugins/emotions/langs/ru_dlg.js +1 -0
- data/public/javascripts/tinymce/plugins/fullpage/langs/ru_dlg.js +1 -0
- data/public/javascripts/tinymce/plugins/media/langs/ru_dlg.js +1 -0
- data/public/javascripts/tinymce/plugins/paste/langs/ru_dlg.js +1 -0
- data/public/javascripts/tinymce/plugins/searchreplace/langs/ru_dlg.js +1 -0
- data/public/javascripts/tinymce/plugins/style/langs/ru_dlg.js +1 -0
- data/public/javascripts/tinymce/plugins/table/langs/ru_dlg.js +1 -0
- data/public/javascripts/tinymce/plugins/template/langs/ru_dlg.js +1 -0
- data/public/javascripts/tinymce/plugins/xhtmlxtras/langs/ru_dlg.js +1 -0
- data/public/javascripts/tinymce/themes/advanced/langs/ru.js +1 -0
- data/public/javascripts/tinymce/themes/advanced/langs/ru_dlg.js +1 -0
- data/public/javascripts/tinymce/themes/simple/langs/ru.js +1 -0
- data/public/javascripts/wymeditor/lang/ru.js +6 -4
- data/public/stylesheets/wymeditor/skins/spree/skin.css +529 -0
- data/public/stylesheets/wymeditor/skins/spree/wymiframe.css +96 -0
- data/spree_editor.gemspec +1 -3
- metadata +21 -23
- data/public/javascripts/wymeditor/skins/default/icons.png +0 -0
- data/public/javascripts/wymeditor/skins/default/skin.css +0 -133
- data/public/javascripts/wymeditor/skins/default/skin.js +0 -40
- data/public/javascripts/wymeditor/skins/minimal/images/bg.header.gif +0 -0
- data/public/javascripts/wymeditor/skins/minimal/images/bg.selector.silver.gif +0 -0
- data/public/javascripts/wymeditor/skins/minimal/images/bg.wymeditor.png +0 -0
- data/public/javascripts/wymeditor/skins/minimal/images/icons.silver.gif +0 -0
- data/public/javascripts/wymeditor/skins/minimal/skin.css +0 -131
- data/public/javascripts/wymeditor/skins/minimal/skin.js +0 -30
- data/public/javascripts/wymeditor/skins/silver/COPYING +0 -674
- data/public/javascripts/wymeditor/skins/silver/README +0 -27
- data/public/javascripts/wymeditor/skins/silver/images/bg.header.gif +0 -0
- data/public/javascripts/wymeditor/skins/silver/images/bg.selector.silver.gif +0 -0
- data/public/javascripts/wymeditor/skins/silver/images/bg.wymeditor.png +0 -0
- data/public/javascripts/wymeditor/skins/silver/images/icons.silver.gif +0 -0
- data/public/javascripts/wymeditor/skins/silver/skin.css +0 -297
- data/public/javascripts/wymeditor/skins/silver/skin.js +0 -61
- data/public/javascripts/wymeditor/skins/twopanels/icons.png +0 -0
- data/public/javascripts/wymeditor/skins/twopanels/skin.css +0 -134
- data/public/javascripts/wymeditor/skins/twopanels/skin.js +0 -39
@@ -0,0 +1,529 @@
|
|
1
|
+
/*TRYING TO RESET STYLES THAT MAY INTERFERE WITH WYMEDITOR*/
|
2
|
+
.wym_skin_refinery p, .wym_skin_refinery h2, .wym_skin_refinery h3,
|
3
|
+
.wym_skin_refinery ul, .wym_skin_refinery li {
|
4
|
+
background: transparent;
|
5
|
+
margin: 0;
|
6
|
+
padding: 0;
|
7
|
+
border-width: 0;
|
8
|
+
list-style: none;
|
9
|
+
}
|
10
|
+
|
11
|
+
|
12
|
+
/*HIDDEN BY DEFAULT*/
|
13
|
+
.wym_skin_refinery .wym_area_left {
|
14
|
+
display: none;
|
15
|
+
}
|
16
|
+
.wym_skin_refinery .wym_area_right {
|
17
|
+
display: block;
|
18
|
+
}
|
19
|
+
|
20
|
+
|
21
|
+
/*TYPO*/
|
22
|
+
.wym_skin_refinery {
|
23
|
+
font-size: 62.5%;
|
24
|
+
font-family: Verdana, Arial, sans-serif;
|
25
|
+
}
|
26
|
+
.wym_skin_refinery h2 {
|
27
|
+
font-size: 110%; /* = 11px */
|
28
|
+
}
|
29
|
+
.wym_skin_refinery h3 {
|
30
|
+
font-size: 100%; /* = 10px */
|
31
|
+
}
|
32
|
+
.wym_skin_refinery li {
|
33
|
+
font-size: 100%; /* = 10px */
|
34
|
+
}
|
35
|
+
|
36
|
+
|
37
|
+
/*WYM_BOX*/
|
38
|
+
.wym_skin_refinery {
|
39
|
+
border: 1px solid #CCCCCC;
|
40
|
+
background: #F2F2F2;
|
41
|
+
padding: 5px 5px 0px 5px
|
42
|
+
}
|
43
|
+
|
44
|
+
/*auto-clear the wym_box*/
|
45
|
+
.wym_skin_refinery:after {
|
46
|
+
content: ".";
|
47
|
+
display: block;
|
48
|
+
height: 0;
|
49
|
+
clear: both;
|
50
|
+
visibility: hidden;
|
51
|
+
}
|
52
|
+
* html .wym_skin_refinery {
|
53
|
+
height: 1%;
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
/*WYM_HTML*/
|
58
|
+
.wym_skin_refinery .wym_html {
|
59
|
+
width: 100%;
|
60
|
+
}
|
61
|
+
.wym_skin_refinery .wym_html textarea {
|
62
|
+
width: 100% !important;
|
63
|
+
height: 400px;
|
64
|
+
border: 1px solid gray;
|
65
|
+
background: white;
|
66
|
+
}
|
67
|
+
|
68
|
+
/*WYM_IFRAME*/
|
69
|
+
.wym_skin_refinery .wym_iframe {
|
70
|
+
width: 100%;
|
71
|
+
}
|
72
|
+
.wym_skin_refinery .wym_iframe iframe {
|
73
|
+
border: 1px solid #CCCCCC;
|
74
|
+
}
|
75
|
+
.wym_skin_refinery .wym_iframe iframe {
|
76
|
+
width: 100%;
|
77
|
+
background: white
|
78
|
+
}
|
79
|
+
textarea.wymeditor, .wym_skin_refinery .wym_iframe iframe {
|
80
|
+
height: 400px;
|
81
|
+
}
|
82
|
+
|
83
|
+
/*AREAS*/
|
84
|
+
.wym_skin_refinery .wym_area_left {
|
85
|
+
width: 150px;
|
86
|
+
float: left;
|
87
|
+
}
|
88
|
+
.wym_skin_refinery .wym_area_right {
|
89
|
+
width: 150px;
|
90
|
+
float: right;
|
91
|
+
}
|
92
|
+
.wym_skin_refinery .wym_area_bottom {
|
93
|
+
height: 1%;
|
94
|
+
clear: both;
|
95
|
+
}
|
96
|
+
* html .wym_skin_refinery .wym_area_main {
|
97
|
+
height: 1%;
|
98
|
+
}
|
99
|
+
* html .wym_skin_refinery .wym_area_top {
|
100
|
+
height: 1%;
|
101
|
+
}
|
102
|
+
*+html .wym_skin_refinery .wym_area_top {
|
103
|
+
height: 1%;
|
104
|
+
}
|
105
|
+
.ie6 .wym_skin_refinery .wym_area_top, .ie7 .wym_skin_refinery .wym_area_top, .ie8 .wym_skin_refinery .wym_area_top {
|
106
|
+
padding-bottom: 5px;
|
107
|
+
}
|
108
|
+
|
109
|
+
/*SECTIONS SYSTEM*/
|
110
|
+
|
111
|
+
/*common defaults for all sections*/
|
112
|
+
.wym_skin_refinery .wym_section {
|
113
|
+
margin-bottom: 5px;
|
114
|
+
}
|
115
|
+
.wym_skin_refinery .wym_section h2,
|
116
|
+
.wym_skin_refinery .wym_section h3 {
|
117
|
+
padding: 1px 3px;
|
118
|
+
margin: 0;
|
119
|
+
}
|
120
|
+
.wym_skin_refinery .wym_section a {
|
121
|
+
padding: 0 3px;
|
122
|
+
display: block;
|
123
|
+
text-decoration: none;
|
124
|
+
color: black;
|
125
|
+
}
|
126
|
+
.wym_skin_refinery .wym_section a:hover, .wym_skin_refinery .wym_section a.selected {
|
127
|
+
background-color: #22A7F2;
|
128
|
+
color: white;
|
129
|
+
}
|
130
|
+
/*hide section titles by default*/
|
131
|
+
.wym_skin_refinery .wym_section h2 {
|
132
|
+
display: none;
|
133
|
+
}
|
134
|
+
/*disable any margin-collapse*/
|
135
|
+
.wym_skin_refinery .wym_section {
|
136
|
+
padding: 0px;
|
137
|
+
}
|
138
|
+
/*auto-clear sections*/
|
139
|
+
.wym_skin_refinery .wym_section ul:after {
|
140
|
+
content: ".";
|
141
|
+
display: block;
|
142
|
+
height: 0;
|
143
|
+
clear: both;
|
144
|
+
visibility: hidden;
|
145
|
+
}
|
146
|
+
* html .wym_skin_refinery .wym_section ul {
|
147
|
+
height: 1%;
|
148
|
+
}
|
149
|
+
|
150
|
+
/*option: add this class to a section to make it render as a panel*/
|
151
|
+
.wym_skin_refinery .wym_panel {
|
152
|
+
}
|
153
|
+
.wym_skin_refinery .wym_panel h2 {
|
154
|
+
display: block;
|
155
|
+
}
|
156
|
+
|
157
|
+
/*option: add this class to a section to make it render as a dropdown menu*/
|
158
|
+
.wym_skin_refinery .wym_dropdown h2 {
|
159
|
+
display: block;
|
160
|
+
}
|
161
|
+
.wym_skin_refinery .wym_dropdown ul {
|
162
|
+
display: none;
|
163
|
+
position: absolute;
|
164
|
+
background: white;
|
165
|
+
}
|
166
|
+
.wym_skin_refinery .wym_dropdown:hover ul,
|
167
|
+
.wym_skin_refinery .wym_dropdown.hover ul {
|
168
|
+
display: block;
|
169
|
+
}
|
170
|
+
|
171
|
+
/*option: add this class to a section to make its elements render buttons (icons are only available for the wym_tools section for now)*/
|
172
|
+
.wym_skin_refinery .wym_buttons li {
|
173
|
+
float: left;
|
174
|
+
}
|
175
|
+
.wym_skin_refinery .wym_buttons a {
|
176
|
+
width: auto;
|
177
|
+
height: 24px;
|
178
|
+
overflow: hidden;
|
179
|
+
}
|
180
|
+
|
181
|
+
.wym_skin_refinery .wym_section li a {
|
182
|
+
background-color: #F2F2F2;
|
183
|
+
background-repeat: no-repeat;
|
184
|
+
background-position: 4px 3px;
|
185
|
+
color: #41403C;
|
186
|
+
font-family: Arial;
|
187
|
+
font-size: 11px;
|
188
|
+
line-height: 24px;
|
189
|
+
padding-left: 4px;
|
190
|
+
padding-right: 4px;
|
191
|
+
}
|
192
|
+
|
193
|
+
/* spacing */
|
194
|
+
.wym_skin_refinery .wym_section li.wym_containers_p
|
195
|
+
, .wym_skin_refinery .wym_section li.wym_containers_h2
|
196
|
+
, .wym_skin_refinery .wym_section li.wym_tools_strong
|
197
|
+
, .wym_skin_refinery .wym_section li.wym_tools_unordered_list
|
198
|
+
, .wym_skin_refinery .wym_section li.wym_tools_link
|
199
|
+
, .wym_skin_refinery .wym_section li.wym_tools_image {
|
200
|
+
margin-right: 1px;
|
201
|
+
}
|
202
|
+
.wym_skin_refinery .wym_section li.wym_tools_unordered_list
|
203
|
+
, .wym_skin_refinery .wym_section li.wym_tools_link
|
204
|
+
, .wym_skin_refinery .wym_section li.wym_tools_image
|
205
|
+
, .wym_skin_refinery .wym_section li.wym_tools_html {
|
206
|
+
margin-left: 10px;
|
207
|
+
padding-left: 10px;
|
208
|
+
border-left: 1px solid #CCC;
|
209
|
+
}
|
210
|
+
|
211
|
+
/* image replacements */
|
212
|
+
.wym_skin_refinery .wym_section li.wym_tools_ordered_list a
|
213
|
+
, .wym_skin_refinery .wym_section li.wym_tools_unordered_list a
|
214
|
+
, .wym_skin_refinery .wym_section li.wym_tools_link a
|
215
|
+
, .wym_skin_refinery .wym_section li.wym_tools_unlink a
|
216
|
+
, .wym_skin_refinery .wym_section li.wym_tools_image a
|
217
|
+
, .wym_skin_refinery .wym_section li.wym_tools_table a
|
218
|
+
, .wym_skin_refinery .wym_section li.wym_tools_html a
|
219
|
+
, .wym_skin_refinery .wym_section li.wym_tools_class a {
|
220
|
+
padding-left: 24px;
|
221
|
+
}
|
222
|
+
.wym_skin_refinery .wym_section li.wym_tools_ordered_list a {
|
223
|
+
background-image: url('/images/wymeditor/skins/refinery/text_list_numbers.png');
|
224
|
+
}
|
225
|
+
.wym_skin_refinery .wym_section li.wym_tools_unordered_list a {
|
226
|
+
background-image: url('/images/wymeditor/skins/refinery/text_list_bullets.png');
|
227
|
+
}
|
228
|
+
.wym_skin_refinery .wym_section li.wym_tools_link a {
|
229
|
+
background-image: url('/images/wymeditor/skins/refinery/link_add.png');
|
230
|
+
}
|
231
|
+
.wym_skin_refinery .wym_section li.wym_tools_unlink a {
|
232
|
+
background-image: url('/images/wymeditor/skins/refinery/link_break.png');
|
233
|
+
}
|
234
|
+
.wym_skin_refinery .wym_section li.wym_tools_image a {
|
235
|
+
background-image: url('/images/wymeditor/skins/refinery/photo_add.png');
|
236
|
+
}
|
237
|
+
.wym_skin_refinery .wym_section li.wym_tools_table a {
|
238
|
+
background-image: url('/images/wymeditor/skins/refinery/table_add.png');
|
239
|
+
}
|
240
|
+
.wym_skin_refinery .wym_section li.wym_tools_html a {
|
241
|
+
background-image: url('/images/wymeditor/skins/refinery/page_code.png');
|
242
|
+
}
|
243
|
+
|
244
|
+
/*image replacements
|
245
|
+
.wym_skin_refinery .wym_buttons li a {
|
246
|
+
text-indent: -9999px;
|
247
|
+
background-repeat: no-repeat;
|
248
|
+
background-position: 4px 4px;
|
249
|
+
} */
|
250
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_strong a, .wym_skin_refinery .wym_buttons li.wym_tools_emphasis a {
|
251
|
+
width: 20px;
|
252
|
+
height: 20px;
|
253
|
+
overflow: hidden;
|
254
|
+
padding: 2px;
|
255
|
+
text-indent: -9999px;
|
256
|
+
background-repeat: no-repeat;
|
257
|
+
background-position: 4px 4px;
|
258
|
+
}
|
259
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_strong a {
|
260
|
+
background-image: url('/images/wymeditor/skins/refinery/text_bold.png');
|
261
|
+
}
|
262
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_emphasis a {
|
263
|
+
background-image: url('/images/wymeditor/skins/refinery/text_italic.png');
|
264
|
+
}
|
265
|
+
/*
|
266
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_superscript a {
|
267
|
+
background-image: url('/images/wymeditor/skins/refinery/text_superscript.png');
|
268
|
+
}
|
269
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_subscript a {
|
270
|
+
background-image: url('/images/wymeditor/skins/refinery/text_subscript.png');
|
271
|
+
}
|
272
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_ordered_list a {
|
273
|
+
background-image: url('/images/wymeditor/skins/refinery/text_list_numbers.png');
|
274
|
+
}
|
275
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_unordered_list a {
|
276
|
+
background-image: url('/images/wymeditor/skins/refinery/text_list_bullets.png');
|
277
|
+
}
|
278
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_indent a {
|
279
|
+
background-image: url('/images/wymeditor/skins/refinery/text_indent.png');
|
280
|
+
}
|
281
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_outdent a {
|
282
|
+
background-image: url('/images/wymeditor/skins/refinery/text_indent_remove.png');
|
283
|
+
}
|
284
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_undo a {
|
285
|
+
background-image: url('/images/wymeditor/skins/refinery/arrow_undo.png');
|
286
|
+
}
|
287
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_redo a {
|
288
|
+
background-image: url('/images/wymeditor/skins/refinery/arrow_redo.png');
|
289
|
+
}
|
290
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_link a {
|
291
|
+
background-image: url('/images/wymeditor/skins/refinery/link_add.png');
|
292
|
+
}
|
293
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_unlink a {
|
294
|
+
background-image: url('/images/wymeditor/skins/refinery/link_break.png');
|
295
|
+
}
|
296
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_image a {
|
297
|
+
background-image: url('/images/wymeditor/skins/refinery/photo_add.png');
|
298
|
+
}
|
299
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_table a {
|
300
|
+
background-image: url('/images/wymeditor/skins/refinery/table_add.png');
|
301
|
+
}
|
302
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_paste a {
|
303
|
+
background-image: url('/images/wymeditor/skins/refinery/page_paste.png');
|
304
|
+
}
|
305
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_html a {
|
306
|
+
background-image: url('/images/wymeditor/skins/refinery/page_code.png');
|
307
|
+
}
|
308
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_preview a {
|
309
|
+
background-image: url('/images/wymeditor/skins/refinery/eye.png');
|
310
|
+
}
|
311
|
+
*/
|
312
|
+
/* make tools and containers play nicely next to eachother */
|
313
|
+
|
314
|
+
.wym_skin_refinery .wym_tools, .wym_skin_refinery .wym_containers,
|
315
|
+
.wym_skin_refinery .wym_classes_container {
|
316
|
+
float: left;
|
317
|
+
margin: 0px 0px 5px 0px;
|
318
|
+
}
|
319
|
+
|
320
|
+
/* image replacements for containers */
|
321
|
+
.wym_skin_refinery .wym_containers li {
|
322
|
+
float: left;
|
323
|
+
}
|
324
|
+
.wym_skin_refinery .wym_containers li a, .wym_skin_refinery li.wym_tools_class a {
|
325
|
+
background-repeat: no-repeat;
|
326
|
+
width: auto;
|
327
|
+
height: 24px;
|
328
|
+
overflow: hidden;
|
329
|
+
border: 0px none;
|
330
|
+
}
|
331
|
+
.wym_skin_refinery .wym_containers li a {
|
332
|
+
background-repeat: no-repeat;
|
333
|
+
background-position: center center;
|
334
|
+
width: 20px; height: 20px;
|
335
|
+
overflow: hidden;
|
336
|
+
padding: 2px;
|
337
|
+
border: 0px none;
|
338
|
+
}
|
339
|
+
.wym_skin_refinery li.wym_containers_h1 a {
|
340
|
+
background-image: url('/images/wymeditor/skins/refinery/text_heading_1.png');
|
341
|
+
}
|
342
|
+
.wym_skin_refinery li.wym_containers_h2 a {
|
343
|
+
background-image: url('/images/wymeditor/skins/refinery/text_heading_2.png');
|
344
|
+
}
|
345
|
+
.wym_skin_refinery li.wym_containers_h3 a {
|
346
|
+
background-image: url('/images/wymeditor/skins/refinery/text_heading_3.png');
|
347
|
+
}
|
348
|
+
.wym_skin_refinery li.wym_containers_h4 a {
|
349
|
+
background-image: url('/images/wymeditor/skins/refinery/text_heading_4.png');
|
350
|
+
}
|
351
|
+
.wym_skin_refinery li.wym_containers_h5 a {
|
352
|
+
background-image: url('/images/wymeditor/skins/refinery/text_heading_5.png');
|
353
|
+
}
|
354
|
+
.wym_skin_refinery li.wym_containers_h6 a {
|
355
|
+
background-image: url('/images/wymeditor/skins/refinery/text_heading_6.png');
|
356
|
+
}
|
357
|
+
.wym_skin_refinery li.wym_containers_p a {
|
358
|
+
background-image: url('/images/wymeditor/skins/refinery/text_paragraph.png');
|
359
|
+
}
|
360
|
+
.wym_skin_refinery li.wym_tools_class a {
|
361
|
+
background-image: url('/images/wymeditor/skins/refinery/style.png');
|
362
|
+
}
|
363
|
+
|
364
|
+
|
365
|
+
/*DECORATION*/
|
366
|
+
.wym_skin_refinery .wym_section h2 {
|
367
|
+
background: #DDD;
|
368
|
+
border: solid gray;
|
369
|
+
border-width: 0 0 1px;
|
370
|
+
}
|
371
|
+
.wym_skin_refinery .wym_section h2 span {
|
372
|
+
color: gray;
|
373
|
+
}
|
374
|
+
.wym_skin_refinery .wym_panel {
|
375
|
+
padding: 0;
|
376
|
+
border: solid gray;
|
377
|
+
border-width: 1px;
|
378
|
+
background: white;
|
379
|
+
}
|
380
|
+
.wym_skin_refinery .wym_panel ul {
|
381
|
+
margin: 2px 0 5px;
|
382
|
+
}
|
383
|
+
.wym_skin_refinery .wym_dropdown {
|
384
|
+
padding: 0;
|
385
|
+
border: solid gray;
|
386
|
+
border-width: 1px 1px 0 1px;
|
387
|
+
}
|
388
|
+
.wym_skin_refinery .wym_dropdown ul {
|
389
|
+
border: solid gray;
|
390
|
+
border-width: 0 1px 1px 1px;
|
391
|
+
margin-left: -1px;
|
392
|
+
padding: 5px 10px 5px 3px;
|
393
|
+
}
|
394
|
+
|
395
|
+
/*DIALOGS*/
|
396
|
+
.wym_dialog div.row {
|
397
|
+
margin-bottom: 5px;
|
398
|
+
}
|
399
|
+
.wym_dialog div.row input {
|
400
|
+
margin-right: 5px;
|
401
|
+
}
|
402
|
+
.wym_dialog div.row label {
|
403
|
+
float: left;
|
404
|
+
width: 150px;
|
405
|
+
display: block;
|
406
|
+
text-align: right;
|
407
|
+
margin-right: 10px;
|
408
|
+
}
|
409
|
+
.wym_dialog div.row-indent {
|
410
|
+
padding-left: 160px;
|
411
|
+
}
|
412
|
+
/*autoclearing*/
|
413
|
+
.wym_dialog div.row:after {
|
414
|
+
content: ".";
|
415
|
+
display: block;
|
416
|
+
height: 0;
|
417
|
+
clear: both;
|
418
|
+
visibility: hidden;
|
419
|
+
}
|
420
|
+
.wym_dialog div.row {
|
421
|
+
display: inline-block;
|
422
|
+
}
|
423
|
+
/* Hides from IE-mac \*/
|
424
|
+
* html .wym_dialog div.row {
|
425
|
+
height: 1%;
|
426
|
+
}
|
427
|
+
.wym_dialog div.row {
|
428
|
+
display: block;
|
429
|
+
}
|
430
|
+
/* End hide from IE-mac */
|
431
|
+
|
432
|
+
/*WYMEDITOR_LINK*/
|
433
|
+
a.wym_wymeditor_link {
|
434
|
+
text-indent: -9999px;
|
435
|
+
float: right;
|
436
|
+
display: block;
|
437
|
+
width: 50px;
|
438
|
+
height: 15px;
|
439
|
+
background: url(../wymeditor_icon.png);
|
440
|
+
overflow: hidden;
|
441
|
+
text-decoration: none;
|
442
|
+
}
|
443
|
+
|
444
|
+
|
445
|
+
/* hide containers and classes */
|
446
|
+
.wym_skin_refinery .wym_area_right, .wym_skin_refinery .wym_area_bottom {
|
447
|
+
display: none !important;
|
448
|
+
}
|
449
|
+
.wym_skin_refinery .wym_area_main {
|
450
|
+
margin-right: 0px !important;
|
451
|
+
}
|
452
|
+
|
453
|
+
.wym_skin_refinery .wym_buttons ul, .wym_buttons ul li {
|
454
|
+
margin: 0px;
|
455
|
+
}
|
456
|
+
|
457
|
+
.wym_skin_refinery .wym_buttons li a {
|
458
|
+
border-bottom: 0px !important;
|
459
|
+
}
|
460
|
+
|
461
|
+
#dialog_frame {
|
462
|
+
width: 928px;
|
463
|
+
height: 500px;
|
464
|
+
padding: 0px;
|
465
|
+
border: 0px solid #F2F1ED;
|
466
|
+
}
|
467
|
+
.wym_hideables {
|
468
|
+
display: none;
|
469
|
+
}
|
470
|
+
|
471
|
+
.wym_classes {
|
472
|
+
display: block;
|
473
|
+
position: absolute;
|
474
|
+
left: 0px;
|
475
|
+
top: 23px;
|
476
|
+
padding-top: 6px !important;
|
477
|
+
width: 200px;
|
478
|
+
}
|
479
|
+
.wym_classes_hidden {
|
480
|
+
display: none;
|
481
|
+
}
|
482
|
+
.wym_tools_class.activated {
|
483
|
+
position: relative;
|
484
|
+
}
|
485
|
+
.wym_skin_refinery .wym_buttons .wym_tools_class .wym_classes li {
|
486
|
+
float: left;
|
487
|
+
width: 200px;
|
488
|
+
cursor: pointer;
|
489
|
+
background-color: #F6F5F4;
|
490
|
+
}
|
491
|
+
.wym_skin_refinery .wym_buttons .wym_tools_class .wym_classes li a {
|
492
|
+
text-indent: 0px;
|
493
|
+
background-image: none;
|
494
|
+
background-repeat: no-repeat;
|
495
|
+
background-position: 0px 0px;
|
496
|
+
width: auto;
|
497
|
+
}
|
498
|
+
.wym_skin_refinery .wym_tools_class .wym_classes .wym_tools_class_multiple_rules span {
|
499
|
+
display: block;
|
500
|
+
cursor: auto;
|
501
|
+
font-size: 13px;
|
502
|
+
font-weight: bold;
|
503
|
+
font-style: italic;
|
504
|
+
margin: 3px 0px 0px 6px;
|
505
|
+
background: #EDEEDE;
|
506
|
+
}
|
507
|
+
.wym_skin_refinery .wym_tools_class .wym_tools_class_multiple_rules ul li {
|
508
|
+
}
|
509
|
+
.wym_skin_refinery .wym_tools_class .wym_classes .wym_tools_class_multiple_rules ul li a {
|
510
|
+
width: 167px;
|
511
|
+
padding-left: 12px;
|
512
|
+
padding-right: 21px;
|
513
|
+
height: 20px;
|
514
|
+
line-height: 20px;
|
515
|
+
}
|
516
|
+
|
517
|
+
.wym_skin_refinery .wym_tools_class .wym_classes li.enabled a {
|
518
|
+
background-image: url('/images/refinery/icons/star.png');
|
519
|
+
background-repeat: no-repeat;
|
520
|
+
background-position: 181px 2px;
|
521
|
+
}
|
522
|
+
|
523
|
+
.wym_skin_refinery .wym_status.wym_section {
|
524
|
+
display: none;
|
525
|
+
}
|
526
|
+
|
527
|
+
.wym_skin_refinery {
|
528
|
+
opacity: 0;
|
529
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
/*
|
2
|
+
* WYMeditor : what you see is What You Mean web-based editor
|
3
|
+
* Copyright (c) 2008 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
|
+
* wymeditor.css
|
12
|
+
* Main editor css file.
|
13
|
+
* See the documentation for more info.
|
14
|
+
*
|
15
|
+
* File Authors:
|
16
|
+
* Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
|
17
|
+
* Daniel Reszka (d.reszka a-t wymeditor dotorg)
|
18
|
+
*/
|
19
|
+
|
20
|
+
/* VISUAL FEEDBACK */
|
21
|
+
|
22
|
+
/* basic */
|
23
|
+
body { background: #fff;}
|
24
|
+
|
25
|
+
/* make HTML blocs visible */
|
26
|
+
p,
|
27
|
+
h1,
|
28
|
+
h2,
|
29
|
+
h3,
|
30
|
+
h4,
|
31
|
+
h5,
|
32
|
+
h6,
|
33
|
+
ul,
|
34
|
+
ol,
|
35
|
+
table,
|
36
|
+
blockquote,
|
37
|
+
pre { background: transparent no-repeat 2px 2px;
|
38
|
+
padding:8px 5px 5px;
|
39
|
+
margin:6px 0px;
|
40
|
+
border: 1px dotted #cccccc;
|
41
|
+
}
|
42
|
+
td { background: #F0F4F8; }
|
43
|
+
th { background: #ffffcc; }
|
44
|
+
ul,
|
45
|
+
ol { border-left:20px solid #B9C4D0; padding:0px 5px; }
|
46
|
+
caption { background: #E4E4B0; padding: 5px; font-weight: bold; }
|
47
|
+
table { font-size: 12px; width: 500px; }
|
48
|
+
td { width: 25%; }
|
49
|
+
blockquote { margin-left: 30px; }
|
50
|
+
pre { background-color:transparent; border: 1px solid white; }
|
51
|
+
|
52
|
+
/* Gecko min height fix */
|
53
|
+
p { min-height: 1em; } /*min-height is needed under Firefox, because empty parargraphs */
|
54
|
+
html.ie p { min-height: auto; } /* but we have to remove it under IE7 because it triggers the 'haslayout' mode */
|
55
|
+
td { height: 1.6em; }
|
56
|
+
|
57
|
+
/* labels */
|
58
|
+
p { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-p.png'); }
|
59
|
+
h1 { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-h1.png'); }
|
60
|
+
h2 { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-h2.png'); }
|
61
|
+
h3 { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-h3.png'); }
|
62
|
+
h4 { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-h4.png'); }
|
63
|
+
h5 { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-h5.png'); }
|
64
|
+
h6 { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-h6.png'); }
|
65
|
+
blockquote{ background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-blockquote.png'); }
|
66
|
+
pre { background-image: url('/images/wymeditor/skins/refinery/iframe/lbl-pre.png'); }
|
67
|
+
|
68
|
+
/* specific HTML elements */
|
69
|
+
caption { text-align: left; }
|
70
|
+
img { margin-right: 5px;
|
71
|
+
border: 1px solid transparent; }
|
72
|
+
a img { border: 1px dotted blue !important; }
|
73
|
+
acronym { border: 1px solid gray; }
|
74
|
+
|
75
|
+
/* visual feedback for non-valid nesting of elements*/
|
76
|
+
h1 h1, h1 h2, h1 h3, h1 h4, h1 h5, h1 h6, h1 p, h1 pre, h1 address,
|
77
|
+
h2 h1, h2 h2, h2 h3, h2 h4, h2 h5, h2 h6, h2 p, h2 pre, h2 address,
|
78
|
+
h3 h1, h3 h2, h3 h3, h3 h4, h3 h5, h3 h6, h3 p, h3 pre, h3 address,
|
79
|
+
h4 h1, h4 h2, h4 h3, h4 h4, h4 h5, h4 h6, h4 p, h4 pre, h4 address,
|
80
|
+
h5 h1, h5 h2, h5 h3, h5 h4, h5 h5, h5 h6, h5 p, h5 pre, h5 address,
|
81
|
+
h6 h1, h6 h2, h6 h3, h6 h4, h6 h4, h6 h6, h6 p, h6 pre, h6 address,
|
82
|
+
p h1, p h2, p h3, p h4, p h5, p h6, p pre, p address,
|
83
|
+
pre h1, pre h2, pre h3, pre h4, pre h5, pre h6, pre p, pre pre, pre address,
|
84
|
+
address h1, address h2, address h3, address h4, address h5, address h6,
|
85
|
+
address p, address pre, address address
|
86
|
+
{ background-color: #ff9999 !important;
|
87
|
+
border: 1px solid red !important;
|
88
|
+
font-size: 12px !important;
|
89
|
+
font-weight: normal; }
|
90
|
+
|
91
|
+
/* indicate invalid text area fields */
|
92
|
+
body.fieldWithErrors { background-color: #ffecf0 !important; }
|
93
|
+
|
94
|
+
img.selected_by_wym {
|
95
|
+
border: 1px dashed #22a7f2;
|
96
|
+
}
|
data/spree_editor.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.platform = Gem::Platform::RUBY
|
3
3
|
s.name = 'spree_editor'
|
4
|
-
s.version = '0.
|
4
|
+
s.version = '0.50.0'
|
5
5
|
s.summary = 'Adds support of several WYSIWYG editors to Spree'
|
6
6
|
s.description = 'Atm supported: YUIRichEditor, WYMEditor, TinyMCE'
|
7
7
|
s.required_ruby_version = '>= 1.8.7'
|
@@ -16,7 +16,5 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.require_path = 'lib'
|
17
17
|
s.requirements << 'none'
|
18
18
|
|
19
|
-
s.has_rdoc = true
|
20
|
-
|
21
19
|
s.add_dependency('spree_core', '>= 0.40.0')
|
22
20
|
end
|