1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
|
---|
2 | <!--
|
---|
3 | * FCKeditor - The text editor for internet
|
---|
4 | * Copyright (C) 2003-2006 Frederico Caldeira Knabben
|
---|
5 | *
|
---|
6 | * Licensed under the terms of the GNU Lesser General Public License:
|
---|
7 | * http://www.opensource.org/licenses/lgpl-license.php
|
---|
8 | *
|
---|
9 | * For further information visit:
|
---|
10 | * http://www.fckeditor.net/
|
---|
11 | *
|
---|
12 | * "Support Open Source software. What about a donation today?"
|
---|
13 | *
|
---|
14 | * File Name: fck_listprop.html
|
---|
15 | * Bulleted List dialog window.
|
---|
16 | *
|
---|
17 | * File Authors:
|
---|
18 | * Frederico Caldeira Knabben (fredck@fckeditor.net)
|
---|
19 | * Marcel J Bennett (start attribute)
|
---|
20 | -->
|
---|
21 | <html xmlns="http://www.w3.org/1999/xhtml">
|
---|
22 | <head>
|
---|
23 | <title></title>
|
---|
24 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
---|
25 | <meta content="noindex, nofollow" name="robots" />
|
---|
26 | <script src="common/fck_dialog_common.js" type="text/javascript"></script>
|
---|
27 | <script type="text/javascript">
|
---|
28 |
|
---|
29 | var oEditor = window.parent.InnerDialogLoaded() ;
|
---|
30 |
|
---|
31 | // Gets the document DOM
|
---|
32 | var oDOM = oEditor.FCK.EditorDocument ;
|
---|
33 |
|
---|
34 | var oActiveEl = oEditor.FCKSelection.MoveToAncestorNode( 'UL' ) ;
|
---|
35 | var oActiveSel ;
|
---|
36 |
|
---|
37 | window.onload = function()
|
---|
38 | {
|
---|
39 | // First of all, translate the dialog box texts
|
---|
40 | oEditor.FCKLanguageManager.TranslatePage(document) ;
|
---|
41 |
|
---|
42 | if ( oActiveEl )
|
---|
43 | oActiveSel = GetE('selBulleted') ;
|
---|
44 | else
|
---|
45 | {
|
---|
46 | oActiveEl = oEditor.FCKSelection.MoveToAncestorNode( 'OL' ) ;
|
---|
47 | if ( oActiveEl )
|
---|
48 | {
|
---|
49 | oActiveSel = GetE('selNumbered') ;
|
---|
50 | GetE('eStart').style.display = '' ;
|
---|
51 | GetE('txtStartPosition').value = GetAttribute( oActiveEl, 'start' ) ;
|
---|
52 | }
|
---|
53 | }
|
---|
54 |
|
---|
55 | oActiveSel.style.display = '' ;
|
---|
56 |
|
---|
57 | if ( oActiveEl )
|
---|
58 | {
|
---|
59 | if ( oActiveEl.getAttribute('type') )
|
---|
60 | oActiveSel.value = oActiveEl.getAttribute('type').toLowerCase() ;
|
---|
61 | }
|
---|
62 |
|
---|
63 | window.parent.SetOkButton( true ) ;
|
---|
64 | }
|
---|
65 |
|
---|
66 | function Ok()
|
---|
67 | {
|
---|
68 | if ( oActiveEl ){
|
---|
69 | SetAttribute( oActiveEl, 'type' , oActiveSel.value ) ;
|
---|
70 | if(oActiveEl.tagName == 'OL')
|
---|
71 | SetAttribute( oActiveEl, 'start', GetE('txtStartPosition').value ) ;
|
---|
72 | }
|
---|
73 |
|
---|
74 | return true ;
|
---|
75 | }
|
---|
76 |
|
---|
77 | </script>
|
---|
78 | </head>
|
---|
79 | <body style="overflow: hidden">
|
---|
80 | <table width="100%" style="height: 100%">
|
---|
81 | <tr>
|
---|
82 | <td style="text-align:center">
|
---|
83 | <table cellspacing="0" cellpadding="0" border="0" style="margin-left: auto; margin-right: auto;">
|
---|
84 | <tr>
|
---|
85 | <td id="eStart" style="display: none; padding-right: 5px; padding-left: 5px">
|
---|
86 | <span fcklang="DlgLstStart">Start</span><br />
|
---|
87 | <input type="text" id="txtStartPosition" size="5" />
|
---|
88 | </td>
|
---|
89 | <td style="padding-right: 5px; padding-left: 5px">
|
---|
90 | <span fcklang="DlgLstType">List Type</span><br />
|
---|
91 | <select id="selBulleted" style="display: none">
|
---|
92 | <option value="" selected="selected"></option>
|
---|
93 | <option value="circle" fcklang="DlgLstTypeCircle">Circle</option>
|
---|
94 | <option value="disc" fcklang="DlgLstTypeDisc">Disc</option>
|
---|
95 | <option value="square" fcklang="DlgLstTypeSquare">Square</option>
|
---|
96 | </select>
|
---|
97 | <select id="selNumbered" style="display: none">
|
---|
98 | <option value="" selected="selected"></option>
|
---|
99 | <option value="1" fcklang="DlgLstTypeNumbers">Numbers (1, 2, 3)</option>
|
---|
100 | <option value="a" fcklang="DlgLstTypeLCase">Lowercase Letters (a, b, c)</option>
|
---|
101 | <option value="A" fcklang="DlgLstTypeUCase">Uppercase Letters (A, B, C)</option>
|
---|
102 | <option value="i" fcklang="DlgLstTypeSRoman">Small Roman Numerals (i, ii, iii)</option>
|
---|
103 | <option value="I" fcklang="DlgLstTypeLRoman">Large Roman Numerals (I, II, III)</option>
|
---|
104 | </select>
|
---|
105 |
|
---|
106 | </td>
|
---|
107 | </tr>
|
---|
108 | </table>
|
---|
109 | </td>
|
---|
110 | </tr>
|
---|
111 | </table>
|
---|
112 | </body>
|
---|
113 | </html>
|
---|