~ubuntu-branches/ubuntu/oneiric/moin/oneiric-security

« back to all changes in this revision

Viewing changes to MoinMoin/web/static/htdocs/applets/FCKeditor/editor/dialog/fck_specialchar.html

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-03-30 12:55:34 UTC
  • mfrom: (0.1.17 sid)
  • Revision ID: james.westby@ubuntu.com-20100330125534-4c2ufc1rok24447l
Tags: 1.9.2-2ubuntu1
* Merge from Debian testing (LP: #521834). Based on work by Stefan Ebner.
  Remaining changes:
 - Remove python-xml from Suggests field, the package isn't anymore in
   sys.path.
 - Demote fckeditor from Recommends to Suggests; the code was previously
   embedded in moin, but it was also disabled, so there's no reason for us
   to pull this in by default currently. Note: This isn't necessary anymore
   but needs a MIR for fckeditor, so postpone dropping this change until
   lucid+1
* debian/rules:
  - Replace hardcoded python2.5 with python* and hardcore python2.6 for ln
* debian/control.in: drop versioned depends on cdbs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
 
2
<!--
 
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 
4
 * Copyright (C) 2003-2009 Frederico Caldeira Knabben
 
5
 *
 
6
 * == BEGIN LICENSE ==
 
7
 *
 
8
 * Licensed under the terms of any of the following licenses at your
 
9
 * choice:
 
10
 *
 
11
 *  - GNU General Public License Version 2 or later (the "GPL")
 
12
 *    http://www.gnu.org/licenses/gpl.html
 
13
 *
 
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 
15
 *    http://www.gnu.org/licenses/lgpl.html
 
16
 *
 
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 
19
 *
 
20
 * == END LICENSE ==
 
21
 *
 
22
 * Special Chars Selector dialog window.
 
23
-->
 
24
<html>
 
25
        <head>
 
26
                <meta name="robots" content="noindex, nofollow">
 
27
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
28
                <style type="text/css">
 
29
                                .Hand
 
30
                                {
 
31
                                        cursor: pointer ;
 
32
                                        cursor: hand ;
 
33
                                }
 
34
                                .Sample { font-size: 24px; }
 
35
                </style>
 
36
                <script src="common/fck_dialog_common.js" type="text/javascript"></script>
 
37
                <script type="text/javascript">
 
38
 
 
39
var oEditor = window.parent.InnerDialogLoaded() ;
 
40
 
 
41
var oSample ;
 
42
 
 
43
function insertChar(charValue)
 
44
{
 
45
        oEditor.FCKUndo.SaveUndoStep() ;
 
46
        oEditor.FCK.InsertHtml( charValue || "" ) ;
 
47
        window.parent.Cancel() ;
 
48
}
 
49
 
 
50
function over(td)
 
51
{
 
52
        if ( ! oSample )
 
53
                return ;
 
54
        oSample.innerHTML = td.innerHTML ;
 
55
        td.className = 'LightBackground SpecialCharsOver Hand' ;
 
56
}
 
57
 
 
58
function out(td)
 
59
{
 
60
        if ( ! oSample )
 
61
                return ;
 
62
        oSample.innerHTML = "&nbsp;" ;
 
63
        td.className = 'DarkBackground SpecialCharsOut Hand' ;
 
64
}
 
65
 
 
66
function setDefaults()
 
67
{
 
68
        // Gets the sample placeholder.
 
69
        oSample = document.getElementById("SampleTD") ;
 
70
 
 
71
        // First of all, translates the dialog box texts.
 
72
        oEditor.FCKLanguageManager.TranslatePage(document) ;
 
73
 
 
74
        window.parent.SetAutoSize( true ) ;
 
75
}
 
76
 
 
77
                </script>
 
78
        </head>
 
79
        <body onload="setDefaults()" style="overflow: hidden">
 
80
                <table cellpadding="0" cellspacing="0" width="100%" height="100%">
 
81
                        <tr>
 
82
                                <td width="100%">
 
83
                                        <table cellpadding="1" cellspacing="1" align="center" border="0" width="100%" height="100%">
 
84
                                                <script type="text/javascript">
 
85
var aChars = ["!","&quot;","#","$","%","&amp;","\\'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&not;","&reg;","&macr;","&deg;","&plusmn;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"] ;
 
86
 
 
87
var cols = 20 ;
 
88
 
 
89
var i = 0 ;
 
90
while (i < aChars.length)
 
91
{
 
92
        document.write("<TR>") ;
 
93
        for(var j = 0 ; j < cols ; j++)
 
94
        {
 
95
                if (aChars[i])
 
96
                {
 
97
                        document.write('<TD width="1%" class="DarkBackground SpecialCharsOut Hand" align="center" onclick="insertChar(\'' + aChars[i].replace(/&/g, "&amp;") + '\')" onmouseover="over(this)" onmouseout="out(this)">') ;
 
98
                        document.write(aChars[i]) ;
 
99
                }
 
100
                else
 
101
                        document.write("<TD class='DarkBackground SpecialCharsOut'>&nbsp;") ;
 
102
                document.write("<\/TD>") ;
 
103
                i++ ;
 
104
        }
 
105
        document.write("<\/TR>") ;
 
106
}
 
107
                                                </script>
 
108
                                        </table>
 
109
                                </td>
 
110
                                <td nowrap>&nbsp;&nbsp;&nbsp;&nbsp;</td>
 
111
                                <td valign="top">
 
112
                                        <table width="40" cellpadding="0" cellspacing="0" border="0">
 
113
                                                <tr>
 
114
                                                        <td id="SampleTD" width="40" height="40" align="center" class="DarkBackground SpecialCharsOut Sample">&nbsp;</td>
 
115
                                                </tr>
 
116
                                        </table>
 
117
                                </td>
 
118
                        </tr>
 
119
                </table>
 
120
        </body>
 
121
</html>