2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.html or http://ckeditor.com/license
7 * @file Special Character plugin
10 CKEDITOR
.plugins
.add( 'specialchar',
12 // List of available localizations.
13 availableLangs
: { en
:1 },
15 init : function( editor
)
17 var pluginName
= 'specialchar',
20 // Register the dialog.
21 CKEDITOR
.dialog
.add( pluginName
, this.path
+ 'dialogs/specialchar.js' );
23 editor
.addCommand( pluginName
,
27 var langCode
= editor
.langCode
;
28 langCode
= plugin
.availableLangs
[ langCode
] ? langCode
: 'en';
30 CKEDITOR
.scriptLoader
.load(
31 CKEDITOR
.getUrl( plugin
.path
+ 'lang/' + langCode
+ '.js' ),
34 CKEDITOR
.tools
.extend( editor
.lang
.specialChar
, plugin
.langEntries
[ langCode
] );
35 editor
.openDialog( pluginName
);
38 modes
: { wysiwyg
:1 },
42 // Register the toolbar button.
43 editor
.ui
.addButton( 'SpecialChar',
45 label
: editor
.lang
.specialChar
.toolbar
,
52 * The list of special characters visible in Special Character dialog.
55 * config.specialChars = [ '"', '’', [ '&custom;', 'Custom label' ] ];
56 * config.specialChars = config.specialChars.concat( [ '"', [ '’', 'Custom label' ] ] );
58 CKEDITOR
.config
.specialChars
=
60 '!','"','#','$','%','&',"'",'(',')','*','+','-','.','/',
61 '0','1','2','3','4','5','6','7','8','9',':',';',
62 '<','=','>','?','@',
63 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O',
64 'P','Q','R','S','T','U','V','W','X','Y','Z',
66 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p',
67 'q','r','s','t','u','v','w','x','y','z',
69 "€", "‘", "’", "“", "”", "–", "—", "¡", "¢", "£", "¤", "¥", "¦", "§", "¨", "©", "ª", "«", "¬", "®", "¯", "°", "&", "²", "³", "´", "µ", "¶", "·", "¸", "¹", "º", "&", "¼", "½", "¾", "¿", "À", "Á", "Â", "Ã", "Ä", "Å", "Æ", "Ç", "È", "É", "Ê", "Ë", "Ì", "Í", "Î", "Ï", "Ð", "Ñ", "Ò", "Ó", "Ô", "Õ", "Ö", "×", "Ø", "Ù", "Ú", "Û", "Ü", "Ý", "Þ", "ß", "à", "á", "â", "ã", "ä", "å", "æ", "ç", "è", "é", "ê", "ë", "ì", "í", "î", "ï", "ð", "ñ", "ò", "ó", "ô", "õ", "ö", "÷", "ø", "ù", "ú", "û", "ü", "ü", "ý", "þ", "ÿ", "Œ", "œ", "Ŵ", "Ŷ", "ŵ", "ŷ", "‚", "‛", "„", "…", "™", "►", "•", "→", "⇒", "⇔", "♦", "≈"