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