Annotation of loncom/html/adm/ckeditor/loncapaconfig.js, revision 1.3

1.3     ! damieng     1: /**
        !             2:  * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
        !             3:  * For licensing, see LICENSE.md or http://ckeditor.com/license
        !             4:  */
1.2       raeburn     5: 
1.3     ! damieng     6: CKEDITOR.editorConfig = function( config ) {
        !             7:     // Define changes to default configuration here.
        !             8:     // For complete reference see:
        !             9:     // http://docs.ckeditor.com/#!/api/CKEDITOR.config
        !            10: 
        !            11:     // The toolbar groups arrangement, optimized for two toolbar rows.
        !            12:     config.toolbarGroups = [
        !            13:         { name: 'edits',   groups: [ 'undo' ] },
        !            14:         { name: 'clipboard',   groups: [ 'clipboard' ] },
        !            15:         { name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },
        !            16:         { name: 'links' },
        !            17:         { name: 'insert' },
        !            18:         { name: 'forms' },
        !            19:         { name: 'tools' },
        !            20:         { name: 'document',       groups: [ 'mode', 'document', 'doctools' ] },
        !            21:         { name: 'others' },
        !            22:         { name: 'about' },
        !            23:         '/',
        !            24:         { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
        !            25:         { name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
        !            26:         { name: 'styles' },
        !            27:         { name: 'colors' }
        !            28:     ];
        !            29:     
        !            30:     // config.disableNativeSpellChecker = false;
        !            31:     // to see the native spellchecker, we need to disable the contextual menu:
        !            32:     // config.removePlugins = 'contextmenu,tabletools'; // problem: it removes the table tools !
        !            33:     // see http://dev.ckeditor.com/ticket/12716
        !            34:     
        !            35:     config.removePlugins = 'sourcearea';
        !            36:     
        !            37:     // Remove some buttons provided by the standard plugins, which are
        !            38:     // not needed in the Standard(s) toolbar.
        !            39:     // config.removeButtons = 'spellchecker';
        !            40:     // NOTE: we might want to disable spell checking to avoid the ads (if only we could use the native spellcheckers)
        !            41: 
        !            42:     // Set the most common block elements.
        !            43:     config.format_tags = 'p;h1;h2;h3;pre';
        !            44: 
        !            45:     // Simplify the dialog windows.
        !            46:     config.removeDialogTabs = 'image:advanced;link:advanced';
        !            47:     
        !            48:     
        !            49:     config.allowedContent = true;
        !            50:     config.extraPlugins = 'lcm';
        !            51:     
        !            52:     config.specialChars = [
        !            53:         /* upercase greek */
        !            54:             ["\u0393", "Gamma"], ["\u0394", "Delta"], ["\u0398", "Theta"], ["\u039B", "Lamda"],
        !            55:             ["\u039E", "Xi"], ["\u03A0", "Pi"], ["\u03A3", "Sigma"], ["\u03A5", "Upsilon"],
        !            56:             ["\u03A6", "Phi"], ["\u03A7", "Chi"], ["\u03A8", "Psi"], ["\u03A9", "Omega"],
        !            57:             "", "", "", "", "",
        !            58:         /* lowercase greek */
        !            59:             ["\u03B1", "alpha"], ["\u03B2", "beta"], ["\u03B3", "gamma"], ["\u03B4", "delta"],
        !            60:             ["\u03B5", "epsilon"], ["\u03B6", "zeta"], ["\u03B7", "eta"], ["\u03B8", "theta"],
        !            61:             ["\u03B9", "iota"], ["\u03BA", "kappa"], ["\u03BB", "lambda"], ["\u03BC", "mu"],
        !            62:             ["\u03BD", "nu"], ["\u03BE", "xi"], ["\u03BF", "omicron"], ["\u03C0", "pi"],
        !            63:             ["\u03C1", "rho"], ["\u03C2", "final sigma"], ["\u03C3", "sigma"],
        !            64:             ["\u03C4", "tau"], ["\u03C5", "upsilon"], ["\u03C6", "phi"], ["\u03C7", "chi"],
        !            65:             ["\u03C8", "psi"], ["\u03C9", "omega"],
        !            66:             "", 
        !            67:         /* greek symbols */
        !            68:             ["\u03D1", "theta symbol"], ["\u03D5", "phi symbol"], ["\u03D6", "pi symbol"],
        !            69:             "", "", "", "", "",
        !            70:         /* maths */
        !            71:             ["\u00AC", "not"], ["\u00B1", "plus-minus"], ["\u00D7", "multiplication"], ["\u2113", "script l"],
        !            72:             ["\u2102", "double-struck C"], ["\u2115", "double-struck N"], ["\u211A", "double-struck Q"],
        !            73:             ["\u211D", "double-struck R"], ["\u2124", "double-struck Z"], ["\u212B", "Angstrom"],
        !            74:             ["\u2190", "leftwards arrow"], ["\u2192", "rightwards arrow"], ["\u2194", "left right arrow"],
        !            75:             ["\u21D0", "leftwards double arrow"], ["\u21D2", "rightwards double arrow"],
        !            76:             ["\u21D4", "left right double arrow"],
        !            77:             ["\u2200", "for all"], ["\u2202", "partial differential"], ["\u2203", "there exists"],
        !            78:             ["\u2205", "empty set"], ["\u2207", "nabla"], ["\u2208", "element of"],
        !            79:             ["\u2209", "not an element of"], ["\u2211", "n-ary summation"], ["\u221D", "proportional to"],
        !            80:             ["\u221E", "infinity"], ["\u2227", "logical and"], ["\u2228", "logical or"],
        !            81:             ["\u2229", "intersection"], ["\u222A", "union"], ["\u222B", "integral"],
        !            82:             ["\u223C", "tilde operator"], ["\u2248", "almost equal to"], ["\u2260", "not equal to"],
        !            83:             ["\u2261", "identical to"], ["\u2264", "less-than or equal to"],
        !            84:             ["\u2265", "greater-than or equal to"], ["\u2282", "subset of"],
        !            85:             "", "", "", "", "", "", "", "", "", "", "", "", "",
        !            86:         /* cursive uppercase */
        !            87:             ["\uD835\uDC9C", "script A"], ["\u212C", "script B"], ["\uD835\uDC9E", "script C"],
        !            88:             ["\uD835\uDC9F", "script D"], ["\u2130", "script E"], ["\u2131", "script F"],
        !            89:             ["\uD835\uDCA2", "script G"], ["\u210B", "script H"], ["\u2110", "script I"],
        !            90:             ["\uD835\uDCA5", "script J"], ["\uD835\uDCA6", "script K"], ["\u2112", "script L"],
        !            91:             ["\u2133", "script M"], ["\uD835\uDCA9", "script N"], ["\uD835\uDCAA", "script O"],
        !            92:             ["\uD835\uDCAB", "script P"], ["\uD835\uDCAC", "script Q"], ["\u211B", "script R"],
        !            93:             ["\uD835\uDCAE", "script S"], ["\uD835\uDCAF", "script T"], ["\uD835\uDCB0", "script U"],
        !            94:             ["\uD835\uDCB1", "script V"], ["\uD835\uDCB2", "script W"], ["\uD835\uDCB3", "script X"],
        !            95:             ["\uD835\uDCB4", "script Y"], ["\uD835\uDCB5", "script Z"]
        !            96:         ];
        !            97:     
        !            98: 
        !            99:     config.smiley_path = '/adm/lonIcons/';
        !           100:     
        !           101:     config.smiley_descriptions = [
        !           102:         'happy', 'sad', 'wink', 'big smile', 'uncertain', 'raspberry',
        !           103:         'embarrassed', 'cool', 'glasses', 'plain', 'surprised', 'angry',
        !           104:         'crying', 'quiet', 'uncertain', 'kiss', 'sick', 'heart',
        !           105:         'rose', 'pizza', 'ninja', 'pirate', 'agree', 
        !           106:         'disagree', 'angel'
        !           107:     ];
1.1       faziophi  108:     
                    109:     config.smiley_images = [
1.3     ! damieng   110:         'face-smile.png','face-sad.png','face-wink.png','face-smile-big.png','face-uncertain.png','face-raspberry.png',
        !           111:         'face-embarrassed.png','face-cool.png','face-glasses.png','face-plain.png','face-surprise.png','face-angry.png',
        !           112:         'face-crying.png','face-quiet.png','face-uncertain.png','face-kiss.png','face-sick.png','heart.png',
        !           113:         'rose.png','food-pizza.png','face-ninja.png', 'face-pirate.png', 'opinion-agree.png',
        !           114:         'opinion-disagree.png', 'face-angel.png'
        !           115:     ];
        !           116:     
        !           117: };

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>