beef-admin_area 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/VERSION +1 -1
  2. data/app/views/admin/users/index.html.erb +1 -1
  3. data/app/views/layouts/admin.html.erb +1 -2
  4. data/beef-admin_area.gemspec +54 -4
  5. data/generators/admin_area_files/admin_area_files_generator.rb +74 -2
  6. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/langs/en.js +1 -0
  7. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
  8. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  9. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  10. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  11. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  12. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  13. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +1 -0
  14. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/template.htm +387 -0
  15. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/editor_plugin.js +1 -0
  16. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/js/pastetext.js +1 -0
  17. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/js/pasteword.js +1 -0
  18. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/langs/en_dlg.js +1 -0
  19. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/pastetext.htm +33 -0
  20. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/pasteword.htm +27 -0
  21. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/safari/blank.htm +1 -0
  22. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/safari/editor_plugin.js +1 -0
  23. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/blank.htm +12 -0
  24. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/css/template.css +1 -0
  25. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/editor_plugin.js +1 -0
  26. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/js/template.js +1 -0
  27. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/langs/en_dlg.js +1 -0
  28. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/template.htm +38 -0
  29. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/anchor.htm +31 -0
  30. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/color_picker.htm +75 -0
  31. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/editor_template.js +1 -0
  32. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  33. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/img/icons.gif +0 -0
  34. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/anchor.js +1 -0
  35. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/color_picker.js +1 -0
  36. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/link.js +1 -0
  37. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/langs/en.js +1 -0
  38. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/langs/en_dlg.js +1 -0
  39. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/link.htm +63 -0
  40. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/content.css +1 -0
  41. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/dialog.css +1 -0
  42. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
  43. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
  44. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  45. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  46. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
  47. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
  48. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/ui.css +1 -0
  49. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/tiny_mce.js +1 -0
  50. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/tiny_mce_popup.js +1 -0
  51. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/utils/form_utils.js +1 -0
  52. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/utils/mctabs.js +1 -0
  53. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/utils/validate.js +1 -0
  54. data/generators/admin_area_files/templates/public/javascripts/tiny-mce-config.js +78 -0
  55. data/generators/admin_area_files/templates/public/stylesheets/admin/screen.css +2 -2
  56. metadata +51 -2
@@ -0,0 +1,387 @@
1
+ <!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -->
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>Template for dialogs</title>
5
+ <link rel="stylesheet" type="text/css" href="skins/clearlooks2/window.css" />
6
+ </head>
7
+ <body>
8
+
9
+ <div class="mceEditor">
10
+ <div class="clearlooks2" style="width:400px; height:100px; left:10px;">
11
+ <div class="mceWrapper">
12
+ <div class="mceTop">
13
+ <div class="mceLeft"></div>
14
+ <div class="mceCenter"></div>
15
+ <div class="mceRight"></div>
16
+ <span>Blured</span>
17
+ </div>
18
+
19
+ <div class="mceMiddle">
20
+ <div class="mceLeft"></div>
21
+ <span>Content</span>
22
+ <div class="mceRight"></div>
23
+ </div>
24
+
25
+ <div class="mceBottom">
26
+ <div class="mceLeft"></div>
27
+ <div class="mceCenter"></div>
28
+ <div class="mceRight"></div>
29
+ <span>Statusbar text.</span>
30
+ </div>
31
+
32
+ <a class="mceMove" href="#"></a>
33
+ <a class="mceMin" href="#"></a>
34
+ <a class="mceMax" href="#"></a>
35
+ <a class="mceMed" href="#"></a>
36
+ <a class="mceClose" href="#"></a>
37
+ <a class="mceResize mceResizeN" href="#"></a>
38
+ <a class="mceResize mceResizeS" href="#"></a>
39
+ <a class="mceResize mceResizeW" href="#"></a>
40
+ <a class="mceResize mceResizeE" href="#"></a>
41
+ <a class="mceResize mceResizeNW" href="#"></a>
42
+ <a class="mceResize mceResizeNE" href="#"></a>
43
+ <a class="mceResize mceResizeSW" href="#"></a>
44
+ <a class="mceResize mceResizeSE" href="#"></a>
45
+ </div>
46
+ </div>
47
+
48
+ <div class="clearlooks2" style="width:400px; height:100px; left:420px;">
49
+ <div class="mceWrapper mceMovable mceFocus">
50
+ <div class="mceTop">
51
+ <div class="mceLeft"></div>
52
+ <div class="mceCenter"></div>
53
+ <div class="mceRight"></div>
54
+ <span>Focused</span>
55
+ </div>
56
+
57
+ <div class="mceMiddle">
58
+ <div class="mceLeft"></div>
59
+ <span>Content</span>
60
+ <div class="mceRight"></div>
61
+ </div>
62
+
63
+ <div class="mceBottom">
64
+ <div class="mceLeft"></div>
65
+ <div class="mceCenter"></div>
66
+ <div class="mceRight"></div>
67
+ <span>Statusbar text.</span>
68
+ </div>
69
+
70
+ <a class="mceMove" href="#"></a>
71
+ <a class="mceMin" href="#"></a>
72
+ <a class="mceMax" href="#"></a>
73
+ <a class="mceMed" href="#"></a>
74
+ <a class="mceClose" href="#"></a>
75
+ <a class="mceResize mceResizeN" href="#"></a>
76
+ <a class="mceResize mceResizeS" href="#"></a>
77
+ <a class="mceResize mceResizeW" href="#"></a>
78
+ <a class="mceResize mceResizeE" href="#"></a>
79
+ <a class="mceResize mceResizeNW" href="#"></a>
80
+ <a class="mceResize mceResizeNE" href="#"></a>
81
+ <a class="mceResize mceResizeSW" href="#"></a>
82
+ <a class="mceResize mceResizeSE" href="#"></a>
83
+ </div>
84
+ </div>
85
+
86
+ <div class="clearlooks2" style="width:400px; height:100px; left:10px; top:120px;">
87
+ <div class="mceWrapper mceMovable mceFocus mceStatusbar">
88
+ <div class="mceTop">
89
+ <div class="mceLeft"></div>
90
+ <div class="mceCenter"></div>
91
+ <div class="mceRight"></div>
92
+ <span>Statusbar</span>
93
+ </div>
94
+
95
+ <div class="mceMiddle">
96
+ <div class="mceLeft"></div>
97
+ <span>Content</span>
98
+ <div class="mceRight"></div>
99
+ </div>
100
+
101
+ <div class="mceBottom">
102
+ <div class="mceLeft"></div>
103
+ <div class="mceCenter"></div>
104
+ <div class="mceRight"></div>
105
+ <span>Statusbar text.</span>
106
+ </div>
107
+
108
+ <a class="mceMove" href="#"></a>
109
+ <a class="mceMin" href="#"></a>
110
+ <a class="mceMax" href="#"></a>
111
+ <a class="mceMed" href="#"></a>
112
+ <a class="mceClose" href="#"></a>
113
+ <a class="mceResize mceResizeN" href="#"></a>
114
+ <a class="mceResize mceResizeS" href="#"></a>
115
+ <a class="mceResize mceResizeW" href="#"></a>
116
+ <a class="mceResize mceResizeE" href="#"></a>
117
+ <a class="mceResize mceResizeNW" href="#"></a>
118
+ <a class="mceResize mceResizeNE" href="#"></a>
119
+ <a class="mceResize mceResizeSW" href="#"></a>
120
+ <a class="mceResize mceResizeSE" href="#"></a>
121
+ </div>
122
+ </div>
123
+
124
+ <div class="clearlooks2" style="width:400px; height:100px; left:420px; top:120px;">
125
+ <div class="mceWrapper mceMovable mceFocus mceStatusbar mceResizable">
126
+ <div class="mceTop">
127
+ <div class="mceLeft"></div>
128
+ <div class="mceCenter"></div>
129
+ <div class="mceRight"></div>
130
+ <span>Statusbar, Resizable</span>
131
+ </div>
132
+
133
+ <div class="mceMiddle">
134
+ <div class="mceLeft"></div>
135
+ <span>Content</span>
136
+ <div class="mceRight"></div>
137
+ </div>
138
+
139
+ <div class="mceBottom">
140
+ <div class="mceLeft"></div>
141
+ <div class="mceCenter"></div>
142
+ <div class="mceRight"></div>
143
+ <span>Statusbar text.</span>
144
+ </div>
145
+
146
+ <a class="mceMove" href="#"></a>
147
+ <a class="mceMin" href="#"></a>
148
+ <a class="mceMax" href="#"></a>
149
+ <a class="mceMed" href="#"></a>
150
+ <a class="mceClose" href="#"></a>
151
+ <a class="mceResize mceResizeN" href="#"></a>
152
+ <a class="mceResize mceResizeS" href="#"></a>
153
+ <a class="mceResize mceResizeW" href="#"></a>
154
+ <a class="mceResize mceResizeE" href="#"></a>
155
+ <a class="mceResize mceResizeNW" href="#"></a>
156
+ <a class="mceResize mceResizeNE" href="#"></a>
157
+ <a class="mceResize mceResizeSW" href="#"></a>
158
+ <a class="mceResize mceResizeSE" href="#"></a>
159
+ </div>
160
+ </div>
161
+
162
+ <div class="clearlooks2" style="width:400px; height:100px; left:10px; top:230px;">
163
+ <div class="mceWrapper mceMovable mceFocus mceResizable mceMaximizable">
164
+ <div class="mceTop">
165
+ <div class="mceLeft"></div>
166
+ <div class="mceCenter"></div>
167
+ <div class="mceRight"></div>
168
+ <span>Resizable, Maximizable</span>
169
+ </div>
170
+
171
+ <div class="mceMiddle">
172
+ <div class="mceLeft"></div>
173
+ <span>Content</span>
174
+ <div class="mceRight"></div>
175
+ </div>
176
+
177
+ <div class="mceBottom">
178
+ <div class="mceLeft"></div>
179
+ <div class="mceCenter"></div>
180
+ <div class="mceRight"></div>
181
+ <span>Statusbar text.</span>
182
+ </div>
183
+
184
+ <a class="mceMove" href="#"></a>
185
+ <a class="mceMin" href="#"></a>
186
+ <a class="mceMax" href="#"></a>
187
+ <a class="mceMed" href="#"></a>
188
+ <a class="mceClose" href="#"></a>
189
+ <a class="mceResize mceResizeN" href="#"></a>
190
+ <a class="mceResize mceResizeS" href="#"></a>
191
+ <a class="mceResize mceResizeW" href="#"></a>
192
+ <a class="mceResize mceResizeE" href="#"></a>
193
+ <a class="mceResize mceResizeNW" href="#"></a>
194
+ <a class="mceResize mceResizeNE" href="#"></a>
195
+ <a class="mceResize mceResizeSW" href="#"></a>
196
+ <a class="mceResize mceResizeSE" href="#"></a>
197
+ </div>
198
+ </div>
199
+
200
+ <div class="clearlooks2" style="width:400px; height:100px; left:420px; top:230px;">
201
+ <div class="mceWrapper mceMovable mceStatusbar mceResizable mceMaximizable">
202
+ <div class="mceTop">
203
+ <div class="mceLeft"></div>
204
+ <div class="mceCenter"></div>
205
+ <div class="mceRight"></div>
206
+ <span>Blurred, Maximizable, Statusbar, Resizable</span>
207
+ </div>
208
+
209
+ <div class="mceMiddle">
210
+ <div class="mceLeft"></div>
211
+ <span>Content</span>
212
+ <div class="mceRight"></div>
213
+ </div>
214
+
215
+ <div class="mceBottom">
216
+ <div class="mceLeft"></div>
217
+ <div class="mceCenter"></div>
218
+ <div class="mceRight"></div>
219
+ <span>Statusbar text.</span>
220
+ </div>
221
+
222
+ <a class="mceMove" href="#"></a>
223
+ <a class="mceMin" href="#"></a>
224
+ <a class="mceMax" href="#"></a>
225
+ <a class="mceMed" href="#"></a>
226
+ <a class="mceClose" href="#"></a>
227
+ <a class="mceResize mceResizeN" href="#"></a>
228
+ <a class="mceResize mceResizeS" href="#"></a>
229
+ <a class="mceResize mceResizeW" href="#"></a>
230
+ <a class="mceResize mceResizeE" href="#"></a>
231
+ <a class="mceResize mceResizeNW" href="#"></a>
232
+ <a class="mceResize mceResizeNE" href="#"></a>
233
+ <a class="mceResize mceResizeSW" href="#"></a>
234
+ <a class="mceResize mceResizeSE" href="#"></a>
235
+ </div>
236
+ </div>
237
+
238
+ <div class="clearlooks2" style="width:400px; height:100px; left:10px; top:340px;">
239
+ <div class="mceWrapper mceMovable mceFocus mceResizable mceMaximized mceMinimizable mceMaximizable">
240
+ <div class="mceTop">
241
+ <div class="mceLeft"></div>
242
+ <div class="mceCenter"></div>
243
+ <div class="mceRight"></div>
244
+ <span>Maximized, Maximizable, Minimizable</span>
245
+ </div>
246
+
247
+ <div class="mceMiddle">
248
+ <div class="mceLeft"></div>
249
+ <span>Content</span>
250
+ <div class="mceRight"></div>
251
+ </div>
252
+
253
+ <div class="mceBottom">
254
+ <div class="mceLeft"></div>
255
+ <div class="mceCenter"></div>
256
+ <div class="mceRight"></div>
257
+ <span>Statusbar text.</span>
258
+ </div>
259
+
260
+ <a class="mceMove" href="#"></a>
261
+ <a class="mceMin" href="#"></a>
262
+ <a class="mceMax" href="#"></a>
263
+ <a class="mceMed" href="#"></a>
264
+ <a class="mceClose" href="#"></a>
265
+ <a class="mceResize mceResizeN" href="#"></a>
266
+ <a class="mceResize mceResizeS" href="#"></a>
267
+ <a class="mceResize mceResizeW" href="#"></a>
268
+ <a class="mceResize mceResizeE" href="#"></a>
269
+ <a class="mceResize mceResizeNW" href="#"></a>
270
+ <a class="mceResize mceResizeNE" href="#"></a>
271
+ <a class="mceResize mceResizeSW" href="#"></a>
272
+ <a class="mceResize mceResizeSE" href="#"></a>
273
+ </div>
274
+ </div>
275
+
276
+ <div class="clearlooks2" style="width:400px; height:100px; left:420px; top:340px;">
277
+ <div class="mceWrapper mceMovable mceStatusbar mceResizable mceMaximized mceMinimizable mceMaximizable">
278
+ <div class="mceTop">
279
+ <div class="mceLeft"></div>
280
+ <div class="mceCenter"></div>
281
+ <div class="mceRight"></div>
282
+ <span>Blured</span>
283
+ </div>
284
+
285
+ <div class="mceMiddle">
286
+ <div class="mceLeft"></div>
287
+ <span>Content</span>
288
+ <div class="mceRight"></div>
289
+ </div>
290
+
291
+ <div class="mceBottom">
292
+ <div class="mceLeft"></div>
293
+ <div class="mceCenter"></div>
294
+ <div class="mceRight"></div>
295
+ <span>Statusbar text.</span>
296
+ </div>
297
+
298
+ <a class="mceMove" href="#"></a>
299
+ <a class="mceMin" href="#"></a>
300
+ <a class="mceMax" href="#"></a>
301
+ <a class="mceMed" href="#"></a>
302
+ <a class="mceClose" href="#"></a>
303
+ <a class="mceResize mceResizeN" href="#"></a>
304
+ <a class="mceResize mceResizeS" href="#"></a>
305
+ <a class="mceResize mceResizeW" href="#"></a>
306
+ <a class="mceResize mceResizeE" href="#"></a>
307
+ <a class="mceResize mceResizeNW" href="#"></a>
308
+ <a class="mceResize mceResizeNE" href="#"></a>
309
+ <a class="mceResize mceResizeSW" href="#"></a>
310
+ <a class="mceResize mceResizeSE" href="#"></a>
311
+ </div>
312
+ </div>
313
+
314
+ <div class="clearlooks2" style="width:400px; height:130px; left:10px; top:450px;">
315
+ <div class="mceWrapper mceMovable mceFocus mceModal mceAlert">
316
+ <div class="mceTop">
317
+ <div class="mceLeft"></div>
318
+ <div class="mceCenter"></div>
319
+ <div class="mceRight"></div>
320
+ <span>Alert</span>
321
+ </div>
322
+
323
+ <div class="mceMiddle">
324
+ <div class="mceLeft"></div>
325
+ <span>
326
+ This is a very long error message. This is a very long error message.
327
+ This is a very long error message. This is a very long error message.
328
+ This is a very long error message. This is a very long error message.
329
+ This is a very long error message. This is a very long error message.
330
+ This is a very long error message. This is a very long error message.
331
+ This is a very long error message. This is a very long error message.
332
+ </span>
333
+ <div class="mceRight"></div>
334
+ <div class="mceIcon"></div>
335
+ </div>
336
+
337
+ <div class="mceBottom">
338
+ <div class="mceLeft"></div>
339
+ <div class="mceCenter"></div>
340
+ <div class="mceRight"></div>
341
+ </div>
342
+
343
+ <a class="mceMove" href="#"></a>
344
+ <a class="mceButton mceOk" href="#">Ok</a>
345
+ <a class="mceClose" href="#"></a>
346
+ </div>
347
+ </div>
348
+
349
+ <div class="clearlooks2" style="width:400px; height:130px; left:420px; top:450px;">
350
+ <div class="mceWrapper mceMovable mceFocus mceModal mceConfirm">
351
+ <div class="mceTop">
352
+ <div class="mceLeft"></div>
353
+ <div class="mceCenter"></div>
354
+ <div class="mceRight"></div>
355
+ <span>Confirm</span>
356
+ </div>
357
+
358
+ <div class="mceMiddle">
359
+ <div class="mceLeft"></div>
360
+ <span>
361
+ This is a very long error message. This is a very long error message.
362
+ This is a very long error message. This is a very long error message.
363
+ This is a very long error message. This is a very long error message.
364
+ This is a very long error message. This is a very long error message.
365
+ This is a very long error message. This is a very long error message.
366
+ This is a very long error message. This is a very long error message.
367
+ </span>
368
+ <div class="mceRight"></div>
369
+ <div class="mceIcon"></div>
370
+ </div>
371
+
372
+ <div class="mceBottom">
373
+ <div class="mceLeft"></div>
374
+ <div class="mceCenter"></div>
375
+ <div class="mceRight"></div>
376
+ </div>
377
+
378
+ <a class="mceMove" href="#"></a>
379
+ <a class="mceButton mceOk" href="#">Ok</a>
380
+ <a class="mceButton mceCancel" href="#">Cancel</a>
381
+ <a class="mceClose" href="#"></a>
382
+ </div>
383
+ </div>
384
+ </div>
385
+
386
+ </body>
387
+ </html>
@@ -0,0 +1 @@
1
+ (function(){var b=tinymce.each;tinymce.create("tinymce.plugins.PastePlugin",{init:function(l,k){var j=this,a;j.editor=l;j.url=k;j.onPreProcess=new tinymce.util.Dispatcher(j);j.onPostProcess=new tinymce.util.Dispatcher(j);j.onPreProcess.add(j._preProcess);j.onPostProcess.add(j._postProcess);j.onPreProcess.add(function(d,c){l.execCallback("paste_preprocess",d,c)});j.onPostProcess.add(function(d,c){l.execCallback("paste_postprocess",d,c)});function h(c){var d=l.dom;j.onPreProcess.dispatch(j,c);c.node=d.create("div",0,c.content);j.onPostProcess.dispatch(j,c);c.content=l.serializer.serialize(c.node,{getInner:1});if(/<(p|h[1-6]|ul|ol)/.test(c.content)){j._insertBlockContent(l,d,c.content)}else{j._insert(c.content)}}l.addCommand("mceInsertClipboardContent",function(d,c){h(c)});function i(d){var q,e,g,f=l.selection,r=l.dom,n=l.getBody(),c;if(r.get("_mcePaste")){return}q=r.add(n,"div",{id:"_mcePaste"},"\uFEFF");if(n!=l.getDoc().body){c=r.getPos(l.selection.getStart(),n).y}else{c=n.scrollTop}r.setStyles(q,{position:"absolute",left:-10000,top:c,width:1,height:1,overflow:"hidden"});if(tinymce.isIE){g=r.doc.body.createTextRange();g.moveToElementText(q);g.execCommand("Paste");r.remove(q);if(q.innerHTML==="\uFEFF"){l.execCommand("mcePasteWord");d.preventDefault();return}h({content:q.innerHTML});return tinymce.dom.Event.cancel(d)}else{e=l.selection.getRng();q=q.firstChild;g=l.getDoc().createRange();g.setStart(q,0);g.setEnd(q,1);f.setRng(g);window.setTimeout(function(){var m="",o=r.select("div[id=_mcePaste]");b(o,function(p){m+=(r.select("> span.Apple-style-span div",p)[0]||r.select("> span.Apple-style-span",p)[0]||p).innerHTML});b(o,function(p){r.remove(p)});if(e){f.setRng(e)}h({content:m})},0)}}if(l.getParam("paste_auto_cleanup_on_paste",true)){if(tinymce.isOpera||/Firefox\/2/.test(navigator.userAgent)){l.onKeyDown.add(function(d,c){if(((tinymce.isMac?c.metaKey:c.ctrlKey)&&c.keyCode==86)||(c.shiftKey&&c.keyCode==45)){i(c)}})}else{l.onPaste.addToTop(function(d,c){return i(c)})}}if(l.getParam("paste_block_drop")){l.onInit.add(function(){l.dom.bind(l.getBody(),["dragend","dragover","draggesture","dragdrop","drop","drag"],function(c){c.preventDefault();c.stopPropagation();return false})})}j._legacySupport()},getInfo:function(){return{longname:"Paste text/word",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_preProcess:function(m,h){var a=this.editor,n=h.content,j,k;function j(c){b(c,function(d){if(d.constructor==RegExp){n=n.replace(d,"")}else{n=n.replace(d[0],d[1])}})}if(/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(n)||h.wordContent){h.wordContent=true;j([/^\s*(&nbsp;)+/g,/(&nbsp;|<br[^>]*>)+\s*$/g]);if(a.getParam("paste_convert_middot_lists",true)){j([[/<!--\[if !supportLists\]-->/gi,"$&__MCE_ITEM__"],[/(<span[^>]+:\s*symbol[^>]+>)/gi,"$1__MCE_ITEM__"],[/(<span[^>]+mso-list:[^>]+>)/gi,"$1__MCE_ITEM__"]])}j([/<!--[\s\S]+?-->/gi,/<\/?(img|font|meta|link|style|div|v:\w+)[^>]*>/gi,/<\\?\?xml[^>]*>/gi,/<\/?o:[^>]*>/gi,/ (id|name|language|type|on\w+|v:\w+)=\"([^\"]*)\"/gi,/ (id|name|language|type|on\w+|v:\w+)=(\w+)/gi,[/<(\/?)s>/gi,"<$1strike>"],/<script[^>]+>[\s\S]*?<\/script>/gi,[/&nbsp;/g,"\u00a0"]]);if(!a.getParam("paste_retain_style_properties")){j([/<\/?(span)[^>]*>/gi])}}k=a.getParam("paste_strip_class_attributes");if(k!="none"){function l(c,f){var d,e="";if(k=="all"){return""}f=tinymce.explode(f," ");for(d=f.length-1;d>=0;d--){if(!/^(Mso)/i.test(f[d])){e+=(!e?"":" ")+f[d]}}return' class="'+e+'"'}j([[/ class=\"([^\"]*)\"/gi,l],[/ class=(\w+)/gi,l]])}if(a.getParam("paste_remove_spans")){j([/<\/?(span)[^>]*>/gi])}h.content=n},_postProcess:function(j,h){var k=this,l=k.editor,i=l.dom,a;if(h.wordContent){b(i.select("a",h.node),function(c){if(!c.href||c.href.indexOf("#_Toc")!=-1){i.remove(c,1)}});if(k.editor.getParam("paste_convert_middot_lists",true)){k._convertLists(j,h)}a=l.getParam("paste_retain_style_properties");if(tinymce.is(a,"string")){a=tinymce.explode(a)}b(i.select("*",h.node),function(d){var c={},f=0,e,o,g;if(a){for(e=0;e<a.length;e++){o=a[e];g=i.getStyle(d,o);if(g){c[o]=g;f++}}}i.setAttrib(d,"style","");if(a&&f>0){i.setStyles(d,c)}else{if(d.nodeName=="SPAN"&&!d.className){i.remove(d,true)}}})}if(l.getParam("paste_remove_styles")||(l.getParam("paste_remove_styles_if_webkit")&&tinymce.isWebKit)){b(i.select("*[style]",h.node),function(c){c.removeAttribute("style");c.removeAttribute("mce_style")})}else{if(tinymce.isWebKit){b(i.select("*",h.node),function(c){c.removeAttribute("mce_style")})}}},_convertLists:function(q,s){var o=q.editor.dom,p,l,t=-1,r,a=[],m,n;b(o.select("p",s.node),function(f){var i,e="",g,h,d,c;for(i=f.firstChild;i&&i.nodeType==3;i=i.nextSibling){e+=i.nodeValue}e=f.innerHTML.replace(/<\/?\w+[^>]*>/gi,"").replace(/&nbsp;/g,"\u00a0");if(/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o]\s*\u00a0*/.test(e)){g="ul"}if(/^__MCE_ITEM__\s*\w+\.\s*\u00a0{2,}/.test(e)){g="ol"}if(g){r=parseFloat(f.style.marginLeft||0);if(r>t){a.push(r)}if(!p||g!=m){p=o.create(g);o.insertAfter(p,f)}else{if(r>t){p=l.appendChild(o.create(g))}else{if(r<t){d=tinymce.inArray(a,r);c=o.getParents(p.parentNode,g);p=c[c.length-1-d]||p}}}b(o.select("span",f),function(j){var k=j.innerHTML.replace(/<\/?\w+[^>]*>/gi,"");if(g=="ul"&&/^[\u2022\u00b7\u00a7\u00d8o]/.test(k)){o.remove(j)}else{if(/^[\s\S]*\w+\.(&nbsp;|\u00a0)*\s*/.test(k)){o.remove(j)}}});h=f.innerHTML;if(g=="ul"){h=f.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^[\u2022\u00b7\u00a7\u00d8o]\s*(&nbsp;|\u00a0)+\s*/,"")}else{h=f.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^\s*\w+\.(&nbsp;|\u00a0)+\s*/,"")}l=p.appendChild(o.create("li",0,h));o.remove(f);t=r;m=g}else{p=t=0}});n=s.node.innerHTML;if(n.indexOf("__MCE_ITEM__")!=-1){s.node.innerHTML=n.replace(/__MCE_ITEM__/g,"")}},_insertBlockContent:function(r,u,q){var w,s,v=r.selection,a,p,x,o,t;function n(c){var d;if(tinymce.isIE){d=r.getDoc().body.createTextRange();d.moveToElementText(c);d.collapse(false);d.select()}else{v.select(c,1);v.collapse(false)}}this._insert('<span id="_marker">&nbsp;</span>',1);s=u.get("_marker");w=u.getParent(s,"p,h1,h2,h3,h4,h5,h6,ul,ol,th,td");if(w&&!/TD|TH/.test(w.nodeName)){s=u.split(w,s);b(u.create("div",0,q).childNodes,function(c){a=s.parentNode.insertBefore(c.cloneNode(true),s)});n(a)}else{u.setOuterHTML(s,q);v.select(r.getBody(),1);v.collapse(0)}u.remove("_marker");p=v.getStart();x=u.getViewPort(r.getWin());o=r.dom.getPos(p).y;t=p.clientHeight;if(o<x.y||o+t>x.y+x.h){r.getDoc().body.scrollTop=o<x.y?o:o-x.h+25}},_insert:function(e,a){var f=this.editor;if(!f.selection.isCollapsed()){f.getDoc().execCommand("Delete",false,null)}f.execCommand(tinymce.isGecko?"insertHTML":"mceInsertContent",false,e,{skip_undo:a})},_legacySupport:function(){var d=this,a=d.editor;b(["mcePasteText","mcePasteWord"],function(c){a.addCommand(c,function(){a.windowManager.open({file:d.url+(c=="mcePasteText"?"/pastetext.htm":"/pasteword.htm"),width:parseInt(a.getParam("paste_dialog_width","450")),height:parseInt(a.getParam("paste_dialog_height","400")),inline:1})})});a.addButton("pastetext",{title:"paste.paste_text_desc",cmd:"mcePasteText"});a.addButton("pasteword",{title:"paste.paste_word_desc",cmd:"mcePasteWord"});a.addButton("selectall",{title:"paste.selectall_desc",cmd:"selectall"})}});tinymce.PluginManager.add("paste",tinymce.plugins.PastePlugin)})();
@@ -0,0 +1 @@
1
+ tinyMCEPopup.requireLangPack();var PasteTextDialog={init:function(){this.resize()},insert:function(){var b=tinyMCEPopup.dom.encode(document.getElementById("content").value),a;if(document.getElementById("linebreaks").checked){a=b.split(/\r?\n/);if(a.length>1){b="";tinymce.each(a,function(c){b+="<p>"+c+"</p>"})}}tinyMCEPopup.editor.execCommand("mceInsertClipboardContent",false,{content:b});tinyMCEPopup.close()},resize:function(){var a=tinyMCEPopup.dom.getViewPort(window),b;b=document.getElementById("content");b.style.width=(a.w-20)+"px";b.style.height=(a.h-90)+"px"}};tinyMCEPopup.onInit.add(PasteTextDialog.init,PasteTextDialog);
@@ -0,0 +1 @@
1
+ tinyMCEPopup.requireLangPack();var PasteWordDialog={init:function(){var a=tinyMCEPopup.editor,c=document.getElementById("iframecontainer"),f,e,b,d="";c.innerHTML='<iframe id="iframe" src="javascript:\'\';" frameBorder="0" style="border: 1px solid gray"></iframe>';f=document.getElementById("iframe");e=f.contentWindow.document;b=[a.baseURI.toAbsolute("themes/"+a.settings.theme+"/skins/"+a.settings.skin+"/content.css")];b=b.concat(tinymce.explode(a.settings.content_css)||[]);tinymce.each(b,function(g){d+='<link href="'+a.documentBaseURI.toAbsolute(""+g)+'" rel="stylesheet" type="text/css" />'});e.open();e.write("<html><head>"+d+'</head><body class="mceContentBody" spellcheck="false"></body></html>');e.close();e.designMode="on";this.resize();window.setTimeout(function(){f.contentWindow.focus()},10)},insert:function(){var a=document.getElementById("iframe").contentWindow.document.body.innerHTML;tinyMCEPopup.editor.execCommand("mceInsertClipboardContent",false,{content:a,wordContent:true});tinyMCEPopup.close()},resize:function(){var a=tinyMCEPopup.dom.getViewPort(window),b;b=document.getElementById("iframe");if(b){b.style.width=(a.w-20)+"px";b.style.height=(a.h-90)+"px"}}};tinyMCEPopup.onInit.add(PasteWordDialog.init,PasteWordDialog);
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n("en.paste_dlg",{text_title:"Use CTRL+V on your keyboard to paste the text into the window.",text_linebreaks:"Keep linebreaks",word_title:"Use CTRL+V on your keyboard to paste the text into the window."});
@@ -0,0 +1,33 @@
1
+ <html xmlns="http://www.w3.org/1999/xhtml">
2
+ <head>
3
+ <title>{#paste.paste_text_desc}</title>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="js/pastetext.js"></script>
7
+ </head>
8
+ <body onresize="PasteTextDialog.resize();" style="display:none; overflow:hidden;">
9
+ <form name="source" onsubmit="return PasteTextDialog.insert();" action="#">
10
+ <div style="float: left" class="title">{#paste.paste_text_desc}</div>
11
+
12
+ <div style="float: right">
13
+ <input type="checkbox" name="linebreaks" id="linebreaks" class="wordWrapCode" checked="checked" /><label for="linebreaks">{#paste_dlg.text_linebreaks}</label>
14
+ </div>
15
+
16
+ <br style="clear: both" />
17
+
18
+ <div>{#paste_dlg.text_title}</div>
19
+
20
+ <textarea id="content" name="content" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft" class="mceFocus"></textarea>
21
+
22
+ <div class="mceActionPanel">
23
+ <div style="float: left">
24
+ <input type="submit" name="insert" value="{#insert}" id="insert" />
25
+ </div>
26
+
27
+ <div style="float: right">
28
+ <input type="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
29
+ </div>
30
+ </div>
31
+ </form>
32
+ </body>
33
+ </html>
@@ -0,0 +1,27 @@
1
+ <html xmlns="http://www.w3.org/1999/xhtml">
2
+ <head>
3
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
4
+ <title>{#paste.paste_word_desc}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="js/pasteword.js"></script>
7
+ </head>
8
+ <body onresize="PasteWordDialog.resize();" style="display:none; overflow:hidden;">
9
+ <form name="source" onsubmit="return PasteWordDialog.insert();" action="#">
10
+ <div class="title">{#paste.paste_word_desc}</div>
11
+
12
+ <div>{#paste_dlg.word_title}</div>
13
+
14
+ <div id="iframecontainer"></div>
15
+
16
+ <div class="mceActionPanel">
17
+ <div style="float: left">
18
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
19
+ </div>
20
+
21
+ <div style="float: right">
22
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
23
+ </div>
24
+ </div>
25
+ </form>
26
+ </body>
27
+ </html>
@@ -0,0 +1 @@
1
+ (function(){var g=tinymce.dom.Event,j=tinymce.grep,i=tinymce.each,f=tinymce.inArray;function h(b,c,d){var e,a;e=b.createTreeWalker(c,NodeFilter.SHOW_ALL,null,false);while(a=e.nextNode()){if(d){if(!d(a)){return false}}if(a.nodeType==3&&a.nodeValue&&/[^\s\u00a0]+/.test(a.nodeValue)){return false}if(a.nodeType==1&&/^(HR|IMG|TABLE)$/.test(a.nodeName)){return false}}return true}tinymce.create("tinymce.plugins.Safari",{init:function(c){var b=this,a;if(!tinymce.isWebKit){return}b.editor=c;b.webKitFontSizes=["x-small","small","medium","large","x-large","xx-large","-webkit-xxx-large"];b.namedFontSizes=["xx-small","x-small","small","medium","large","x-large","xx-large"];c.addCommand("CreateLink",function(n,o){var d=c.selection.getNode(),e=c.dom,p;if(d&&(/^(left|right)$/i.test(e.getStyle(d,"float",1))||/^(left|right)$/i.test(e.getAttrib(d,"align")))){p=e.create("a",{href:o},d.cloneNode());d.parentNode.replaceChild(p,d);c.selection.select(p)}else{c.getDoc().execCommand("CreateLink",false,o)}});c.onKeyUp.add(function(q,t){var e,r,d,s,n;if(t.keyCode==46||t.keyCode==8){r=q.getBody();e=r.innerHTML;n=q.selection;if(r.childNodes.length==1&&!/<(img|hr)/.test(e)&&tinymce.trim(e.replace(/<[^>]+>/g,"")).length==0){q.setContent('<p><br mce_bogus="1" /></p>',{format:"raw"});s=r.firstChild;d=n.getRng();d.setStart(s,0);d.setEnd(s,0);n.setRng(d)}}});c.addCommand("FormatBlock",function(m,n){var d=c.dom,e=d.getParent(c.selection.getNode(),d.isBlock);if(e){d.replace(d.create(n),e,1)}else{c.getDoc().execCommand("FormatBlock",false,n)}});c.addCommand("mceInsertContent",function(d,e){c.getDoc().execCommand("InsertText",false,"mce_marker");c.getBody().innerHTML=c.getBody().innerHTML.replace(/mce_marker/g,c.dom.processHTML(e)+'<span id="_mce_tmp">XX</span>');c.selection.select(c.dom.get("_mce_tmp"));c.getDoc().execCommand("Delete",false," ")});c.onKeyPress.add(function(w,n){var e,C,d,y,A,z,B,D,x,E,F;if(n.keyCode==13){B=w.selection;e=B.getNode();if(n.shiftKey||w.settings.force_br_newlines&&e.nodeName!="LI"){b._insertBR(w);g.cancel(n)}if(C=a.getParent(e,"LI")){d=a.getParent(C,"OL,UL");D=w.getDoc();F=a.create("p");a.add(F,"br",{mce_bogus:"1"});if(h(D,C)){if(z=a.getParent(d.parentNode,"LI,OL,UL")){return}z=a.getParent(d,"p,h1,h2,h3,h4,h5,h6,div")||d;y=D.createRange();y.setStartBefore(z);y.setEndBefore(C);A=D.createRange();A.setStartAfter(C);A.setEndAfter(z);x=y.cloneContents();E=A.cloneContents();if(!h(D,E)){a.insertAfter(E,z)}a.insertAfter(F,z);if(!h(D,x)){a.insertAfter(x,z)}a.remove(z);z=F.firstChild;y=D.createRange();y.setStartBefore(z);y.setEndBefore(z);B.setRng(y);return g.cancel(n)}}}});c.onExecCommand.add(function(q,o){var p,d,r,e;if(o=="InsertUnorderedList"||o=="InsertOrderedList"){p=q.selection;d=q.dom;if(r=d.getParent(p.getNode(),function(k){return/^(H[1-6]|P|ADDRESS|PRE)$/.test(k.nodeName)})){e=p.getBookmark();d.remove(r,1);p.moveToBookmark(e)}}});c.onClick.add(function(e,d){d=d.target;if(d.nodeName=="IMG"){b.selElm=d;e.selection.select(d)}else{b.selElm=null}});c.onInit.add(function(){b._fixWebKitSpans()});c.onSetContent.add(function(){a=c.dom;i(["strong","b","em","u","strike","sub","sup","a"],function(d){i(j(a.select(d)).reverse(),function(e){var m=e.nodeName.toLowerCase(),n;if(m=="a"){if(e.name){a.replace(a.create("img",{mce_name:"a",name:e.name,"class":"mceItemAnchor"}),e)}return}switch(m){case"b":case"strong":if(m=="b"){m="strong"}n="font-weight: bold;";break;case"em":n="font-style: italic;";break;case"u":n="text-decoration: underline;";break;case"sub":n="vertical-align: sub;";break;case"sup":n="vertical-align: super;";break;case"strike":n="text-decoration: line-through;";break}a.replace(a.create("span",{mce_name:m,style:n,"class":"Apple-style-span"}),e,1)})})});c.onPreProcess.add(function(e,d){a=e.dom;i(j(d.node.getElementsByTagName("span")).reverse(),function(n){var p,o;if(d.get){if(a.hasClass(n,"Apple-style-span")){o=n.style.backgroundColor;switch(a.getAttrib(n,"mce_name")){case"font":if(!e.settings.convert_fonts_to_spans){a.setAttrib(n,"style","")}break;case"strong":case"em":case"sub":case"sup":a.setAttrib(n,"style","");break;case"strike":case"u":if(!e.settings.inline_styles){a.setAttrib(n,"style","")}else{a.setAttrib(n,"mce_name","")}break;default:if(!e.settings.inline_styles){a.setAttrib(n,"style","")}}if(o){n.style.backgroundColor=o}}}if(a.hasClass(n,"mceItemRemoved")){a.remove(n,1)}})});c.onPostProcess.add(function(e,d){d.content=d.content.replace(/<br \/><\/(h[1-6]|div|p|address|pre)>/g,"</$1>");d.content=d.content.replace(/ id=\"undefined\"/g,"")})},getInfo:function(){return{longname:"Safari compatibility",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/safari",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_fixWebKitSpans:function(){var a=this,b=a.editor;g.add(b.getDoc(),"DOMNodeInserted",function(c){c=c.target;if(c&&c.nodeType==1){a._fixAppleSpan(c)}})},_fixAppleSpan:function(b){var o=this.editor,a=o.dom,e=this.webKitFontSizes,p=this.namedFontSizes,d=o.settings,n,c;if(a.getAttrib(b,"mce_fixed")){return}if(b.nodeName=="SPAN"&&b.className=="Apple-style-span"){n=b.style;if(!d.convert_fonts_to_spans){if(n.fontSize){a.setAttrib(b,"mce_name","font");a.setAttrib(b,"size",f(e,n.fontSize)+1)}if(n.fontFamily){a.setAttrib(b,"mce_name","font");a.setAttrib(b,"face",n.fontFamily)}if(n.color){a.setAttrib(b,"mce_name","font");a.setAttrib(b,"color",a.toHex(n.color))}if(n.backgroundColor){a.setAttrib(b,"mce_name","font");a.setStyle(b,"background-color",n.backgroundColor)}}else{if(n.fontSize){a.setStyle(b,"fontSize",p[f(e,n.fontSize)])}}if(n.fontWeight=="bold"){a.setAttrib(b,"mce_name","strong")}if(n.fontStyle=="italic"){a.setAttrib(b,"mce_name","em")}if(n.textDecoration=="underline"){a.setAttrib(b,"mce_name","u")}if(n.textDecoration=="line-through"){a.setAttrib(b,"mce_name","strike")}if(n.verticalAlign=="super"){a.setAttrib(b,"mce_name","sup")}if(n.verticalAlign=="sub"){a.setAttrib(b,"mce_name","sub")}a.setAttrib(b,"mce_fixed","1")}},_insertBR:function(e){var a=e.dom,c=e.selection,b=c.getRng(),d;b.insertNode(d=a.create("br"));b.setStartAfter(d);b.setEndAfter(d);c.setRng(b);if(c.getSel().focusNode==d.previousSibling){c.select(a.insertAfter(a.doc.createTextNode("\u00a0"),d));c.collapse(1)}e.getWin().scrollTo(0,a.getPos(c.getRng().startContainer).y)}});tinymce.PluginManager.add("safari",tinymce.plugins.Safari)})();
@@ -0,0 +1,12 @@
1
+ <html xmlns="http://www.w3.org/1999/xhtml">
2
+ <head>
3
+ <title>blank_page</title>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5
+ <script type="text/javascript">
6
+ parent.TemplateDialog.loadCSSFiles(document);
7
+ </script>
8
+ </head>
9
+ <body id="mceTemplatePreview" class="mceContentBody">
10
+
11
+ </body>
12
+ </html>
@@ -0,0 +1 @@
1
+ #frmbody{padding:10px;background-color:#FFF;border:1px solid #CCC;}.frmRow{margin-bottom:10px;}#templatesrc{border:none;width:320px;height:240px;}.title{padding-bottom:5px;}.mceActionPanel{padding-top:5px;}
@@ -0,0 +1 @@
1
+ (function(){var b=tinymce.each;tinymce.create("tinymce.plugins.TemplatePlugin",{init:function(a,f){var e=this;e.editor=a;a.addCommand("mceTemplate",function(c){a.windowManager.open({file:f+"/template.htm",width:a.getParam("template_popup_width",750),height:a.getParam("template_popup_height",600),inline:1},{plugin_url:f})});a.addCommand("mceInsertTemplate",e._insertTemplate,e);a.addButton("template",{title:"template.desc",cmd:"mceTemplate"});a.onPreProcess.add(function(h,c){var d=h.dom;b(d.select("div",c.node),function(g){if(d.hasClass(g,"mceTmpl")){b(d.select("*",g),function(j){if(d.hasClass(j,h.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))){j.innerHTML=e._getDateTime(new Date(),h.getParam("template_mdate_format",h.getLang("template.mdate_format")))}});e._replaceVals(g)}})})},getInfo:function(){return{longname:"Template plugin",author:"Moxiecode Systems AB",authorurl:"http://www.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/template",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_insertTemplate:function(l,h){var a=this,m=a.editor,o,r,q=m.dom,s=m.selection.getContent();o=h.content;b(a.editor.getParam("template_replace_values"),function(c,d){if(typeof(c)!="function"){o=o.replace(new RegExp("\\{\\$"+d+"\\}","g"),c)}});r=q.create("div",null,o);n=q.select(".mceTmpl",r);if(n&&n.length>0){r=q.create("div",null);r.appendChild(n[0].cloneNode(true))}function p(c,d){return new RegExp("\\b"+d+"\\b","g").test(c.className)}b(q.select("*",r),function(c){if(p(c,m.getParam("template_cdate_classes","cdate").replace(/\s+/g,"|"))){c.innerHTML=a._getDateTime(new Date(),m.getParam("template_cdate_format",m.getLang("template.cdate_format")))}if(p(c,m.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))){c.innerHTML=a._getDateTime(new Date(),m.getParam("template_mdate_format",m.getLang("template.mdate_format")))}if(p(c,m.getParam("template_selected_content_classes","selcontent").replace(/\s+/g,"|"))){c.innerHTML=s}});a._replaceVals(r);m.execCommand("mceInsertContent",false,r.innerHTML);m.addVisual()},_replaceVals:function(f){var e=this.editor.dom,a=this.editor.getParam("template_replace_values");b(e.select("*",f),function(c){b(a,function(d,h){if(e.hasClass(c,h)){if(typeof(a[h])=="function"){a[h](c)}}})})},_getDateTime:function(d,a){if(!a){return""}function f(c,h){var e;c=""+c;if(c.length<h){for(e=0;e<(h-c.length);e++){c="0"+c}}return c}a=a.replace("%D","%m/%d/%y");a=a.replace("%r","%I:%M:%S %p");a=a.replace("%Y",""+d.getFullYear());a=a.replace("%y",""+d.getYear());a=a.replace("%m",f(d.getMonth()+1,2));a=a.replace("%d",f(d.getDate(),2));a=a.replace("%H",""+f(d.getHours(),2));a=a.replace("%M",""+f(d.getMinutes(),2));a=a.replace("%S",""+f(d.getSeconds(),2));a=a.replace("%I",""+((d.getHours()+11)%12+1));a=a.replace("%p",""+(d.getHours()<12?"AM":"PM"));a=a.replace("%B",""+this.editor.getLang("template_months_long").split(",")[d.getMonth()]);a=a.replace("%b",""+this.editor.getLang("template_months_short").split(",")[d.getMonth()]);a=a.replace("%A",""+this.editor.getLang("template_day_long").split(",")[d.getDay()]);a=a.replace("%a",""+this.editor.getLang("template_day_short").split(",")[d.getDay()]);a=a.replace("%%","%");return a}});tinymce.PluginManager.add("template",tinymce.plugins.TemplatePlugin)})();
@@ -0,0 +1 @@
1
+ tinyMCEPopup.requireLangPack();var TemplateDialog={preInit:function(){var a=tinyMCEPopup.getParam("template_external_list_url");if(a!=null){document.write('<script language="javascript" type="text/javascript" src="'+tinyMCEPopup.editor.documentBaseURI.toAbsolute(a)+'"><\/script>')}},init:function(){var c=tinyMCEPopup.editor,b,e,a,d;b=c.getParam("template_templates",false);e=document.getElementById("tpath");if(!b&&typeof(tinyMCETemplateList)!="undefined"){for(a=0,b=[];a<tinyMCETemplateList.length;a++){b.push({title:tinyMCETemplateList[a][0],src:tinyMCETemplateList[a][1],description:tinyMCETemplateList[a][2]})}}for(a=0;a<b.length;a++){e.options[e.options.length]=new Option(b[a].title,tinyMCEPopup.editor.documentBaseURI.toAbsolute(b[a].src))}this.resize();this.tsrc=b},resize:function(){var a,b,c;if(!self.innerWidth){a=document.body.clientWidth-50;b=document.body.clientHeight-160}else{a=self.innerWidth-50;b=self.innerHeight-170}c=document.getElementById("templatesrc");if(c){c.style.height=Math.abs(b)+"px";c.style.width=Math.abs(a-5)+"px"}},loadCSSFiles:function(b){var a=tinyMCEPopup.editor;tinymce.each(a.getParam("content_css","").split(","),function(c){b.write('<link href="'+a.documentBaseURI.toAbsolute(c)+'" rel="stylesheet" type="text/css" />')})},selectTemplate:function(c,e){var f=window.frames.templatesrc.document,a,b=this.tsrc;if(!c){return}f.body.innerHTML=this.templateHTML=this.getFileContents(c);for(a=0;a<b.length;a++){if(b[a].title==e){document.getElementById("tmpldesc").innerHTML=b[a].description||""}}},insert:function(){tinyMCEPopup.execCommand("mceInsertTemplate",false,{content:this.templateHTML,selection:tinyMCEPopup.editor.selection.getContent()});tinyMCEPopup.close()},getFileContents:function(b){var a,f,c="text/plain";function e(d){a=0;try{a=new ActiveXObject(d)}catch(d){}return a}a=window.ActiveXObject?e("Msxml2.XMLHTTP")||e("Microsoft.XMLHTTP"):new XMLHttpRequest();a.overrideMimeType&&a.overrideMimeType(c);a.open("GET",b,false);a.send(null);return a.responseText}};TemplateDialog.preInit();tinyMCEPopup.onInit.add(TemplateDialog.init,TemplateDialog);
@@ -0,0 +1 @@
1
+ tinyMCE.addI18n("en.template_dlg",{title:"Templates",label:"Template",desc_label:"Description",desc:"Insert predefined template content",select:"Select a template",preview:"Preview",warning:"Warning: Updating a template with a different one may cause data loss.",mdate_format:"%Y-%m-%d %H:%M:%S",cdate_format:"%Y-%m-%d %H:%M:%S",months_long:"January,February,March,April,May,June,July,August,September,October,November,December",months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"});
@@ -0,0 +1,38 @@
1
+ <html xmlns="http://www.w3.org/1999/xhtml">
2
+ <head>
3
+ <title>{#template_dlg.title}</title>
4
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
5
+ <script type="text/javascript" src="js/template.js"></script>
6
+ <link href="css/template.css" rel="stylesheet" type="text/css" />
7
+ </head>
8
+ <body onresize="TemplateDialog.resize();">
9
+ <form onsubmit="TemplateDialog.insert();return false;">
10
+ <div id="frmbody">
11
+ <div class="title">{#template_dlg.desc}</div>
12
+ <div class="frmRow"><label for="tpath" title="{#template_dlg.select}">{#template_dlg.label}:</label>
13
+ <select id="tpath" name="tpath" onchange="TemplateDialog.selectTemplate(this.options[this.selectedIndex].value, this.options[this.selectedIndex].text);" class="mceFocus">
14
+ <option value="">{#template_dlg.select}...</option>
15
+ </select>
16
+ <span id="warning"></span></div>
17
+ <div class="frmRow"><label for="tdesc">{#template_dlg.desc_label}:</label>
18
+ <span id="tmpldesc"></span></div>
19
+ <fieldset>
20
+ <legend>{#template_dlg.preview}</legend>
21
+ <iframe id="templatesrc" name="templatesrc" src="blank.htm" width="690" height="400" frameborder="0"></iframe>
22
+ </fieldset>
23
+ </div>
24
+
25
+ <div class="mceActionPanel">
26
+ <div style="float: left">
27
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
28
+ </div>
29
+
30
+ <div style="float: right">
31
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
32
+ </div>
33
+
34
+ <br style="clear:both" />
35
+ </div>
36
+ </form>
37
+ </body>
38
+ </html>
@@ -0,0 +1,31 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>{#advanced_dlg.anchor_title}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="js/anchor.js"></script>
7
+ </head>
8
+ <body style="display: none">
9
+ <form onsubmit="AnchorDialog.update();return false;" action="#">
10
+ <table border="0" cellpadding="4" cellspacing="0">
11
+ <tr>
12
+ <td colspan="2" class="title">{#advanced_dlg.anchor_title}</td>
13
+ </tr>
14
+ <tr>
15
+ <td class="nowrap">{#advanced_dlg.anchor_name}:</td>
16
+ <td><input name="anchorName" type="text" class="mceFocus" id="anchorName" value="" style="width: 200px" /></td>
17
+ </tr>
18
+ </table>
19
+
20
+ <div class="mceActionPanel">
21
+ <div style="float: left">
22
+ <input type="submit" id="insert" name="insert" value="{#update}" />
23
+ </div>
24
+
25
+ <div style="float: right">
26
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
27
+ </div>
28
+ </div>
29
+ </form>
30
+ </body>
31
+ </html>