Ticket #5599: 5599_5.patch
File 5599_5.patch, 13.1 KB (added by , 15 years ago) |
---|
-
_source/plugins/specialchar/dialogs/specialchar.js
213 213 } 214 214 }); 215 215 216 function mergeChars( chars, extraChars ) 217 { 218 if ( CKEDITOR.tools.isArray( extraChars ) ) 219 { 220 for ( var i = 0; i < extraChars.length; i++ ) 221 chars[ chars.length ] = extraChars[ i ]; 222 } 223 224 return chars; 225 } 226 216 227 return { 217 228 title : lang.title, 218 229 minWidth : 430, 219 230 minHeight : 280, 220 231 buttons : [ CKEDITOR.dialog.cancelButton ], 221 232 charColumns : 17, 222 chars :223 [224 '!','"','#','$','%','&',"'",'(',')','*','+','-','.','/',225 '0','1','2','3','4','5','6','7','8','9',':',';',226 '<','=','>','?','@',227 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O',228 'P','Q','R','S','T','U','V','W','X','Y','Z',229 '[',']','^','_','`',230 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p',231 'q','r','s','t','u','v','w','x','y','z',232 '{','|','}','~','€(EURO SIGN)','‘(LEFT SINGLE QUOTATION MARK)','’(RIGHT SINGLE QUOTATION MARK)','“(LEFT DOUBLE QUOTATION MARK)',233 '”(RIGHT DOUBLE QUOTATION MARK)','–(EN DASH)','—(EM DASH)','¡(INVERTED EXCLAMATION MARK)','¢(CENT SIGN)','£(POUND SIGN)',234 '¤(CURRENCY SIGN)','¥(YEN SIGN)','¦(BROKEN BAR)','§(SECTION SIGN)','¨(DIAERESIS)','©(COPYRIGHT SIGN)','ª(FEMININE ORDINAL INDICATOR)',235 '«(LEFT-POINTING DOUBLE ANGLE QUOTATION MARK)','¬(NOT SIGN)','®(REGISTERED SIGN)','¯(MACRON)','°(DEGREE SIGN)','±(PLUS-MINUS SIGN)','²(SUPERSCRIPT TWO)',236 '³(SUPERSCRIPT THREE)','´(ACUTE ACCENT)','µ(MICRO SIGN)','¶(PILCROW SIGN)','·(MIDDLE DOT)','¸(CEDILLA)',237 '¹(SUPERSCRIPT ONE)','º(MASCULINE ORDINAL INDICATOR)','»(RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK)','¼(VULGAR FRACTION ONE QUARTER)','½(VULGAR FRACTION ONE HALF)','¾(VULGAR FRACTION THREE QUARTERS)',238 '¿(INVERTED QUESTION MARK)','À(LATIN CAPITAL LETTER A WITH GRAVE)','Á(LATIN CAPITAL LETTER A WITH ACUTE)','Â(LATIN CAPITAL LETTER A WITH CIRCUMFLEX)','Ã(LATIN CAPITAL LETTER A WITH TILDE)','Ä(LATIN CAPITAL LETTER A WITH DIAERESIS)',239 'Å(LATIN CAPITAL LETTER A WITH RING ABOVE)','Æ(LATIN CAPITAL LETTER AE)','Ç(LATIN CAPITAL LETTER C WITH CEDILLA)','È(LATIN CAPITAL LETTER E WITH GRAVE)','É(LATIN CAPITAL LETTER E WITH ACUTE)','Ê(LATIN CAPITAL LETTER E WITH CIRCUMFLEX)',240 'Ë(LATIN CAPITAL LETTER E WITH DIAERESIS)','Ì(LATIN CAPITAL LETTER I WITH GRAVE)','Í(LATIN CAPITAL LETTER I WITH ACUTE)','Î(LATIN CAPITAL LETTER I WITH CIRCUMFLEX)','Ï(LATIN CAPITAL LETTER I WITH DIAERESIS)','Ð(LATIN CAPITAL LETTER ETH)',241 'Ñ(LATIN CAPITAL LETTER N WITH TILDE)','Ò(LATIN CAPITAL LETTER O WITH GRAVE)','Ó(LATIN CAPITAL LETTER O WITH ACUTE)','Ô(LATIN CAPITAL LETTER O WITH CIRCUMFLEX)','Õ(LATIN CAPITAL LETTER O WITH TILDE)','Ö(LATIN CAPITAL LETTER O WITH DIAERESIS)',242 '×(MULTIPLICATION SIGN)','Ø(LATIN CAPITAL LETTER O WITH STROKE)','Ù(LATIN CAPITAL LETTER U WITH GRAVE)','Ú(LATIN CAPITAL LETTER U WITH ACUTE)','Û(LATIN CAPITAL LETTER U WITH CIRCUMFLEX)','Ü(LATIN CAPITAL LETTER U WITH DIAERESIS)',243 'Ý(LATIN CAPITAL LETTER Y WITH ACUTE)','Þ(LATIN CAPITAL LETTER THORN)','ß(LATIN SMALL LETTER SHARP S)','à(LATIN SMALL LETTER A WITH GRAVE)','á(LATIN SMALL LETTER A WITH ACUTE)','â(LATIN SMALL LETTER A WITH CIRCUMFLEX)',244 'ã(LATIN SMALL LETTER A WITH TILDE)','ä(LATIN SMALL LETTER A WITH DIAERESIS)','å(LATIN SMALL LETTER A WITH RING ABOVE)','æ(LATIN SMALL LETTER AE)','ç(LATIN SMALL LETTER C WITH CEDILLA)','è(LATIN SMALL LETTER E WITH GRAVE)',245 'é(LATIN SMALL LETTER E WITH ACUTE)','ê(LATIN SMALL LETTER E WITH CIRCUMFLEX)','ë(LATIN SMALL LETTER E WITH DIAERESIS)','ì(LATIN SMALL LETTER I WITH GRAVE)','í(LATIN SMALL LETTER I WITH ACUTE)','î(LATIN SMALL LETTER I WITH CIRCUMFLEX)',246 'ï(LATIN SMALL LETTER I WITH DIAERESIS)','ð(LATIN SMALL LETTER ETH)','ñ(LATIN SMALL LETTER N WITH TILDE)','ò(LATIN SMALL LETTER O WITH GRAVE)','ó(LATIN SMALL LETTER O WITH ACUTE)','ô(LATIN SMALL LETTER O WITH CIRCUMFLEX)',247 'õ(LATIN SMALL LETTER O WITH TILDE)','ö(LATIN SMALL LETTER O WITH DIAERESIS)',248 '÷(DIVISION SIGN)','ø(LATIN SMALL LETTER O WITH STROKE)',249 'ù(LATIN SMALL LETTER U WITH GRAVE)','ú(LATIN SMALL LETTER U WITH ACUTE)',250 'û(LATIN SMALL LETTER U WITH CIRCUMFLEX)','ü(LATIN SMALL LETTER U WITH DIAERESIS)',251 'ü(LATIN SMALL LETTER U WITH DIAERESIS)','ý(LATIN SMALL LETTER Y WITH ACUTE)','þ(LATIN SMALL LETTER THORN)','ÿ(LATIN SMALL LETTER Y WITH DIAERESIS)',252 'Œ(LATIN CAPITAL LIGATURE OE)',253 'œ(LATIN SMALL LIGATURE OE)','Ŵ(LATIN CAPITAL LETTER W WITH CIRCUMFLEX)',254 'Ŷ(LATIN CAPITAL LETTER Y WITH CIRCUMFLEX)','ŵ(LATIN SMALL LETTER W WITH CIRCUMFLEX)',255 'ŷ(LATIN SMALL LETTER Y WITH CIRCUMFLEX)','‚(SINGLE LOW-9 QUOTATION MARK)',256 '‛(SINGLE HIGH-REVERSED-9 QUOTATION MARK)','„(DOUBLE LOW-9 QUOTATION MARK)','…(HORIZONTAL ELLIPSIS)',257 '™(TRADE MARK SIGN)','►(BLACK RIGHT-POINTING POINTER)','•(BULLET)',258 '→(RIGHTWARDS ARROW)','⇒(RIGHTWARDS DOUBLE ARROW)','⇔(LEFT RIGHT DOUBLE ARROW)','♦(BLACK DIAMOND SUIT)','≈(ALMOST EQUAL TO)'259 ],260 233 onLoad : function() 261 234 { 262 235 var columns = this.definition.charColumns, 263 chars = this.definition.chars; 236 extraChars = editor.config.extraSpecialChars, 237 chars = editor.config.specialChars.concat( extraChars ? extraChars : [] ); 264 238 265 239 var charsTableLabel = 'specialchar_table_label' + CKEDITOR.tools.getNextNumber(); 266 240 var html = [ '<table role="listbox" aria-labelledby="' + charsTableLabel + '"' + … … 281 255 if ( ( character = chars[ i ] ) ) 282 256 { 283 257 charDesc = ''; 284 character = character.replace( /\((.*?)\)/, function( match, desc ) 285 { 286 charDesc = desc; 287 return ''; 288 } ); 258 259 if ( character instanceof Array ) 260 { 261 charDesc = character[ 1 ]; 262 character = character[ 0 ]; 263 } 264 else 265 { 266 var _tmpName = character.replace( '&', '' ).replace( ';', '' ).replace( '#', '' ); 267 if ( parseInt( _tmpName, 10 ) == _tmpName ) 268 _tmpName = 'sign_' + _tmpName; 289 269 290 // Use character in case description unavailable. 291 charDesc = charDesc || character; 270 // Use character in case description unavailable. 271 charDesc = lang[ _tmpName ] || character; 272 } 292 273 293 274 var charLabelId = 'cke_specialchar_label_' + i + '_' + CKEDITOR.tools.getNextNumber(); 294 275 -
_source/plugins/specialchar/lang/en.js
1 2 CKEDITOR.plugins.setLang( 'specialchar', 'en', 3 { 4 euro: "EURO SIGN", 5 lsquo: "LEFT SINGLE QUOTATION MARK", 6 rsquo: "RIGHT SINGLE QUOTATION MARK", 7 ldquo: "LEFT DOUBLE QUOTATION MARK", 8 rdquo: "RIGHT DOUBLE QUOTATION MARK", 9 ndash: "EN DASH", 10 mdash: "EM DASH", 11 iexcl: "INVERTED EXCLAMATION MARK", 12 cent: "CENT SIGN", 13 pound: "POUND SIGN", 14 curren: "CURRENCY SIGN", 15 yen: "YEN SIGN", 16 brvbar: "BROKEN BAR", 17 sect: "SECTION SIGN", 18 uml: "DIAERESIS", 19 copy: "COPYRIGHT SIGN", 20 ordf: "FEMININE ORDINAL INDICATOR", 21 laquo: "LEFT-POINTING DOUBLE ANGLE QUOTATION MARK", 22 not: "NOT SIGN", 23 reg: "REGISTERED SIGN", 24 macr: "MACRON", 25 deg: "DEGREE SIGN", 26 sup2: "SUPERSCRIPT TWO", 27 sup3: "SUPERSCRIPT THREE", 28 acute: "ACUTE ACCENT", 29 micro: "MICRO SIGN", 30 para: "PILCROW SIGN", 31 middot: "MIDDLE DOT", 32 cedil: "CEDILLA", 33 sup1: "SUPERSCRIPT ONE", 34 ordm: "MASCULINE ORDINAL INDICATOR", 35 frac14: "VULGAR FRACTION ONE QUARTER", 36 frac12: "VULGAR FRACTION ONE HALF", 37 frac34: "VULGAR FRACTION THREE QUARTERS", 38 iquest: "INVERTED QUESTION MARK", 39 agrave: "LATIN SMALL LETTER A WITH GRAVE", 40 aacute: "LATIN SMALL LETTER A WITH ACUTE", 41 acirc: "LATIN SMALL LETTER A WITH CIRCUMFLEX", 42 atilde: "LATIN SMALL LETTER A WITH TILDE", 43 auml: "LATIN SMALL LETTER A WITH DIAERESIS", 44 aring: "LATIN SMALL LETTER A WITH RING ABOVE", 45 aelig: "LATIN SMALL LETTER AE", 46 ccedil: "LATIN SMALL LETTER C WITH CEDILLA", 47 egrave: "LATIN SMALL LETTER E WITH GRAVE", 48 eacute: "LATIN SMALL LETTER E WITH ACUTE", 49 ecirc: "LATIN SMALL LETTER E WITH CIRCUMFLEX", 50 euml: "LATIN SMALL LETTER E WITH DIAERESIS", 51 igrave: "LATIN SMALL LETTER I WITH GRAVE", 52 iacute: "LATIN SMALL LETTER I WITH ACUTE", 53 icirc: "LATIN SMALL LETTER I WITH CIRCUMFLEX", 54 iuml: "LATIN SMALL LETTER I WITH DIAERESIS", 55 eth: "LATIN SMALL LETTER ETH", 56 ntilde: "LATIN SMALL LETTER N WITH TILDE", 57 ograve: "LATIN SMALL LETTER O WITH GRAVE", 58 oacute: "LATIN SMALL LETTER O WITH ACUTE", 59 ocirc: "LATIN SMALL LETTER O WITH CIRCUMFLEX", 60 otilde: "LATIN SMALL LETTER O WITH TILDE", 61 ouml: "LATIN SMALL LETTER O WITH DIAERESIS", 62 times: "MULTIPLICATION SIGN", 63 oslash: "LATIN SMALL LETTER O WITH STROKE", 64 ugrave: "LATIN SMALL LETTER U WITH GRAVE", 65 uacute: "LATIN SMALL LETTER U WITH ACUTE", 66 ucirc: "LATIN SMALL LETTER U WITH CIRCUMFLEX", 67 uuml: "LATIN SMALL LETTER U WITH DIAERESIS", 68 yacute: "LATIN SMALL LETTER Y WITH ACUTE", 69 thorn: "LATIN SMALL LETTER THORN", 70 szlig: "LATIN SMALL LETTER SHARP S", 71 divide: "DIVISION SIGN", 72 yuml: "LATIN SMALL LETTER Y WITH DIAERESIS", 73 oelig: "LATIN SMALL LIGATURE OE", 74 sign_372: "LATIN CAPITAL LETTER W WITH CIRCUMFLEX", 75 sign_374: "LATIN CAPITAL LETTER Y WITH CIRCUMFLEX", 76 sign_373: "LATIN SMALL LETTER W WITH CIRCUMFLEX", 77 sign_375: "LATIN SMALL LETTER Y WITH CIRCUMFLEX", 78 sign_8219: "SINGLE HIGH-REVERSED-9 QUOTATION MARK", 79 bdquo: "DOUBLE LOW-9 QUOTATION MARK", 80 hellip: "HORIZONTAL ELLIPSIS", 81 trade: "TRADE MARK SIGN", 82 sign_9658: "BLACK RIGHT-POINTING POINTER", 83 bull: "BULLET", 84 rarr: "RIGHTWARDS DOUBLE ARROW", 85 harr: "LEFT RIGHT DOUBLE ARROW", 86 diams: "BLACK DIAMOND SUIT", 87 asymp: "ALMOST EQUAL TO" 88 }); 89 No newline at end of file -
_source/core/config.js
327 327 * @example 328 328 * config.baseFloatZIndex = 2000 329 329 */ 330 baseFloatZIndex : 10000 330 baseFloatZIndex : 10000, 331 332 /** 333 * The list of special characters visible in Special Character dialog. 334 * @type Array 335 * @example 336 * config.specialChars = [ '"', '’', [ '&custom;', 'Custom label' ] ]; 337 */ 338 specialChars : 339 [ 340 '!','"','#','$','%','&',"'",'(',')','*','+','-','.','/', 341 '0','1','2','3','4','5','6','7','8','9',':',';', 342 '<','=','>','?','@', 343 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O', 344 'P','Q','R','S','T','U','V','W','X','Y','Z', 345 '[',']','^','_','`', 346 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p', 347 'q','r','s','t','u','v','w','x','y','z', 348 '{','|','}','~', 349 "€", "‘", "’", "“", "”", "–", "—", "¡", "¢", "£", "¤", "¥", "¦", "§", "¨", "©", "ª", "«", "¬", "®", "¯", "°", "&", "²", "³", "´", "µ", "¶", "·", "¸", "¹", "º", "&", "¼", "½", "¾", "¿", "À", "Á", "Â", "Ã", "Ä", "Å", "Æ", "Ç", "È", "É", "Ê", "Ë", "Ì", "Í", "Î", "Ï", "Ð", "Ñ", "Ò", "Ó", "Ô", "Õ", "Ö", "×", "Ø", "Ù", "Ú", "Û", "Ü", "Ý", "Þ", "ß", "à", "á", "â", "ã", "ä", "å", "æ", "ç", "è", "é", "ê", "ë", "ì", "í", "î", "ï", "ð", "ñ", "ò", "ó", "ô", "õ", "ö", "÷", "ø", "ù", "ú", "û", "ü", "ü", "ý", "þ", "ÿ", "Œ", "œ", "Ŵ", "Ŷ", "ŵ", "ŷ", "&", "‛", "„", "…", "™", "►", "•", "→", "⇒", "⇔", "♦", "≈" 350 ], 351 352 // extraSpecialChars : null 353 /** 354 * List of additional special characters. This is a tool setting which 355 * makes it easier to add new characters, whithout having to touch and 356 * possibly breaking the {@link CKEDITOR.config.specialChars} array. 357 * @type Array 358 * @example 359 * config.extraSpecialChars = [ '"', '’', [ '&custom;', 'Custom label' ] ]; 360 */ 361 extraSpecialChars : null 331 362 }; 332 363 333 364 // PACKAGER_RENAME( CKEDITOR.config )