-
Notifications
You must be signed in to change notification settings - Fork 5
/
xed.spt
executable file
·759 lines (690 loc) · 24.4 KB
/
xed.spt
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
<!-- BEGIN XED INTERFACE -->
<style type="text/css">
td.field iframe {
border: #000 1px solid;
border-bottom: #999 1px solid;
border-right: #999 1px solid;
background-color: #fff;
}
#xed-{name}-source-bar {
position: absolute;
visibility: hidden;
}
#xed-{name}-table-bar {
display: none;
clear: left;
}
#xed-{name}-source {
{if obj.scroller ne 'false'}
width: 450px;
{end if}
{if else}
width: 662px;
{end if}
height: {source_height}px;
border: 1px solid #000;
border-bottom: #999 1px solid;
border-right: #999 1px solid;
position: absolute;
display: none;
}
#xed-{name}-mode-edit-button {
background-color: #eee; /* #cde */
}
#xed-{name}-mode-edit-button a {
color: #09f;
font-weight: bold;
}
#xed-{name}-mode-source-button {
background-color: #eee;
}
#xed-context-menu td {
height: 28px;
vertical-align: middle;
}
#xed-context-menu tr {
background-color: #fff;
}
#xed-context-menu tr:hover {
background-color: #eee;
}
/*
td.xcm-icons {
width: 28px;
text-align: center;
background-color: #A9B7C4;
}
td.xcm-text {
padding-left: 3px;
}
*/
#xed-context-menu {
position: absolute;
z-index: 100;
}
#xed-context-menu-shade {
position: absolute;
z-index: 99;
}
#xed-context-menu ul {
padding: 0px;
margin: 0px;
}
#xed-context-menu li {
list-style-type: none;
display: inline;
}
#xed-context-menu li img {
float: left;
height: 24px;
width: 24px;
padding-right: 5px;
}
#xed-context-menu li a {
background-image: url({site/prefix}/inc/app/xed/pix/menu-bg-off.gif);
display: block;
width: 145px;
height: 15px;
line-height: 28px;
vertical-align: middle;
text-decoration: none;
color: inherit;
color: #000;
padding: 2px 2px 11px 3px;
}
#xed-context-menu li a:hover {
background-image: url({site/prefix}/inc/app/xed/pix/menu-bg-on.gif);
display: block;
width: 145px;
height: 15px;
line-height: 28px;
vertical-align: middle;
text-decoration: none;
color: inherit;
color: #000;
padding: 2px 2px 11px 3px;
}
#xed-context-menu li.xcm-sep a {
background-image: url({site/prefix}/inc/app/xed/pix/menu-sep-off.gif);
}
#xed-context-menu li.xcm-sep a:hover {
background-image: url({site/prefix}/inc/app/xed/pix/menu-sep-on.gif);
}
{if obj.msie}
#xed-context-menu li.xcm-sep a {
background-image: url({site/prefix}/inc/app/xed/pix/menu-bg-off.gif);
}
#xed-context-menu li.xcm-sep a:hover {
background-image: url({site/prefix}/inc/app/xed/pix/menu-bg-on.gif);
}
#xed-context-menu li img {
padding: 0px;
padding-right: 5px;
}
#xed-context-menu li a {
padding: 0px 0px 0px 0px;
}
#xed-context-menu li a:hover {
padding: 0px 0px 0px 0px;
}
{end if}
div#xed-{name}-edit-bar {
padding-top: 0px;
padding-bottom: 0px;
}
div#xed-{name}-edit-bar a {
overflow: hidden;
width: 22px;
height: 21px;
display: block;
background: url({site/prefix}/inc/app/xed/pix/sprite.gif) 0px 0px no-repeat;
text-indent: -9999px;
padding: 0px;
margin-left: 3px;
margin-top: 2px;
margin-bottom: 2px;
float: left;
}
div#xed-{name}-table-bar {
padding-top: 0px;
}
div#xed-{name}-table-bar a {
overflow: hidden;
width: 22px;
height: 21px;
display: block;
background: url({site/prefix}/inc/app/xed/pix/sprite.gif) 0px 0px no-repeat;
text-indent: -9999px;
padding: 0px;
margin-left: 3px;
margin-top: 2px;
margin-bottom: 2px;
float: left;
}
a.sprite-charmap {
background-position: 0px 0px !important;
}
a.sprite-image {
background-position: -22px 0px !important;
}
a.sprite-table {
background-position: -44px 0px !important;
margin-right: 5px;
}
a.sprite-undo {
background-position: -66px 0px !important;
}
a.sprite-redo {
background-position: -88px 0px !important;
margin-right: 5px;
}
a.sprite-link {
background-position: -110px 0px !important;
margin-right: 5px;
}
a.sprite-boxchooser {
background-position: -132px 0px !important;
}
a.sprite-formchooser {
background-position: -154px 0px !important;
margin-right: 5px;
}
a.sprite-clean {
background-position: -176px 0px !important;
}
a.sprite-fullscreen {
background-position: -198px 0px !important;
}
a.sprite-help {
background-position: -220px 0px !important;
margin-right: 5px;
}
a.sprite-word {
background-position: -242px 0px !important;
margin-right: 5px;
}
a.sprite-bold {
background-position: -0px -21px !important;
{if obj.scroller eq 'false' and not obj.reference}
clear: left;
{end if}
}
a.sprite-italic {
background-position: -22px -21px !important;
}
a.sprite-underline {
background-position: -44px -21px !important;
margin-right: 5px;
}
a.sprite-sub {
background-position: -66px -21px !important;
}
a.sprite-sup {
background-position: -88px -21px !important;
margin-right: 5px;
}
a.sprite-rule {
background-position: -110px -21px !important;
margin-right: 5px;
}
a.sprite-left {
background-position: -132px -21px !important;
{if obj.scroller ne 'false' or obj.reference}
clear: left;
{end if}
}
a.sprite-center {
background-position: -154px -21px !important;
}
a.sprite-right {
background-position: -176px -21px !important;
margin-right: 5px;
}
a.sprite-bull {
background-position: -198px -21px !important;
}
a.sprite-num {
background-position: -220px -21px !important;
margin-right: 5px;
}
a.sprite-indent {
background-position: -242px -21px !important;
}
a.sprite-outdent {
background-position: -176px -42px !important;
margin-right: 5px;
}
a.sprite-ltr {
background-position: -198px -42px !important;
}
a.sprite-rtl {
background-position: -220px -42px !important;
}
a.sprite-row-before {
background-position: 0px -42px !important;
}
a.sprite-row-after {
background-position: -22px -42px !important;
}
a.sprite-row-delete {
background-position: -44px -42px !important;
margin-right: 5px;
}
a.sprite-col-before {
background-position: -66px -42px !important;
}
a.sprite-col-after {
background-position: -88px -42px !important;
}
a.sprite-col-delete {
background-position: -110px -42px !important;
margin-right: 5px;
}
a.sprite-table-merge {
background-position: -132px -42px !important;
}
a.sprite-table-split {
background-position: -154px -42px !important;
margin-right: 5px;
}
.tip {
background: #ffe !important;
color: #000 !important;
}
</style>
{if obj.scroller ne 'false'}
<script language="javascript" type="text/javascript" src="{site/prefix}/inc/app/xed/js/scroller-compressed.js"></script>
{end if}
{if obj.reference}
<script language="javascript" type="text/javascript" src="{site/prefix}/inc/app/xed/js/scroller-compressed.js"></script>
{end if}
<link rel="stylesheet" type="text/css" href="{site/prefix}/js/jquery.tooltip.css" />
<script language="javascript" type="text/javascript" src="{site/prefix}/js/jquery-1.2.3.min.js"></script>
<script language="javascript" type="text/javascript" src="{site/prefix}/js/jquery.dimensions.min.js"></script>
<script language="javascript" type="text/javascript" src="{site/prefix}/js/jquery.bgiframe.js"></script>
<script language="javascript" type="text/javascript" src="{site/prefix}/js/jquery.tooltip.min.js"></script>
<script language="javascript" type="text/javascript" src="{site/prefix}/js/dialog-compressed.js"></script>
<script language="javascript" type="text/javascript" src="{site/prefix}/inc/app/xed/js/md5-compressed.js"></script>
<script language="javascript" type="text/javascript" src="{site/prefix}/js/rpc-compressed.js"></script>
<!-- script language="javascript" type="text/javascript" src="{site/prefix}/js/debug.js"></script -->
<script language="javascript" type="text/javascript">
jQuery.noConflict ();
jQuery(document).ready(function () {
jQuery('#xed-{name}-edit-bar a, #xed-{name}-table-bar a').tooltip ({
bodyHandler: function () {
return jQuery(this).html ();
},
track: true,
opacity: 0.95,
delay: 0,
extraClass: 'tip',
showURL: false
});
});
{filter none}{box imagechooser/js?name=[name]}{end filter}
imagechooser_{name}_set_align = true;
function imagechooser_{name}_handler () {
if (typeof dialogWin.returnedValue == 'object') {
url = '{site/prefix}' + dialogWin.returnedValue['src'];
alt = dialogWin.returnedValue['alt'];
flt = dialogWin.returnedValue['float'];
h = dialogWin.returnedValue['height'];
w = dialogWin.returnedValue['width'];
} else {
url = '{site/prefix}' + dialogWin.returnedValue;
alt = '';
flt = false;
h = false;
w = false;
}
xed_set_image (imagechooser_{name}_form, url, alt, flt, h, w);
}
{filter none}{box filechooser/js}{end filter}
function filechooser_handler () {
if (typeof dialogWin.returnedValue == 'object') {
if (dialogWin.returnedValue['path'].length > 0) {
args = new Array ();
args.push (xed_attribute ('path', dialogWin.returnedValue['path']));
xed_insert_box (filechooser_form, 'cms/filesystem', xed_path + xed_box_image, args);
return;
}
src = dialogWin.returnedValue['src'];
name = dialogWin.returnedValue['name'];
} else {
src = dialogWin.returnedValue;
name = src.split ('file=');
name = name[1];
}
xed_set_file (filechooser_form, src, name);
}
{filter none}{box boxchooser/js?name=[name]}{end filter}
function boxchooser_{name}_handler () {
if (typeof dialogWin.returnedValue == 'object') {
url = dialogWin.returnedValue['src'];
alt = dialogWin.returnedValue['alt'];
flt = dialogWin.returnedValue['float'];
h = dialogWin.returnedValue['height'];
w = dialogWin.returnedValue['width'];
} else {
url = dialogWin.returnedValue;
alt = '';
flt = false;
h = false;
w = false;
}
elements = xed_parse_uri (url);
xed_insert_box (boxchooser_{name}_form, elements.box, xed_path + xed_box_image, elements.args);
return;
}
{filter none}{box formchooser/js}{end filter}
function formchooser_handler () {
if (typeof dialogWin.returnedValue == 'object') {
url = dialogWin.returnedValue['src'];
alt = dialogWin.returnedValue['alt'];
flt = dialogWin.returnedValue['float'];
h = dialogWin.returnedValue['height'];
w = dialogWin.returnedValue['width'];
} else {
url = dialogWin.returnedValue;
alt = '';
flt = false;
h = false;
w = false;
}
elements = xed_parse_uri (url);
xed_insert_form (formchooser_form, elements.box, xed_path + xed_form_image, elements.args);
return;
}
</script>
<script language="javascript" type="text/javascript" src="{site/prefix}/inc/app/xed/js/xed-compressed.js"></script>
<script language="javascript" type="text/javascript">
<!--
// initializations
xed_debug_view = false;
xed_prefix = '{site/prefix}';
//xed_site_url = '{site/url}';
//xed_site_domain = '{site/domain}';
xed_path = '{site/prefix}/inc/app/xed';
xed_web_path = '{site/prefix}';
xed_initial_value['{name}'] = '{filter none}{initial_value}{end filter}';
xed_default_link = '/index/';
xed_images = {images};
xed_boxes = {boxes};
xed_forms = {forms};
xed_spellchecker = {spellchecker};
xed_scroller = {scroller};
xed_scroller_data = '{filter none}{scroller_data}{end filter}';
{if obj.reference}
xed_scroller = true;
xed_scroller_data = '{filter none}{reference}{end filter}';
{end if}
xed_max_height = {max_height};
xed_max_width = {max_width};
xed_img_popup = {img_popup};
xed_msie7 = {msie7};
xed_safari = {safari};
xed_adobeair = {adobeair};
xed_rpc.url = xed_prefix + '/index/xed-rpc-action';
{if obj.fullsize}
xed_fullsize = true;
{end if}
xed_templates = new Array ();
{loop obj.templates}
xed_templates['{loop/id}'] = '{filter none}{loop/body}{end filter}';
{end loop}
var rpc_handler = new Function (
"if (arguments.length == 0 || arguments[0] === true || arguments[0] === false) { " +
"return false;" +
" } else { " +
//"alert (typeof arguments[0] + arguments[0]);" +
"xed_cleaner (arguments[0], arguments[1]);" +
" } " +
"return false;"
);
// -->
</script>
<tr>
{if obj.scroller ne 'false'}
<td class="label" colspan="1" valign="top">
{end if}
{if else}
<td class="label" colspan="2" valign="top">
{end if}
<div id="xed-{name}-edit-bar" style="line-height: 120%">
<div style="float: right; margin-top: 3px; margin-right: 3px; text-align: right">
<span style="font-weight: normal">{intl Content Guides}:</span>
<select id="xed-{name}-templatelist"
onchange="return xed_template ('{name}', this.id)"
style="font-size: 11px">
<option value="" style="margin-top: 3px; vertical-align: bottom" selected="selected">- {intl SELECT} -</option>
{loop obj.templates}
<option value="{loop/id}" style="margin-top: 3px; vertical-align: bottom">{loop/name}</option>
{end loop}
{if session_admin () and session_allowed ('xed_templates_add', 'rw')}
<option value="ADD TEMPLATE" style="margin-top: 3px; vertical-align: bottom">{intl Save as Guide}</option>
{end if}
</select><br />
<span style="font-weight: normal">{intl Elements}:</span>
<select id="xed-{name}-formatblock"
onchange="return xed_select ('{name}', this.id)"
style="margin-top: 5px; font-size: 11px">
<option value="" style="margin-top: 3px; vertical-align: bottom" selected="selected">{intl Normal}</option>
<option value="<p>" style="margin-top: 3px; vertical-align: bottom">{intl Paragraph}</option>
<option value="<h1>" style="margin-top: 3px; vertical-align: bottom">{intl Headline} (H1)</option>
<option value="<h2>" style="margin-top: 3px; vertical-align: bottom">{intl Subhead} (H2)</option>
<option value="<h3>" style="margin-top: 3px; vertical-align: bottom">{intl Heading 3}</option>
<option value="<h4>" style="margin-top: 3px; vertical-align: bottom">{intl Heading 4}</option>
<option value="<h5>" style="margin-top: 3px; vertical-align: bottom">{intl Heading 5}</option>
<option value="<h6>" style="margin-top: 3px; vertical-align: bottom">{intl Heading 6}</option>
<option value="<address>" style="margin-top: 3px; vertical-align: bottom">{intl Address}</option>
<option value="<pre>" style="margin-top: 3px; vertical-align: bottom">{intl Formatted}</option>
</select>
</div>
{if obj.scroller ne 'false' or obj.reference}
<a href="#" onclick="return xed_charmap ('{name}')" class="sprite sprite-charmap">{intl Character Map}</a>
<a href="#" onclick="return xed_image ('{name}')" class="sprite sprite-image">{intl Add Image}</a>
<a href="#" onclick="return xed_table ('{name}')" class="sprite sprite-table">{intl Add Table}</a>
<a href="#" onclick="return xed_undo ('{name}')" class="sprite sprite-undo">{intl Undo}</a>
<a href="#" onclick="return xed_redo ('{name}')" class="sprite sprite-redo">{intl Redo}</a>
<a href="#" onclick="return xed_link ('{name}')" class="sprite sprite-link">{intl Add/Remove Link}</a>
<a href="#" onclick="return xed_clean ('{name}')" class="sprite sprite-clean">{intl Clean Document}</a>
{if appconf ('wvhtml_location')}<a href="#" onclick="return xed_word_importer ('{name}')" class="sprite sprite-word">{intl Word Importer}</a>{end if}
<a href="#" onclick="return xed_full_screen ('{name}')" class="sprite sprite-fullscreen">{intl Full Screen Mode}</a>
<a href="#" onclick="return xed_help ('{name}')" class="sprite sprite-help">{intl Help}</a>
{if session_admin ()}
{if session_allowed ('app_boxchooser', 'rw')}<a href="#" onclick="return xed_create_box ('{name}')" class="sprite sprite-boxchooser">{intl Add Box}</a>{end if}
{if session_allowed ('app_formchooser', 'rw')}<a href="#" onclick="return xed_create_form ('{name}')" class="sprite sprite-formchooser">{intl Add Form}</a>{end if}
{end if}
{end if}
{if obj.scroller eq 'false' and not obj.reference}
<a href="#" onclick="return xed_charmap ('{name}')" class="sprite sprite-charmap">{intl Character Map}</a>
<a href="#" onclick="return xed_image ('{name}')" class="sprite sprite-image">{intl Add Image}</a>
<a href="#" onclick="return xed_table ('{name}')" class="sprite sprite-table">{intl Add Table}</a>
<a href="#" onclick="return xed_undo ('{name}')" class="sprite sprite-undo">{intl Undo}</a>
<a href="#" onclick="return xed_redo ('{name}')" class="sprite sprite-redo">{intl Redo}</a>
<a href="#" onclick="return xed_link ('{name}')" class="sprite sprite-link">{intl Add/Remove Link}</a>
{if session_admin ()}
{if session_allowed ('app_boxchooser', 'rw')}<a href="#" onclick="return xed_create_box ('{name}')" class="sprite sprite-boxchooser">{intl Add Box}</a>{end if}
{if session_allowed ('app_formchooser', 'rw')}<a href="#" onclick="return xed_create_form ('{name}')" class="sprite sprite-formchooser">{intl Add Form}</a>{end if}
{end if}
<a href="#" onclick="return xed_clean ('{name}')" class="sprite sprite-clean">{intl Clean Document}</a>
{if appconf ('wvhtml_location')}<a href="#" onclick="return xed_word_importer ('{name}')" class="sprite sprite-word">{intl Word Importer}</a>{end if}
<a href="#" onclick="return xed_full_screen ('{name}')" class="sprite sprite-fullscreen">{intl Full Screen Mode}</a>
<a href="#" onclick="return xed_help ('{name}')" class="sprite sprite-help">{intl Help}</a>
{end if}
<br />
<a href="#" onclick="return xed_bold ('{name}')" class="sprite sprite-bold">{intl Bold}</a>
<a href="#" onclick="return xed_italic ('{name}')" class="sprite sprite-italic">{intl Italic}</a>
<a href="#" onclick="return xed_underline ('{name}')" class="sprite sprite-underline">{intl Underline}</a>
<a href="#" onclick="return xed_subscript ('{name}')" class="sprite sprite-sub">{intl Subscript}</a>
<a href="#" onclick="return xed_superscript ('{name}')" class="sprite sprite-sup">{intl Superscript}</a>
<a href="#" onclick="return xed_horizontal_rule ('{name}')" class="sprite sprite-rule">{intl Horizontal Rule}</a>
<a href="#" onclick="return xed_align_left ('{name}')" class="sprite sprite-left">{intl Align Left}</a>
<a href="#" onclick="return xed_align_center ('{name}')" class="sprite sprite-center">{intl Align Center}</a>
<a href="#" onclick="return xed_align_right ('{name}')" class="sprite sprite-right">{intl Align Right}</a>
<a href="#" onclick="return xed_unordered_list ('{name}')" class="sprite sprite-bull">{intl Bulleted List}</a>
<a href="#" onclick="return xed_ordered_list ('{name}')" class="sprite sprite-num">{intl Numbered List}</a>
<a href="#" onclick="return xed_indent ('{name}')" class="sprite sprite-indent">{intl Indent}</a>
<a href="#" onclick="return xed_outdent ('{name}')" class="sprite sprite-outdent">{intl Outdent}</a>
<a href="#" onclick="return xed_ltr ('{name}')" class="sprite sprite-ltr">{intl Left-to-Right}</a>
<a href="#" onclick="return xed_rtl ('{name}')" class="sprite sprite-rtl">{intl Right-to-Left}</a>
</div>
<div id="xed-{name}-table-bar">
<a href="#" onclick="return xed_table_row_before ('{name}')" class="sprite sprite-row-before">{intl Insert row before}</a>
<a href="#" onclick="return xed_table_row_after ('{name}')" class="sprite sprite-row-after">{intl Insert row after}</a>
<a href="#" onclick="return xed_table_row_delete ('{name}')" class="sprite sprite-row-delete">{intl Delete row}</a>
<a href="#" onclick="return xed_table_col_before ('{name}')" class="sprite sprite-col-before">{intl Insert column before}</a>
<a href="#" onclick="return xed_table_col_after ('{name}')" class="sprite sprite-col-after">{intl Insert column after}</a>
<a href="#" onclick="return xed_table_col_delete ('{name}')" class="sprite sprite-col-delete">{intl Delete column}</a>
<a href="#" onclick="return xed_table_merge ('{name}')" class="sprite sprite-table-merge">{intl Merge cells}</a>
<a href="#" onclick="return xed_table_split_merged ('{name}')" class="sprite sprite-table-split">{intl Split merged cells}</a>
</div>
<div id="xed-{name}-source-bar">
{intl You are in HTML source mode.}
</div>
</td>
{if obj.scroller ne 'false'}
<td class="label" colspan="1" valign="top">
<strong>{intl Reference Document}</strong><br />
</td>
{end if}
{if obj.reference}
<td class="label" colspan="1' valign="top">
</td>
{end if}
</tr>
<tr>
{if obj.scroller ne 'false'}
<td class="field" colspan="1">
{end if}
{if else}
<td class="field" colspan="2">
{end if}
<iframe
id="{name}"
src="{site/prefix}/inc/app/xed/html/blank.html"
{if obj.scroller ne 'false' or obj.reference}
width="450"
{end if}
{if else}
width="660"
{end if}
height="{height}"
align="left"
scrolling="auto"
{if obj.safari eq 'true'}contentEditable="true"{end if}
frameborder="1">
</iframe>
<!-- textarea name="xed-{name}-source" id="xed-{name}-source"></textarea -->
<input type="hidden" name="{name}" value="" />
<script language="javascript" type="text/javascript">
document.getElementById ('{name}').xed_insert_character = xed_insert_character;
document.getElementById ('{name}').xed_insert_table = xed_insert_table;
document.getElementById ('{name}').xed_set_properties = xed_set_properties;
document.getElementById ('{name}').xed_add_link = xed_add_link;
document.getElementById ('{name}').xed_set_source = xed_set_source;
document.getElementById ('{name}').xed_get_source = xed_get_source;
//document.getElementById ('{name}').xed_insert_box = xed_insert_box;
document.getElementById ('{name}').xed_word_importer_return = xed_word_importer_return;
document.getElementById ('{name}').xed_get_anchors = xed_get_anchors;
document.getElementById ('{name}').xed_cleaner = xed_cleaner;
//interval_id = setInterval ("xed_historian ('{name}');", 2000);
</script>
</td>
{if obj.scroller ne 'false'}
<td class="field" colspan="1">
<iframe
id="xed-{name}-reference"
src="{site/prefix}/inc/app/xed/html/blank.html"
{if obj.scroller ne 'false' or obj.reference}
width="450"
{end if}
{if else}
width="660"
{end if}
height="{height}"
align="left"
scrolling="auto"
frameborder="1">
</iframe>
</td>
{end if}
{if obj.reference}
<td class="reference" colspan="1">
<iframe
id="xed-{name}-reference"
src="{site/prefix}/inc/app/xed/html/blank.html"
{if obj.scroller ne 'false' or obj.reference}
width="450"
{end if}
{if else}
width="660"
{end if}
height="{height}"
align="left"
scrolling="auto"
frameborder="1">
</iframe>
</td>
{end if}
</tr>
<tr>
{if obj.scroller ne 'false'}
<td class="field" style="padding: 0px; margin: 0px" colspan="1">
{end if}
{if else}
<td class="field" style="padding: 0px; margin: 0px" colspan="2">
{end if}
<table border="0" cellpadding="3" cellspacing="0" width="100%" style="padding: 0px; margin: 0px">
<tr>
<td>
<!-- tag path -->
<div id="xed-{name}-path">{intl Path}:</div>
</td>
{if obj.scroller ne 'false' or obj.reference}
<!-- td width="20%" align="center" id="xed-{name}-mode-edit-button"><a href="#" onclick="this.blur (); return xed_mode ('{name}', 'edit')">{intl Editor}</a>
</td -->
<td width="20%" align="center" id="xed-{name}-mode-source-button"><a href="#" onclick="this.blur (); return xed_mode ('{name}', 'source')"><{intl Source} /></a>
</td>
{end if}
{if obj.scroller eq 'false' and not obj.reference}
<!-- td width="15%" align="center" id="xed-{name}-mode-edit-button"><a href="#" onclick="this.blur (); return xed_mode ('{name}', 'edit')">{intl Editor}</a>
</td -->
<td width="15%" align="center" id="xed-{name}-mode-source-button"><a href="#" onclick="this.blur (); return xed_mode ('{name}', 'source')"><{intl Source} /></a>
</td>
{end if}
</tr>
</table>
</td>
{if obj.scroller ne 'false' or obj.reference}
<td class="field" colspan="1" valign="top">
<table border="0" cellpadding="0" cellspacing="1" width="100%">
<tr>
<td width="12">
<input type="checkbox" checked="checked" onclick="scroller_event (this.checked)" />
</td>
<td>{intl Synchronize scrolling}</td>
</tr>
</table>
</td>
{end if}
<tr style="height: 0px">
<td colspan="2" style="height: 0px">
<iframe id="rpc-caller" style="border: 0px none; width: 0px; height: 0px"></iframe>
<div id="xed-context-menu-shade" style="display: none; width: 150px; height: 150px; background-color: #999; border: 0px none; position: absolute; z-index: 98;">
</div>
<div id="xed-context-menu" style="display: none; width: 150px; height: 150px; background-color: #fff; border: 1px solid #666; position: absolute; z-index: 99;">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="display: none">
<tr>
<td class="xcm-icons"> </td>
<td class="xcm-text">Context Menu</td>
</tr>
</table>
</div>
</td>
</tr>
<tr id="xed-debug-tr" style="display: none">
<td colspan="2"><div id="xed-debug-msg" style="width: 100%; border: 1px solid #333; height: 96px; overflow: auto"></div></td>
</tr>
<!-- END XED INTERFACE -->