[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 /* 2 * FCKeditor - The text editor for internet 3 * Copyright (C) 2003-2005 Frederico Caldeira Knabben 4 * 5 * Licensed under the terms of the GNU Lesser General Public License: 6 * http://www.opensource.org/licenses/lgpl-license.php 7 * 8 * For further information visit: 9 * http://www.fckeditor.net/ 10 * 11 * "Support Open Source software. What about a donation today?" 12 * 13 * File Name: fckxhtmlentities.js 14 * This file define the HTML entities handled by the editor. 15 * 16 * File Authors: 17 * Frederico Caldeira Knabben (fredck@fckeditor.net) 18 */ 19 20 var FCKXHtmlEntities = new Object() ; 21 22 if ( FCKConfig.ProcessHTMLEntities ) 23 { 24 FCKXHtmlEntities.Entities = { 25 // Latin-1 Entities 26 ' ':'nbsp', 27 '¡':'iexcl', 28 '¢':'cent', 29 '£':'pound', 30 '¤':'curren', 31 '¥':'yen', 32 '¦':'brvbar', 33 '§':'sect', 34 '¨':'uml', 35 '©':'copy', 36 'ª':'ordf', 37 '«':'laquo', 38 '¬':'not', 39 '':'shy', 40 '®':'reg', 41 '¯':'macr', 42 '°':'deg', 43 '±':'plusmn', 44 '²':'sup2', 45 '³':'sup3', 46 '´':'acute', 47 'µ':'micro', 48 '¶':'para', 49 '·':'middot', 50 '¸':'cedil', 51 '¹':'sup1', 52 'º':'ordm', 53 '»':'raquo', 54 '¼':'frac14', 55 '½':'frac12', 56 '¾':'frac34', 57 '¿':'iquest', 58 '×':'times', 59 '÷':'divide', 60 61 // Symbols and Greek Letters 62 63 'ƒ':'fnof', 64 '•':'bull', 65 '…':'hellip', 66 '′':'prime', 67 '″':'Prime', 68 '‾':'oline', 69 '⁄':'frasl', 70 '℘':'weierp', 71 'ℑ':'image', 72 'ℜ':'real', 73 '™':'trade', 74 'ℵ':'alefsym', 75 '←':'larr', 76 '↑':'uarr', 77 '→':'rarr', 78 '↓':'darr', 79 '↔':'harr', 80 '↵':'crarr', 81 '⇐':'lArr', 82 '⇑':'uArr', 83 '⇒':'rArr', 84 '⇓':'dArr', 85 '⇔':'hArr', 86 '∀':'forall', 87 '∂':'part', 88 '∃':'exist', 89 '∅':'empty', 90 '∇':'nabla', 91 '∈':'isin', 92 '∉':'notin', 93 '∋':'ni', 94 '∏':'prod', 95 '∑':'sum', 96 '−':'minus', 97 '∗':'lowast', 98 '√':'radic', 99 '∝':'prop', 100 '∞':'infin', 101 '∠':'ang', 102 '∧':'and', 103 '∨':'or', 104 '∩':'cap', 105 '∪':'cup', 106 '∫':'int', 107 '∴':'there4', 108 '∼':'sim', 109 '≅':'cong', 110 '≈':'asymp', 111 '≠':'ne', 112 '≡':'equiv', 113 '≤':'le', 114 '≥':'ge', 115 '⊂':'sub', 116 '⊃':'sup', 117 '⊄':'nsub', 118 '⊆':'sube', 119 '⊇':'supe', 120 '⊕':'oplus', 121 '⊗':'otimes', 122 '⊥':'perp', 123 '⋅':'sdot', 124 '◊':'loz', 125 '♠':'spades', 126 '♣':'clubs', 127 '♥':'hearts', 128 '♦':'diams', 129 130 // Other Special Characters 131 132 '"':'quot', 133 // '&':'amp', // This entity is automatically handled by the XHTML parser. 134 // '<':'lt', // This entity is automatically handled by the XHTML parser. 135 // '>':'gt', // This entity is automatically handled by the XHTML parser. 136 'ˆ':'circ', 137 '˜':'tilde', 138 ' ':'ensp', 139 ' ':'emsp', 140 ' ':'thinsp', 141 '':'zwnj', 142 '':'zwj', 143 '':'lrm', 144 '':'rlm', 145 '–':'ndash', 146 '—':'mdash', 147 '‘':'lsquo', 148 '’':'rsquo', 149 '‚':'sbquo', 150 '“':'ldquo', 151 '”':'rdquo', 152 '„':'bdquo', 153 '†':'dagger', 154 '‡':'Dagger', 155 '‰':'permil', 156 '‹':'lsaquo', 157 '›':'rsaquo', 158 '€':'euro' 159 } ; 160 161 FCKXHtmlEntities.Chars = '' ; 162 163 // Process Base Entities. 164 for ( var e in FCKXHtmlEntities.Entities ) 165 FCKXHtmlEntities.Chars += e ; 166 167 // Include Latin Letters Entities. 168 if ( FCKConfig.IncludeLatinEntities ) 169 { 170 var oEntities = { 171 'À':'Agrave', 172 'Á':'Aacute', 173 'Â':'Acirc', 174 'Ã':'Atilde', 175 'Ä':'Auml', 176 'Å':'Aring', 177 'Æ':'AElig', 178 'Ç':'Ccedil', 179 'È':'Egrave', 180 'É':'Eacute', 181 'Ê':'Ecirc', 182 'Ë':'Euml', 183 'Ì':'Igrave', 184 'Í':'Iacute', 185 'Î':'Icirc', 186 'Ï':'Iuml', 187 'Ð':'ETH', 188 'Ñ':'Ntilde', 189 'Ò':'Ograve', 190 'Ó':'Oacute', 191 'Ô':'Ocirc', 192 'Õ':'Otilde', 193 'Ö':'Ouml', 194 'Ø':'Oslash', 195 'Ù':'Ugrave', 196 'Ú':'Uacute', 197 'Û':'Ucirc', 198 'Ü':'Uuml', 199 'Ý':'Yacute', 200 'Þ':'THORN', 201 'ß':'szlig', 202 'à':'agrave', 203 'á':'aacute', 204 'â':'acirc', 205 'ã':'atilde', 206 'ä':'auml', 207 'å':'aring', 208 'æ':'aelig', 209 'ç':'ccedil', 210 'è':'egrave', 211 'é':'eacute', 212 'ê':'ecirc', 213 'ë':'euml', 214 'ì':'igrave', 215 'í':'iacute', 216 'î':'icirc', 217 'ï':'iuml', 218 'ð':'eth', 219 'ñ':'ntilde', 220 'ò':'ograve', 221 'ó':'oacute', 222 'ô':'ocirc', 223 'õ':'otilde', 224 'ö':'ouml', 225 'ø':'oslash', 226 'ù':'ugrave', 227 'ú':'uacute', 228 'û':'ucirc', 229 'ü':'uuml', 230 'ý':'yacute', 231 'þ':'thorn', 232 'ÿ':'yuml', 233 'Œ':'OElig', 234 'œ':'oelig', 235 'Š':'Scaron', 236 'š':'scaron', 237 'Ÿ':'Yuml' 238 } ; 239 240 for ( var e in oEntities ) 241 { 242 FCKXHtmlEntities.Entities[ e ] = oEntities[ e ] ; 243 FCKXHtmlEntities.Chars += e ; 244 } 245 246 oEntities = null ; 247 } 248 249 // Include Greek Letters Entities. 250 if ( FCKConfig.IncludeGreekEntities ) 251 { 252 var oEntities = { 253 'Α':'Alpha', 254 'Β':'Beta', 255 'Γ':'Gamma', 256 'Δ':'Delta', 257 'Ε':'Epsilon', 258 'Ζ':'Zeta', 259 'Η':'Eta', 260 'Θ':'Theta', 261 'Ι':'Iota', 262 'Κ':'Kappa', 263 'Λ':'Lambda', 264 'Μ':'Mu', 265 'Ν':'Nu', 266 'Ξ':'Xi', 267 'Ο':'Omicron', 268 'Π':'Pi', 269 'Ρ':'Rho', 270 'Σ':'Sigma', 271 'Τ':'Tau', 272 'Υ':'Upsilon', 273 'Φ':'Phi', 274 'Χ':'Chi', 275 'Ψ':'Psi', 276 'Ω':'Omega', 277 'α':'alpha', 278 'β':'beta', 279 'γ':'gamma', 280 'δ':'delta', 281 'ε':'epsilon', 282 'ζ':'zeta', 283 'η':'eta', 284 'θ':'theta', 285 'ι':'iota', 286 'κ':'kappa', 287 'λ':'lambda', 288 'μ':'mu', 289 'ν':'nu', 290 'ξ':'xi', 291 'ο':'omicron', 292 'π':'pi', 293 'ρ':'rho', 294 'ς':'sigmaf', 295 'σ':'sigma', 296 'τ':'tau', 297 'υ':'upsilon', 298 'φ':'phi', 299 'χ':'chi', 300 'ψ':'psi', 301 'ω':'omega' 302 } ; 303 304 for ( var e in oEntities ) 305 { 306 FCKXHtmlEntities.Entities[ e ] = oEntities[ e ] ; 307 FCKXHtmlEntities.Chars += e ; 308 } 309 310 oEntities = null ; 311 } 312 313 // Create and Compile the Regex used to separate the entities from the text. 314 FCKXHtmlEntities.EntitiesRegex = new RegExp('[' + FCKXHtmlEntities.Chars + ']|[^' + FCKXHtmlEntities.Chars + ']+','g') ; 315 // FCKXHtmlEntities.EntitiesRegex.compile( '[' + FCKXHtmlEntities.Chars + ']|[^' + FCKXHtmlEntities.Chars + ']+', 'g' ) ; 316 } 317 else 318 { 319 // Even if we are not processing the entities, we must respect the . 320 FCKXHtmlEntities.Entities = { ' ':'nbsp' } ; 321 FCKXHtmlEntities.EntitiesRegex = /[ ]|[^ ]+/g ; 322 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Gnr le : Sun Feb 25 10:22:19 2007 | par Balluche grce PHPXref 0.7 |