Ticket #2785: 2785_2.patch

File 2785_2.patch, 54.7 KB (added by Artur Formella, 15 years ago)
  • _source/core/config.js

     
    181181         * @example
    182182         * config.basePopupZIndex = 2000
    183183         */
    184         basePopupZIndex : 10000,
     184        basePopupZIndex : 10000
    185185
    186         /**
    187          * The color of the dialog background cover. It should be a valid CSS color string.
    188          * @type String
    189          * @default white
    190          * @example
    191          * config.backgroundCoverColor = 'rgb(255, 254, 253)';
    192          */
    193         backgroundCoverColor : 'white',
    194 
    195         /**
    196          * The opacity of the dialog background cover. It should be a number within the range [0.0, 1.0].
    197          * @type Number
    198          * @default 0.5
    199          * @example
    200          * config.backgroundCoverOpacity = 0.7;
    201          */
    202         backgroundCoverOpacity : 0.5,
    203 
    204         /**
    205          * The distance of magnetic borders used in moving and resizing dialogs, measured in pixels.
    206          * @type Number
    207          * @default 20
    208          * @example
    209          * config.magnetic = 30;
    210          */
    211         magnetDistance : 20,
    212 
    213 
    214         pluginConfig :
    215         {
    216                 image :         //Image Dialog and Image button Dialog.
    217                 {
    218                         /**
    219                          * Show Upload tab.
    220                          * @type Boolean
    221                          * @default true
    222                          */
    223                         uploadTab : true,
    224 
    225                         /**
    226                          * Show Browse Server button.
    227                          * @type Boolean
    228                          * @default true
    229                          */
    230                         browseServer : true,
    231 
    232                         /**
    233                          * Upload action attribute.
    234                          * @type URL
    235                          */
    236                         uploadAction : 'nowhere.php',
    237 
    238                         /**
    239                          * Show Image preview in the Image Dialog.
    240                          * @type Boolean
    241                          * @default true
    242                          */
    243                         showPreview : true,
    244                         showAdvancedTab : true,
    245                         removeLinkByEmptyURL : true,
    246 
    247                         /**
    248                          * Startup values
    249                          * @type Text
    250                          * @default ''
    251                          */
    252                         defaultValues :
    253                         {
    254                                 alt : '',
    255                                 border : '',
    256                                 hSpace : '',
    257                                 vSpace : '',
    258                                 title : '',
    259                                 classes : '',
    260                                 align : '',
    261                                 style : '',
    262                                 langCode : '',
    263                                 langDir : '',
    264 
    265                                 /**
    266                                  * Default Link value.
    267                                  * @type Text
    268                                  * @default ''
    269                                  * @example
    270                                  * link : './show_gallery.html',
    271                                  */
    272                                 link : '',
    273                                 target : ''
    274                         }
    275                 },
    276                 link :
    277                 {
    278                         uploadTab : true,
    279                         browseServer : true,
    280                         uploadAction : 'nowhere.php',
    281                         showAdvancedTab : true,
    282                         showTargetTab : true,
    283                         defaultValues :
    284                         {
    285                                 /**
    286                                  * Startup values
    287                                  * @type Text
    288                                  * @default ''
    289                                  */
    290                                 linkType : 'url',
    291                                 protocol : 'http://',
    292                                 target : 'notSet',
    293                                 targetFrameName : '',
    294                                 title : '',
    295                                 type : '',
    296                                 classes : '',
    297                                 langDir : '',
    298                                 langCode : '',
    299                                 charset : '',
    300                                 style : ''
    301                         }
    302                 },
    303                 forms :
    304                 {
    305                         defaultValues :
    306                         {
    307                                 formAction : '',
    308                                 formEncoding : 'text/plain',
    309                                 formTarget : '',
    310                                 formMethod : 'GET',
    311                                 textfieldWidth : '',
    312                                 textfieldMaxChars : '',
    313                                 textfieldType : 'text',
    314                                 textareaCols : '',
    315                                 textareaRows : '',
    316                                 selectSize : '',
    317                                 buttonType : 'button'
    318                         }
    319                 },
    320                 smiley :
    321                 {
    322                         // TODO: update descriptions, fix coding style.
    323                         /**
    324                          * List of smiley images displayed in the Smiley dialog.
    325                          * @type Array
    326                          * @default ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif']
    327                          * @example
    328                          * config.smileyImages = [ 'tounge.gif', 'smile.gif', 'laugh.gif' ];
    329                          */
    330                         images : [ 'regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif',
    331                         'embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif',
    332                         'devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif',
    333                         'broken_heart.gif','kiss.gif','envelope.gif'],
    334                         descriptions : [ ':)', ':(', ';)', ':D', ':/', ':P',
    335                         '', '', '', '', '', '',
    336                         '', ';(', '', '', '', '',
    337                         ':kiss', '', ],
    338 
    339                         //TODO: update path
    340                         path : CKEDITOR.basePath +  '_source/plugins/smiley/images/',
    341                         windowWidth : 320,
    342                         windowHeight : 210,
    343                         columns : 8
    344                 },
    345                 flash :
    346                 {
    347                         uploadTab : true,
    348                         uploadAction : 'nowhere.php',
    349                         browseServer : true,
    350                         showAdvancedTab : true,
    351                         showPropertiesTab : true,
    352 
    353                         /**
    354                          * Save as EMBED tag only. This tag is unrecommended.
    355                          * @type Boolean
    356                          * @default false
    357                          */
    358                         embedTagOnly : false,
    359 
    360                         /**
    361                          * Add EMBED tag as alternative: <object&gt<embed&gt</embed&gt</object&gt
    362                          * @type Boolean
    363                          * @default false
    364                          */
    365                         addEmbedTag : true,
    366 
    367                         /**
    368                          * Use embedTagOnly and addEmbedTag values on edit.
    369                          * @type Boolean
    370                          * @default false
    371                          */
    372                         convertOnEdit : false,
    373 
    374                         defaultValues :
    375                         {
    376                                 access :        '',
    377                                 width :         '',
    378                                 height :        '',
    379                                 hSpace :        '',
    380                                 vSpace :        '',
    381                                 cssClass :      '',
    382                                 cssStyle :      '',
    383                                 bgcolor :       '',
    384                                 title :         '',
    385                                 loop :          'true',
    386                                 play :          'true',
    387                                 menu :          'true',
    388                                 align :         '',
    389                                 quality :       'high',
    390                                 scale :         '',
    391                                 flashvars :     '',
    392                                 allowfullscreen:'',
    393                                 windowMode :    ''
    394                         }
    395                 },
    396                 table :
    397                 {
    398                         defaultValues :
    399                         {
    400                                 rows :          '3',
    401                                 columns :       '2',
    402                                 border :        '1',
    403                                 align :         '',
    404                                 width :         '200',
    405                                 widthType :     'pixels',
    406                                 height :        '',
    407                                 caption :       '',
    408                                 summary :       '',
    409                                 cellspacing :   '1',
    410                                 cellpadding :   '1'
    411                         }
    412                 },
    413                 newPage :
    414                 {
    415                         confirmation : true,
    416                         resetToStartupContent : false,
    417                         newPageContent : ''
    418                 },
    419                 pagebreak :
    420                 {
    421                         /**
    422                          * Limit of PageBreakes
    423                          * @type Number | Boolean
    424                          * @default 'false'
    425                          * @example
    426                          * // Only 1 PageBreak (2 pages):
    427                          * pageBreakeLimit : 1
    428                          * // Don't limit
    429                          * pageBreakeLimit : false
    430                          */
    431                         pageBreakeLimit : false
    432                 },
    433                 print :
    434                 {
    435                         /**
    436                          * Document to print
    437                          * @type Text
    438                          * @default 'cke'
    439                          * @example
    440                          * document : 'page'
    441                          */
    442                         document : 'cke'
    443                 }
    444         }
    445186};
    446187
    447188// PACKAGER_RENAME( CKEDITOR.config )
  • _source/plugins/dialog/plugin.js

     
    955955                                '<div style="position: ', ( CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed' ),
    956956                                '; z-index: ', editor.config.basePopupZIndex,
    957957                                '; top: 0px; left: 0px; ',
    958                                 'background-color: ', editor.config.backgroundCoverColor,
     958                                'background-color: ', editor.config.dialog.backgroundCoverColor,
    959959                                '" id="cke_dialog_background_cover">'
    960960                        ],
    961961                        win = CKEDITOR.document.getWindow();
     
    10111011                                }, 0 );
    10121012                        scrollFunc();
    10131013                }
    1014                 element.setOpacity( editor.config.backgroundCoverOpacity );
     1014                element.setOpacity( editor.config.dialog.backgroundCoverOpacity );
    10151015                element.appendTo( CKEDITOR.document.getBody() );
    10161016        },
    10171017
     
    10411041                var lastCoords = null,
    10421042                        abstractDialogCoords = null,
    10431043                        element = dialog.getElement().getFirst(),
    1044                         magnetDistance = dialog._.editor.config.magnetDistance,
     1044                        magnetDistance = dialog._.editor.config.dialog.magnetDistance,
    10451045                        mouseMoveHandler = function( evt )
    10461046                        {
    10471047                                var dialogSize = dialog.getSize(),
     
    23122312                }
    23132313        };
    23142314})();
     2315
     2316CKEDITOR.config.dialog =
     2317{
     2318        /**
     2319         * The color of the dialog background cover. It should be a valid CSS color string.
     2320         * @type String
     2321         * @default white
     2322         * @example
     2323         * backgroundCoverColor = 'rgb(255, 254, 253)';
     2324         */
     2325        backgroundCoverColor : 'white',
     2326
     2327        /**
     2328         * The opacity of the dialog background cover. It should be a number within the range [0.0, 1.0].
     2329         * @type Number
     2330         * @default 0.5
     2331         * @example
     2332         * backgroundCoverOpacity = 0.7;
     2333         */
     2334        backgroundCoverOpacity : 0.5,
     2335
     2336        /**
     2337         * The distance of magnetic borders used in moving and resizing dialogs, measured in pixels.
     2338         * @type Number
     2339         * @default 20
     2340         * @example
     2341         * magnetic = 30;
     2342         */
     2343        magnetDistance : 20
     2344};
  • _source/plugins/flash/dialogs/flash.js

     
    274274                minHeight : 400,
    275275                onLoad : function()
    276276                {
    277                         if ( editor.config.pluginConfig.flash.uploadTab == false )
     277                        if ( editor.config.flash.uploadTab == false )
    278278                                this.hidePage( 'Upload' );              //Hide Upload tab.
    279279
    280                         if ( editor.config.pluginConfig.flash.showAdvancedTab == false )
     280                        if ( editor.config.flash.showAdvancedTab == false )
    281281                                this.hidePage( 'advanced' );            //Hide Advanded tab.
    282282
    283                         if ( editor.config.pluginConfig.flash.showPropertiesTab == false )
     283                        if ( editor.config.flash.showPropertiesTab == false )
    284284                                this.hidePage( 'advanced' );            //Hide Proporties tab.
    285285
    286                         if ( editor.config.pluginConfig.flash.browseServer == false )
     286                        if ( editor.config.flash.browseServer == false )
    287287                                this.getContentElement( 'info', 'browse' ).getElement().hide();
    288288
    289                         if ( editor.config.pluginConfig.flash.embedTagOnly )
    290                                 editor.config.pluginConfig.flash.addEmbedTag = true;
     289                        if ( editor.config.flash.embedTagOnly )
     290                                editor.config.flash.addEmbedTag = true;
    291291                },
    292292                onHide : function()
    293293                {
     
    368368                        // Create a new flash.
    369369                        if ( !this.editMode[ 'fakeobject' ] )
    370370                        {
    371                                 if ( editor.config.pluginConfig.flash.embedTagOnly != true  )
     371                                if ( editor.config.flash.embedTagOnly != true  )
    372372                                        this.editObj[ 'object' ] = editor.document.createElement( 'object' );
    373                                 if ( editor.config.pluginConfig.flash.addEmbedTag == true )
     373                                if ( editor.config.flash.addEmbedTag == true )
    374374                                        this.editObj[ 'embed' ] = editor.document.createElement( 'embed' );
    375375                        }
    376376
     
    382382                        this.editObj[ 'embed' ].setAttributes( this.changedAttibutes[ 'EMBED' ] );
    383383
    384384                        // Add PARAMs.
    385                         if ( editor.config.pluginConfig.flash.embedTagOnly != true )
     385                        if ( editor.config.flash.embedTagOnly != true )
    386386                                for ( var name in this.changedAttibutes[ 'PARAM' ] ){
    387387                                        addParam( this.editObj[ 'object' ], name, this.changedAttibutes[ 'PARAM' ][ name ] );
    388388                                }
     
    407407                        if ( this.editMode[ 'fakeobject' ] == false )
    408408                        {
    409409                                // Append EMBED as child.
    410                                 if ( editor.config.pluginConfig.flash.embedTagOnly != true && editor.config.pluginConfig.flash.addEmbedTag )
     410                                if ( editor.config.flash.embedTagOnly != true && editor.config.flash.addEmbedTag )
    411411                                        this.editObj[ 'object' ].append( this.editObj[ 'embed' ] );
    412412
    413                                 if ( editor.config.pluginConfig.flash.embedTagOnly )
     413                                if ( editor.config.flash.embedTagOnly )
    414414                                        this.editObj[ 'fakeobject' ] = CKEDITOR.plugins.fakeobjects.protectElement( this.editObj[ 'embed' ] );
    415415                                else
    416416                                        this.editObj[ 'fakeobject' ] = CKEDITOR.plugins.fakeobjects.protectElement( this.editObj[ 'object' ] );
     
    488488                                                                type : 'text',
    489489                                                                id : 'txtWidth',
    490490                                                                label : editor.lang.flash.width,
    491                                                                 'default' : editor.config.pluginConfig.flash.defaultValues.width,
     491                                                                'default' : editor.config.flash.defaultValues.width,
    492492                                                                onChange : function()
    493493                                                                {
    494494                                                                        onChange( this );
     
    509509                                                                type : 'text',
    510510                                                                id : 'txtHeight',
    511511                                                                label : editor.lang.flash.height,
    512                                                                 'default' : editor.config.pluginConfig.flash.defaultValues.height,
     512                                                                'default' : editor.config.flash.defaultValues.height,
    513513                                                                onChange : function()
    514514                                                                {
    515515                                                                        onChange( this );
     
    530530                                                                type : 'text',
    531531                                                                id : 'txtHSpace',
    532532                                                                label : editor.lang.flash.hSpace,
    533                                                                 'default' : editor.config.pluginConfig.flash.defaultValues.hSpace,
     533                                                                'default' : editor.config.flash.defaultValues.hSpace,
    534534                                                                onChange : function()
    535535                                                                {
    536536                                                                        onChange( this );
     
    551551                                                                type : 'text',
    552552                                                                id : 'txtVSpace',
    553553                                                                label : editor.lang.flash.vSpace,
    554                                                                 'default' : editor.config.pluginConfig.flash.defaultValues.vSpace,
     554                                                                'default' : editor.config.flash.defaultValues.vSpace,
    555555                                                                onChange : function()
    556556                                                                {
    557557                                                                        onChange( this );
     
    593593                                                type : 'file',
    594594                                                id : 'upload',
    595595                                                label : editor.lang.common.upload,
    596                                                 action : editor.config.pluginConfig.image.uploadAction,
     596                                                action : editor.config.image.uploadAction,
    597597                                                size : 38
    598598                                        },
    599599                                        {
     
    618618                                                                id : 'cmbScale',
    619619                                                                type : 'select',
    620620                                                                label : editor.lang.flash.scale,
    621                                                                 'default' : editor.config.pluginConfig.flash.defaultValues.scale,
     621                                                                'default' : editor.config.flash.defaultValues.scale,
    622622                                                                style : 'width : 100%;',
    623623                                                                items :
    624624                                                                [
     
    637637                                                                id : 'cmbAccess',
    638638                                                                type : 'select',
    639639                                                                label : editor.lang.flash.access,
    640                                                                 'default' : editor.config.pluginConfig.flash.defaultValues.access,
     640                                                                'default' : editor.config.flash.defaultValues.access,
    641641                                                                style : 'width : 100%;',
    642642                                                                items :
    643643                                                                [
     
    663663                                                                id : 'cmbWmode',
    664664                                                                type : 'select',
    665665                                                                label : editor.lang.flash.windowMode,
    666                                                                 'default' : editor.config.pluginConfig.flash.defaultValues.windowMode,
     666                                                                'default' : editor.config.flash.defaultValues.windowMode,
    667667                                                                style : 'width : 100%;',
    668668                                                                items :
    669669                                                                [
     
    682682                                                                id : 'cmbQuality',
    683683                                                                type : 'select',
    684684                                                                label : editor.lang.flash.quality,
    685                                                                 'default' : editor.config.pluginConfig.flash.defaultValues.quality,
     685                                                                'default' : editor.config.flash.defaultValues.quality,
    686686                                                                style : 'width : 100%;',
    687687                                                                items :
    688688                                                                [
     
    711711                                                                id : 'cmbAlign',
    712712                                                                type : 'select',
    713713                                                                label : editor.lang.flash.align,
    714                                                                 'default' : editor.config.pluginConfig.flash.defaultValues.align,
     714                                                                'default' : editor.config.flash.defaultValues.align,
    715715                                                                style : 'width : 100%;',
    716716                                                                items :
    717717                                                                [
     
    742742                                                type : 'text',
    743743                                                id : 'txtFlashvars',
    744744                                                label : editor.lang.flash.flashvars,
    745                                                 checked : editor.config.pluginConfig.flash.defaultValues.flashvars,
     745                                                checked : editor.config.flash.defaultValues.flashvars,
    746746                                                validate : function()
    747747                                                {
    748748                                                        addChange( 'flashvars', this, PARAM | EMBED );
     
    753753                                                type : 'checkbox',
    754754                                                id : 'chkMenu',
    755755                                                label : editor.lang.flash.chkMenu,
    756                                                 checked : editor.config.pluginConfig.flash.defaultValues.menu,
     756                                                checked : editor.config.flash.defaultValues.menu,
    757757                                                validate : function()
    758758                                                {
    759759                                                        addChange( 'menu', this, PARAM | EMBED );
     
    764764                                                type : 'checkbox',
    765765                                                id : 'chkPlay',
    766766                                                label : editor.lang.flash.chkPlay,
    767                                                 checked : editor.config.pluginConfig.flash.defaultValues.play,
     767                                                checked : editor.config.flash.defaultValues.play,
    768768                                                validate : function()
    769769                                                {
    770770                                                        addChange( 'play', this, PARAM | EMBED );
     
    775775                                                type : 'checkbox',
    776776                                                id : 'chkLoop',
    777777                                                label : editor.lang.flash.chkLoop,
    778                                                 checked : editor.config.pluginConfig.flash.defaultValues.loop,
     778                                                checked : editor.config.flash.defaultValues.loop,
    779779                                                validate : function()
    780780                                                {
    781781                                                        addChange( 'loop', this, PARAM | EMBED );
     
    786786                                                type : 'checkbox',
    787787                                                id : 'txtChkFull',
    788788                                                label : editor.lang.flash.chkFull,
    789                                                 checked : editor.config.pluginConfig.flash.defaultValues.allowfullscreen,
     789                                                checked : editor.config.flash.defaultValues.allowfullscreen,
    790790                                                validate : function()
    791791                                                {
    792792                                                        addChange( 'allowfullscreen', this, PARAM | EMBED );
     
    819819                                                                type : 'text',
    820820                                                                id : 'txtGenTitle',
    821821                                                                label : editor.lang.common.advisoryTitle,
    822                                                                 'default' : editor.config.pluginConfig.flash.defaultValues.title,
     822                                                                'default' : editor.config.flash.defaultValues.title,
    823823                                                                validate : function()
    824824                                                                {
    825825                                                                        addChange( 'title', this, OBJECT | EMBED );
     
    837837                                                                type : 'text',
    838838                                                                id : 'txtBgcolor',
    839839                                                                label : editor.lang.flash.bgcolor,
    840                                                                 'default' : editor.config.pluginConfig.flash.defaultValues.bgcolor,
     840                                                                'default' : editor.config.flash.defaultValues.bgcolor,
    841841                                                                validate : function()
    842842                                                                {
    843843                                                                        addChange( 'bgcolor', this, PARAM | EMBED );
     
    848848                                                                type : 'text',
    849849                                                                id : 'txtGenClass',
    850850                                                                label : editor.lang.common.cssClass,
    851                                                                 'default' : editor.config.pluginConfig.flash.defaultValues.cssClass,
     851                                                                'default' : editor.config.flash.defaultValues.cssClass,
    852852                                                                validate : function()
    853853                                                                {
    854854                                                                        addChange( 'class', this, OBJECT | EMBED );
     
    861861                                                type : 'text',
    862862                                                id : 'txtGenStyle',
    863863                                                label : editor.lang.common.cssStyle,
    864                                                 'default' : editor.config.pluginConfig.flash.defaultValues.cssStyle,
     864                                                'default' : editor.config.flash.defaultValues.cssStyle,
    865865                                                validate : function()
    866866                                                {
    867867                                                        addChange( 'style', this, OBJECT | EMBED );
  • _source/plugins/flash/plugin.js

     
    1919        },
    2020        requires : [ 'fakeobjects' ]
    2121} );
     22
     23CKEDITOR.config.flash =
     24{
     25        uploadTab : true,
     26        uploadAction : 'nowhere.php',
     27        browseServer : true,
     28        showAdvancedTab : true,
     29        showPropertiesTab : true,
     30
     31        /**
     32         * Save as EMBED tag only. This tag is unrecommended.
     33         * @type Boolean
     34         * @default false
     35         */
     36        embedTagOnly : false,
     37
     38        /**
     39         * Add EMBED tag as alternative: &lt;object&gt&lt;embed&gt&lt;/embed&gt&lt;/object&gt
     40         * @type Boolean
     41         * @default false
     42         */
     43        addEmbedTag : true,
     44
     45        /**
     46         * Use embedTagOnly and addEmbedTag values on edit.
     47         * @type Boolean
     48         * @default false
     49         */
     50        convertOnEdit : false,
     51
     52        defaultValues :
     53        {
     54                access :        '',
     55                width :         '',
     56                height :        '',
     57                hSpace :        '',
     58                vSpace :        '',
     59                cssClass :      '',
     60                cssStyle :      '',
     61                bgcolor :       '',
     62                title :         '',
     63                loop :          'true',
     64                play :          'true',
     65                menu :          'true',
     66                align :         '',
     67                quality :       'high',
     68                scale :         '',
     69                flashvars :     '',
     70                allowfullscreen:'',
     71                windowMode :    ''
     72        }
     73};
  • _source/plugins/forms/dialogs/button.js

     
    120120                                                id : 'txtType',
    121121                                                type : 'select',
    122122                                                label : editor.lang.button.type,
    123                                                 'default' : editor.config.pluginConfig.forms.defaultValues.buttonType,
     123                                                'default' : editor.config.forms.defaultValues.buttonType,
    124124                                                accessKey : 'T',
    125125                                                items :
    126126                                                [
  • _source/plugins/forms/dialogs/form.js

     
    115115                                                id : 'txtAction',
    116116                                                type : 'text',
    117117                                                label : editor.lang.form.action,
    118                                                 'default' : editor.config.pluginConfig.forms.defaultValues.formAction,
     118                                                'default' : editor.config.forms.defaultValues.formAction,
    119119                                                accessKey : 'A',
    120120                                                validate: function()
    121121                                                {
     
    146146                                                                label : editor.lang.form.encoding,
    147147                                                                style : 'width:100%',
    148148                                                                accessKey : 'E',
    149                                                                 'default' : editor.config.pluginConfig.forms.defaultValues.formEncoding,
     149                                                                'default' : editor.config.forms.defaultValues.formEncoding,
    150150                                                                items :
    151151                                                                [
    152152                                                                        [ 'text/plain' ],
     
    172172                                                                label : editor.lang.form.target,
    173173                                                                style : 'width:100%',
    174174                                                                accessKey : 'M',
    175                                                                 'default' : editor.config.pluginConfig.forms.defaultValues.formTarget,
     175                                                                'default' : editor.config.forms.defaultValues.formTarget,
    176176                                                                items :
    177177                                                                [
    178178                                                                        [ editor.lang.form.targetNotSet, '' ],
     
    192192                                                                type : 'select',
    193193                                                                label : editor.lang.form.method,
    194194                                                                accessKey : 'M',
    195                                                                 'default' : editor.config.pluginConfig.forms.defaultValues.formMethod,
     195                                                                'default' : editor.config.forms.defaultValues.formMethod,
    196196                                                                items :
    197197                                                                [
    198198                                                                        [ 'GET', 'get' ],
  • _source/plugins/forms/dialogs/select.js

     
    190190                                                                align : 'center',
    191191                                                                labelLayout : 'horizontal',
    192192                                                                label : editor.lang.select.size,
    193                                                                 'default' : editor.config.pluginConfig.forms.defaultValues.selectSize,
     193                                                                'default' : editor.config.forms.defaultValues.selectSize,
    194194                                                                accessKey : 'S',
    195195                                                                style : 'width:175px',
    196196                                                                validate: function()
  • _source/plugins/forms/dialogs/textarea.js

     
    109109                                                id : 'txtColumns',
    110110                                                type : 'text',
    111111                                                label : editor.lang.textarea.cols,
    112                                                 'default' : editor.config.pluginConfig.forms.defaultValues.textareaCols,
     112                                                'default' : editor.config.forms.defaultValues.textareaCols,
    113113                                                accessKey : 'C',
    114114                                                style : 'width:50px',
    115115                                                validate: function()
     
    125125                                                id : 'txtRows',
    126126                                                type : 'text',
    127127                                                label : editor.lang.textarea.rows,
    128                                                 'default' : editor.config.pluginConfig.forms.defaultValues.textareaRows,
     128                                                'default' : editor.config.forms.defaultValues.textareaRows,
    129129                                                accessKey : 'R',
    130130                                                style : 'width:50px',
    131131                                                validate: function()
  • _source/plugins/forms/dialogs/textfield.js

     
    139139                                                                id : 'txtTextCharWidth',
    140140                                                                type : 'text',
    141141                                                                label : editor.lang.textfield.charWidth,
    142                                                                 'default' : editor.config.pluginConfig.forms.defaultValues.textfieldWidth,
     142                                                                'default' : editor.config.forms.defaultValues.textfieldWidth,
    143143                                                                accessKey : 'C',
    144144                                                                style : 'width:50px',
    145145                                                                validate: function()
     
    155155                                                                id : 'txtMaxChars',
    156156                                                                type : 'text',
    157157                                                                label : editor.lang.textfield.maxChars,
    158                                                                 'default' : editor.config.pluginConfig.forms.defaultValues.textfieldMaxChars,
     158                                                                'default' : editor.config.forms.defaultValues.textfieldMaxChars,
    159159                                                                accessKey : 'M',
    160160                                                                style : 'width:50px',
    161161                                                                validate: function()
     
    173173                                                id : 'cmbType',
    174174                                                type : 'select',
    175175                                                label : editor.lang.textfield.type,
    176                                                 'default' : editor.config.pluginConfig.forms.defaultValues.textfieldType,
     176                                                'default' : editor.config.forms.defaultValues.textfieldType,
    177177                                                accessKey : 'M',
    178178                                                items :
    179179                                                [
  • _source/plugins/forms/plugin.js

     
    231231                }
    232232        }
    233233}
     234
     235CKEDITOR.config.forms =
     236{
     237        defaultValues :
     238        {
     239                formAction : '',
     240                formEncoding : 'text/plain',
     241                formTarget : '',
     242                formMethod : 'GET',
     243                textfieldWidth : '',
     244                textfieldMaxChars : '',
     245                textfieldType : 'text',
     246                textareaCols : '',
     247                textareaRows : '',
     248                selectSize : '',
     249                buttonType : 'button'
     250        }
     251};
  • _source/plugins/image/dialogs/image.js

     
    66imageDialog = function( editor, dialogType )
    77{
    88        // Load image preview.
    9         var showPreview = editor.config.pluginConfig.image.showPreview;
     9        var showPreview = editor.config.image.showPreview;
    1010        var regexSize = /^\s*(\d+)((px)|\%)?\s*$/i;
    1111        var regexValidSize = /^(\d+)\%?$|^$/i;
    1212        var imageDialog = ( dialogType == 'image' );
     
    526526                                        this.editObj[ 'image' ].appendTo( this.editObj[ 'link' ] );
    527527                                }
    528528                                //Remove Link, Image exists.
    529                                 else if ( this.editMode[ 'link' ] == true && !this.changedAttibutes[ 'link' ][ '_cke_saved_href' ] && editor.config.pluginConfig.image.removeLinkByEmptyURL == true )
     529                                else if ( this.editMode[ 'link' ] == true && !this.changedAttibutes[ 'link' ][ '_cke_saved_href' ] && editor.config.image.removeLinkByEmptyURL == true )
    530530                                        this.editObj[ 'link' ].remove( true );
    531531                        }
    532532                        this.allowOnChange = false;             // Don't load onChange before onShow.
     
    626626                        if ( !imageDialog )
    627627                                this.hidePage( 'Link' );                //Hide Link tab.
    628628
    629                         if ( editor.config.pluginConfig.image.uploadTab == false )
     629                        if ( editor.config.image.uploadTab == false )
    630630                                this.hidePage( 'Upload' );              //Hide Upload tab.
    631631
    632                         if ( editor.config.pluginConfig.image.showAdvancedTab == false )
     632                        if ( editor.config.image.showAdvancedTab == false )
    633633                                this.hidePage( 'advanced' );            //Hide Advanded tab.
    634634
    635                         if ( editor.config.pluginConfig.image.browseServer == false )
     635                        if ( editor.config.image.browseServer == false )
    636636                                this.getContentElement( 'info', 'browse' ).getElement().hide();
    637637
    638638                        // Activate Reset button
     
    747747                                                type : 'text',
    748748                                                label : editor.lang.image.alt,
    749749                                                accessKey : 'A',
    750                                                 'default' : editor.config.pluginConfig.image.defaultValues.alt,
     750                                                'default' : editor.config.image.defaultValues.alt,
    751751                                                onChange : function()
    752752                                                {
    753753                                                        onChange( this, 'alt' );
     
    852852                                                                                                id : 'txtBorder',
    853853                                                                                                labelLayout : 'horizontal',
    854854                                                                                                label : editor.lang.image.border,
    855                                                                                                 'default' : editor.config.pluginConfig.image.defaultValues.border,
     855                                                                                                'default' : editor.config.image.defaultValues.border,
    856856                                                                                                onChange : function()
    857857                                                                                                {
    858858                                                                                                        onChange( this, 'border' );
     
    871871                                                                                                id : 'txtHSpace',
    872872                                                                                                labelLayout : 'horizontal',
    873873                                                                                                label : editor.lang.image.hSpace,
    874                                                                                                 'default' : editor.config.pluginConfig.image.defaultValues.hSpace,
     874                                                                                                'default' : editor.config.image.defaultValues.hSpace,
    875875                                                                                                onChange : function()
    876876                                                                                                {
    877877                                                                                                        onChange( this, 'hspace' );
     
    890890                                                                                                id : 'txtVSpace',
    891891                                                                                                labelLayout : 'horizontal',
    892892                                                                                                label : editor.lang.image.vSpace,
    893                                                                                                 'default' : editor.config.pluginConfig.image.defaultValues.vSpace,
     893                                                                                                'default' : editor.config.image.defaultValues.vSpace,
    894894                                                                                                onChange : function()
    895895                                                                                                {
    896896                                                                                                        onChange( this, 'vspace' );
     
    911911                                                                                                widths : [ '35%','65%' ],
    912912                                                                                                style : 'width:100%',
    913913                                                                                                label : editor.lang.image.align,
    914                                                                                                 'default' : editor.config.pluginConfig.image.defaultValues.align,
     914                                                                                                'default' : editor.config.image.defaultValues.align,
    915915                                                                                                items :
    916916                                                                                                [
    917917                                                                                                        [ editor.lang.common.notSet , ''],
     
    966966                                                type : 'text',
    967967                                                label : editor.lang.image.url,
    968968                                                style : 'width: 100%',
    969                                                 'default' : editor.config.pluginConfig.image.defaultValues.link,
     969                                                'default' : editor.config.image.defaultValues.link,
    970970                                                validate: function()
    971971                                                {
    972972                                                        addChange( '_cke_saved_href', this, 'link', function ( )
     
    992992                                                id : 'cmbTarget',
    993993                                                type : 'select',
    994994                                                label : editor.lang.link.target,
    995                                                 'default' : editor.config.pluginConfig.image.defaultValues.target,
     995                                                'default' : editor.config.image.defaultValues.target,
    996996                                                items :
    997997                                                [
    998998                                                        [ editor.lang.link.targetNotSet , ''],
     
    10181018                                                type : 'file',
    10191019                                                id : 'upload',
    10201020                                                label : editor.lang.image.btnUpload,
    1021                                                 action : editor.config.pluginConfig.image.uploadAction,
     1021                                                action : editor.config.image.uploadAction,
    10221022                                                size : 38
    10231023                                        },
    10241024                                        {
     
    10541054                                                                type : 'select',
    10551055                                                                style : 'width : 100%;',
    10561056                                                                label : editor.lang.common.langDir,
    1057                                                                 'default' : editor.config.pluginConfig.image.defaultValues.langDir,
     1057                                                                'default' : editor.config.image.defaultValues.langDir,
    10581058                                                                items :
    10591059                                                                [
    10601060                                                                        [ editor.lang.common.notSet, '' ],
     
    10711071                                                                type : 'text',
    10721072                                                                id : 'txtLangCode',
    10731073                                                                label : editor.lang.common.langCode,
    1074                                                                 'default' : editor.config.pluginConfig.image.defaultValues.langCode,
     1074                                                                'default' : editor.config.image.defaultValues.langCode,
    10751075                                                                validate : function()
    10761076                                                                {
    10771077                                                                        addChange( 'lang', this, 'image' );
     
    10991099                                                                type : 'text',
    11001100                                                                id : 'txtGenClass',
    11011101                                                                label : editor.lang.common.cssClass,
    1102                                                                 'default' : editor.config.pluginConfig.image.defaultValues.classes,
     1102                                                                'default' : editor.config.image.defaultValues.classes,
    11031103                                                                validate : function()
    11041104                                                                {
    11051105                                                                        addChange( 'class', this, 'image' );
     
    11101110                                                                type : 'text',
    11111111                                                                id : 'txtGenTitle',
    11121112                                                                label : editor.lang.common.advisoryTitle,
    1113                                                                 'default' : editor.config.pluginConfig.image.defaultValues.title,
     1113                                                                'default' : editor.config.image.defaultValues.title,
    11141114                                                                onChange : function()
    11151115                                                                {
    11161116                                                                        onChange( this, 'title' );
     
    11271127                                                type : 'text',
    11281128                                                id : 'txtdlgGenStyle',
    11291129                                                label : editor.lang.common.cssStyle,
    1130                                                 'default' : editor.config.pluginConfig.image.defaultValues.style,
     1130                                                'default' : editor.config.image.defaultValues.style,
    11311131                                                validate : function()
    11321132                                                {
    11331133                                                        addChange( 'style', this, 'image' );
  • _source/plugins/image/plugin.js

     
    1818                CKEDITOR.dialog.add( 'image', this.path + 'dialogs/image.js' );
    1919        }
    2020} );
     21
     22//Image Dialog and Image button Dialog.
     23CKEDITOR.config.image =
     24{
     25        /**
     26         * Show Upload tab.
     27         * @type Boolean
     28         * @default true
     29         */
     30        uploadTab : true,
     31
     32        /**
     33         * Show Browse Server button.
     34         * @type Boolean
     35         * @default true
     36         */
     37        browseServer : true,
     38
     39        /**
     40         * Upload action attribute.
     41         * @type URL
     42         */
     43        uploadAction : 'nowhere.php',
     44
     45        /**
     46         * Show Image preview in the Image Dialog.
     47         * @type Boolean
     48         * @default true
     49         */
     50        showPreview : true,
     51        showAdvancedTab : true,
     52        removeLinkByEmptyURL : true,
     53
     54        /**
     55         * Startup values
     56         * @type Text
     57         * @default ''
     58         */
     59        defaultValues :
     60        {
     61                alt : '',
     62                border : '',
     63                hSpace : '',
     64                vSpace : '',
     65                title : '',
     66                classes : '',
     67                align : '',
     68                style : '',
     69                langCode : '',
     70                langDir : '',
     71
     72                /**
     73                 * Default Link value.
     74                 * @type Text
     75                 * @default ''
     76                 * @example
     77                 * link : './show_gallery.html',
     78                 */
     79                link : '',
     80                target : ''
     81        }
     82};
  • _source/plugins/link/dialogs/link.js

     
    3131                        typeValue = this.getValue();
    3232                if ( typeValue == 'url' )
    3333                {
    34                         if ( editor.config.pluginConfig.link.showTargetTab )
     34                        if ( editor.config.link.showTargetTab )
    3535                                dialog.showPage( 'target' );
    36                         if ( editor.config.pluginConfig.link.uploadTab )
     36                        if ( editor.config.link.uploadTab )
    3737                                dialog.showPage( 'upload' );
    3838                }
    3939                else
     
    100100                }
    101101                else
    102102                {
    103                         this.setValueOf( 'info', 'linkType', editor.config.pluginConfig.link.defaultValues.linkType );
    104                         this.setValueOf( 'info', 'protocol', editor.config.pluginConfig.link.defaultValues.protocol );
     103                        this.setValueOf( 'info', 'linkType', editor.config.link.defaultValues.linkType );
     104                        this.setValueOf( 'info', 'protocol', editor.config.link.defaultValues.protocol );
    105105                        this.setValueOf( 'info', 'url', '' );
    106106                }
    107107
     
    183183                                                id : 'linkType',
    184184                                                type : 'select',
    185185                                                label : editor.lang.link.type,
    186                                                 'default' : editor.config.pluginConfig.link.defaultValues.linkType,
     186                                                'default' : editor.config.link.defaultValues.linkType,
    187187                                                items :
    188188                                                [
    189189                                                        [ editor.lang.common.url, 'url' ],
     
    206206                                                                                id : 'protocol',
    207207                                                                                type : 'select',
    208208                                                                                label : editor.lang.common.protocol,
    209                                                                                 'default' : editor.config.pluginConfig.link.defaultValues.protocol,
     209                                                                                'default' : editor.config.link.defaultValues.protocol,
    210210                                                                                style : 'width : 100%;',
    211211                                                                                items :
    212212                                                                                [
     
    342342                                                                type : 'select',
    343343                                                                id : 'linkTargetType',
    344344                                                                label : editor.lang.link.target,
    345                                                                 'default' : editor.config.pluginConfig.link.defaultValues.target,
     345                                                                'default' : editor.config.link.defaultValues.target,
    346346                                                                style : 'width : 100%;',
    347347                                                                'items' :
    348348                                                                [
     
    360360                                                                type : 'text',
    361361                                                                id : 'linkTargetName',
    362362                                                                label : editor.lang.link.targetFrameName,
    363                                                                 'default' : editor.config.pluginConfig.link.defaultValues.targetFrameName
     363                                                                'default' : editor.config.link.defaultValues.targetFrameName
    364364                                                        }
    365365                                                ]
    366366                                        },
     
    494494                                                type : 'file',
    495495                                                id : 'upload',
    496496                                                label : editor.lang.common.upload,
    497                                                 action : editor.config.pluginConfig.link.uploadAction,
     497                                                action : editor.config.link.uploadAction,
    498498                                                size : 38
    499499                                        },
    500500                                        {
     
    530530                                                                                type : 'select',
    531531                                                                                id : 'advLangDir',
    532532                                                                                label : editor.lang.link.langDir,
    533                                                                                 'default' : editor.config.pluginConfig.link.defaultValues.langDir,
     533                                                                                'default' : editor.config.link.defaultValues.langDir,
    534534                                                                                style : 'width: 100%;',
    535535                                                                                items :
    536536                                                                                [
     
    561561                                                                                type : 'text',
    562562                                                                                label : editor.lang.link.langCode,
    563563                                                                                id : 'advLangCode',
    564                                                                                 'default' : editor.config.pluginConfig.link.defaultValues.langCode
     564                                                                                'default' : editor.config.link.defaultValues.langCode
    565565                                                                        },
    566566                                                                        {
    567567                                                                                type : 'text',
     
    586586                                                                        {
    587587                                                                                type : 'text',
    588588                                                                                label : editor.lang.link.advisoryTitle,
    589                                                                                 'default' : editor.config.pluginConfig.link.defaultValues.title,
     589                                                                                'default' : editor.config.link.defaultValues.title,
    590590                                                                                id : 'advTitle'
    591591                                                                        },
    592592                                                                        {
    593593                                                                                type : 'text',
    594594                                                                                label : editor.lang.link.advisoryContentType,
    595                                                                                 'default' : editor.config.pluginConfig.link.defaultValues.type,
     595                                                                                'default' : editor.config.link.defaultValues.type,
    596596                                                                                id : 'advContentType'
    597597                                                                        }
    598598                                                                ]
     
    605605                                                                        {
    606606                                                                                type : 'text',
    607607                                                                                label : editor.lang.link.cssClasses,
    608                                                                                 'default' : editor.config.pluginConfig.link.defaultValues.classes,
     608                                                                                'default' : editor.config.link.defaultValues.classes,
    609609                                                                                id : 'advCSSClasses'
    610610                                                                        },
    611611                                                                        {
    612612                                                                                type : 'text',
    613613                                                                                label : editor.lang.link.charset,
    614                                                                                 'default' : editor.config.pluginConfig.link.defaultValues.charset,
     614                                                                                'default' : editor.config.link.defaultValues.charset,
    615615                                                                                id : 'advCharset'
    616616                                                                        }
    617617                                                                ]
     
    623623                                                                        {
    624624                                                                                type : 'text',
    625625                                                                                label : editor.lang.link.styles,
    626                                                                                 'default' : editor.config.pluginConfig.link.defaultValues.style,
     626                                                                                'default' : editor.config.link.defaultValues.style,
    627627                                                                                id : 'advStyles'
    628628                                                                        }
    629629                                                                ]
     
    847847                },
    848848                onLoad : function()
    849849                {
    850                         if ( editor.config.pluginConfig.link.uploadTab == false )
     850                        if ( editor.config.link.uploadTab == false )
    851851                                this.hidePage( 'upload' );              //Hide Upload tab.
    852852
    853                         if ( editor.config.pluginConfig.link.showAdvancedTab == false )
     853                        if ( editor.config.link.showAdvancedTab == false )
    854854                                this.hidePage( 'advanced' );            //Hide Advanded tab.
    855855
    856                         if ( editor.config.pluginConfig.link.browseServer == false )
     856                        if ( editor.config.link.browseServer == false )
    857857                                this.getContentElement( 'info', 'browse' ).getElement().hide();
    858858
    859                         if ( editor.config.pluginConfig.link.showTargetTab == false )
     859                        if ( editor.config.link.showTargetTab == false )
    860860                                this.hidePage( 'target' );              //Hide Target tab.
    861861
    862862                },
  • _source/plugins/link/plugin.js

     
    8181                selection.selectBookmarks( bookmarks );
    8282        }
    8383};
     84
     85CKEDITOR.config.link =
     86{
     87        uploadTab : true,
     88        browseServer : true,
     89        uploadAction : 'nowhere.php',
     90        showAdvancedTab : true,
     91        showTargetTab : true,
     92        defaultValues :
     93        {
     94                /**
     95                 * Startup values
     96                 * @type Text
     97                 * @default ''
     98                 */
     99                linkType : 'url',
     100                protocol : 'http://',
     101                target : 'notSet',
     102                targetFrameName : '',
     103                title : '',
     104                type : '',
     105                classes : '',
     106                langDir : '',
     107                langCode : '',
     108                charset : '',
     109                style : ''
     110        }
     111};
  • _source/plugins/newpage/plugin.js

     
    1818                                label : editor.lang.newpage,
    1919                                command : 'newpage'
    2020                        });
    21                 if ( editor.config.pluginConfig.newPage.resetToStartupContent )
     21                if ( editor.config.newpage.resetToStartupContent )
    2222                        CKEDITOR.plugins.newpage.newContent = editor.getData();
    2323                else
    24                         CKEDITOR.plugins.newpage.newContent = editor.config.pluginConfig.newPage.newPageContent;
     24                        CKEDITOR.plugins.newpage.newContent = editor.config.newpage.newPageContent;
    2525        }
    2626});
    2727
     
    3030        newContent : '',
    3131        exec : function( editor )
    3232        {
    33                 if ( editor.config.pluginConfig.newPage.confirmation == false || confirm( editor.lang.common.confirmNewPage ) )
     33                if ( editor.config.newpage.confirmation == false || confirm( editor.lang.common.confirmNewPage ) )
    3434                        editor.setData( CKEDITOR.plugins.newpage.newContent );
    3535        }
    3636};
     37
     38CKEDITOR.config.newpage =
     39{
     40        confirmation : true,
     41        resetToStartupContent : false,
     42        newPageContent : ''
     43};
  • _source/plugins/pagebreak/plugin.js

     
    5050        exec : function( editor )
    5151        {
    5252                var element = CKEDITOR.plugins.pagebreak.pageBreakObject( editor, true );
    53                 if ( editor.config.pluginConfig.pagebreak.pageBreakeLimit !== false)
    54                         CKEDITOR.plugins.pagebreak.removeOldBreaks( editor, editor.config.pluginConfig.pagebreak.pageBreakeLimit -1 );
     53                if ( editor.config.pagebreak.pageBreakeLimit !== false)
     54                        CKEDITOR.plugins.pagebreak.removeOldBreaks( editor, editor.config.pagebreak.pageBreakeLimit -1 );
    5555                editor.insertElement( element );
    5656        }
    5757};
     58
     59CKEDITOR.config.pagebreak =
     60{
     61        /**
     62         * Limit of PageBreakes
     63         * @type Number | Boolean
     64         * @default 'false'
     65         * @example
     66         * // Only 1 PageBreak (2 pages):
     67         * pageBreakeLimit : 1
     68         * // Don't limit
     69         * pageBreakeLimit : false
     70         */
     71        pageBreakeLimit : false
     72};
  • _source/plugins/print/plugin.js

     
    3535
    3636        exec : function( editor )
    3737        {
    38                 if (editor.config.print == 'page' )
     38                if ( editor.config.print == 'page' )
    3939                        CKEDITOR.plugins.print.printPage( editor );
    4040                else
    4141                        CKEDITOR.plugins.print.printCKEDocument( editor );
    4242        }
    4343};
     44
     45CKEDITOR.config.print =
     46{
     47        /**
     48         * Document to print
     49         * @type Text
     50         * @default 'cke'
     51         * @example
     52         * document : 'page'
     53         */
     54        document : 'cke'
     55};
  • _source/plugins/smiley/dialogs/smiley.js

     
    3232                style : 'width: 100%; height: 100%; border-collapse: separate;'
    3333        },
    3434                html = [ '<table cellspacing="2" cellpadding="2" border="0"><tbody>' ],
    35                 cellWidth = parseInt( 100 / editor.config.pluginConfig.smiley.columns ) + '%',
    36                 images = editor.config.pluginConfig.smiley.images,
    37                 columns = editor.config.pluginConfig.smiley.columns,
     35                cellWidth = parseInt( 100 / editor.config.smiley.columns ) + '%',
     36                images = editor.config.smiley.images,
     37                columns = editor.config.smiley.columns,
    3838                i;
    3939
    4040        for ( i = 0 ; i < images.length ; i++ )
    4141        {
    42                 if ( i % editor.config.pluginConfig.smiley.columns == 0 )
     42                if ( i % editor.config.smiley.columns == 0 )
    4343                        html.push( '<tr>' );
    4444
    4545                html.push( '<td class="dark_background hand centered" style="vertical-align: middle;"><img border="0" title="'+
    46                 editor.config.pluginConfig.smiley.descriptions[i] +'" src="' +
    47                                 CKEDITOR.tools.htmlEncode( editor.config.pluginConfig.smiley.path + images[i] ) + '" ' +
     46                editor.config.smiley.descriptions[i] +'" src="' +
     47                                CKEDITOR.tools.htmlEncode( editor.config.smiley.path + images[i] ) + '" ' +
    4848                                // IE BUG: Below is a workaround to an IE image loading bug to ensure the image sizes are correct.
    4949                                ( CKEDITOR.env.ie ? 'onload="this.setAttribute(\'width\', 2); this.removeAttribute(\'width\');" ' : '' ) +
    5050                                'class="hand" /></td>' );
     
    6565
    6666        return {
    6767                title : editor.lang.smiley.title,
    68                 minWidth : editor.config.pluginConfig.smiley.windowWidth,
    69                 minHeight : editor.config.pluginConfig.smiley.windowHeight,
     68                minWidth : editor.config.smiley.windowWidth,
     69                minHeight : editor.config.smiley.windowHeight,
    7070                contents : [
    7171                        {
    7272                                id : 'tab1',
  • _source/plugins/smiley/plugin.js

     
    1818
    1919        lang : [ 'en' ]
    2020} );
     21
     22CKEDITOR.config.smiley =
     23{
     24        // TODO: update descriptions, fix coding style.
     25        /**
     26         * List of smiley images displayed in the Smiley dialog.
     27         * @type Array
     28         * @default ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif']
     29         * @example
     30         * config.smileyImages = [ 'tounge.gif', 'smile.gif', 'laugh.gif' ];
     31         */
     32        images : [ 'regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif',
     33        'embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif',
     34        'devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif',
     35        'broken_heart.gif','kiss.gif','envelope.gif'],
     36        descriptions : [ ':)', ':(', ';)', ':D', ':/', ':P', '', '', '', '', '', '', '', ';(', '', '', '', '', ':kiss', '', ],
     37
     38        //TODO: update path
     39        path : CKEDITOR.basePath +  '_source/plugins/smiley/images/',
     40        windowWidth : 320,
     41        windowHeight : 210,
     42        columns : 8
     43};
  • _source/plugins/specialchar/dialogs/specialchar.js

     
    77{
    88        return {
    99                title : editor.lang.specialChar.title,
    10                 minWidth : 450,
    11                 minHeight : 350,
     10                minWidth : editor.config.specialchar.dialogWidth,
     11                minHeight : editor.config.specialchar.dialogHeight,
    1212                buttons : [ CKEDITOR.dialog.cancelButton ],
    1313                onLoad :  function()
    1414                {
     
    1616                        html.push( '<table style="width: 320px; height: 100%; border-collapse: separate;" align="center" cellspacing="2" cellpadding="2" border="0">' );
    1717                        html.push( '<tbody>' );
    1818
    19                         var cols = 17 ;
    2019                        var i = 0 ;
    2120
    22                         while ( i < specialChars.length)
     21                        while ( i < editor.config.specialchar.characters.length )
    2322                        {
    2423                                html.push("<tr>") ;
    25                                 for( var j = 0 ; j < cols ; j++)
     24                                for( var j = 0 ; j < editor.config.specialchar.columns ; j++)
    2625                                {
    27                                         if (specialChars[i])
     26                                        if (editor.config.specialchar.characters[i])
    2827                                        {
    29                                                 html.push('<td width="1%" title=' + specialChars[i].replace(/&/g, "&amp;") + ' value="' + specialChars[i].replace(/&/g, "&amp;") + '" class="DarkBackground SpecialCharsOut Hand">');
    30                                                 html.push(specialChars[i]);
     28                                                html.push('<td width="1%" title=' + editor.config.specialchar.characters[i].replace(/&/g, "&amp;") + ' value="' + editor.config.specialchar.characters[i].replace(/&/g, "&amp;") + '" class="DarkBackground editor.config.charactersOut Hand">');
     29                                                html.push(editor.config.specialchar.characters[i]);
    3130                                        }
    3231                                        else
    3332                                                html.push("<td class='DarkBackground'>&nbsp;");
  • _source/plugins/specialchar/plugin.js

     
    77 * @file Special Character plugin
    88 */
    99
    10 var specialChars =
    11 [
    12         "!","&quot;","#","$","%","&amp;","\\'","(",")","*","+","-",".","/",
    13         "0","1","2","3","4","5","6","7","8","9",":",";",
    14         "&lt;","=","&gt;","?","@",
    15         "A","B","C","D","E","F","G","H","I","J","K","L","M","N","O",
    16         "P","Q","R","S","T","U","V","W","X","Y","Z",
    17         "[","]","^","_","`",
    18         "a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p",
    19         "q","r","s","t","u","v","w","x","y","z",
    20         "{","|","}","~","&euro;","&lsquo;","&rsquo;","&rsquo;","&ldquo;",
    21         "&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;",
    22         "&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;",
    23         "&laquo;","&not;","&reg;","&macr;","&deg;","&plusmn;","&sup2;",
    24         "&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;",
    25         "&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;",
    26         "&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;",
    27         "&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;",
    28         "&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;",
    29         "&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;",
    30         "&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;",
    31         "&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;",
    32         "&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;",
    33         "&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;",
    34         "&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;",
    35         "&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;",
    36         "&ucirc;","&uuml;","&uuml;","&yacute;","&thorn;","&yuml;",
    37         "&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;",
    38         "&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;",
    39         "&rarr;","&rArr;","&hArr;","&diams;","&asymp;"
    40 ];
    41 
    4210CKEDITOR.plugins.add( 'specialchar',
    4311{
    4412        init : function( editor, pluginPath )
     
    5220                CKEDITOR.dialog.add( 'specialchar', this.path + 'dialogs/specialchar.js' );
    5321        }
    5422} );
     23
     24CKEDITOR.config.specialchar =
     25{
     26        columns : 17,
     27        dialogWidth : 450,
     28        dialogHeight : 350,
     29        characters :
     30        [
     31                "!","&quot;","#","$","%","&amp;","\\'","(",")","*","+","-",".","/",
     32                "0","1","2","3","4","5","6","7","8","9",":",";",
     33                "&lt;","=","&gt;","?","@",
     34                "A","B","C","D","E","F","G","H","I","J","K","L","M","N","O",
     35                "P","Q","R","S","T","U","V","W","X","Y","Z",
     36                "[","]","^","_","`",
     37                "a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p",
     38                "q","r","s","t","u","v","w","x","y","z",
     39                "{","|","}","~","&euro;","&lsquo;","&rsquo;","&rsquo;","&ldquo;",
     40                "&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;",
     41                "&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;",
     42                "&laquo;","&not;","&reg;","&macr;","&deg;","&plusmn;","&sup2;",
     43                "&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;",
     44                "&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;",
     45                "&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;",
     46                "&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;",
     47                "&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;",
     48                "&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;",
     49                "&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;",
     50                "&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;",
     51                "&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;",
     52                "&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;",
     53                "&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;",
     54                "&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;",
     55                "&ucirc;","&uuml;","&uuml;","&yacute;","&thorn;","&yuml;",
     56                "&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;",
     57                "&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;",
     58                "&rarr;","&rArr;","&hArr;","&diams;","&asymp;"
     59        ]
     60};
  • _source/plugins/table/dialogs/table.js

     
    177177                                                                                labelLayout : 'horizontal',
    178178                                                                                widths : [ '60%','40%' ],
    179179                                                                                style : 'width:105px',
    180                                                                                 'default' : editor.config.pluginConfig.table.defaultValues.rows,
     180                                                                                'default' : editor.config.table.defaultValues.rows,
    181181                                                                                label : editor.lang.table.rows,
    182182                                                                                validate: function( ) {
    183183                                                                                        if ( this.getValue() != '' )
     
    197197                                                                                labelLayout : 'horizontal',
    198198                                                                                widths : [ '60%','40%' ],
    199199                                                                                style : 'width:105px',
    200                                                                                 'default' : editor.config.pluginConfig.table.defaultValues.columns,
     200                                                                                'default' : editor.config.table.defaultValues.columns,
    201201                                                                                label : editor.lang.table.columns,
    202202                                                                                validate: function( ) {
    203203                                                                                        if ( this.getValue() != '' )
     
    217217                                                                                labelLayout : 'horizontal',
    218218                                                                                widths : [ '60%','40%' ],
    219219                                                                                style : 'width:105px',
    220                                                                                 'default' : editor.config.pluginConfig.table.defaultValues.border,
     220                                                                                'default' : editor.config.table.defaultValues.border,
    221221                                                                                label : editor.lang.table.border,
    222222                                                                                validate: function( ) {
    223223                                                                                        if ( this.getValue() != '' )
     
    235235                                                                                id : 'cmbAlign',
    236236                                                                                type : 'select',
    237237                                                                                labelLayout : 'horizontal',
    238                                                                                 'default' : editor.config.pluginConfig.table.defaultValues.align,
     238                                                                                'default' : editor.config.table.defaultValues.align,
    239239                                                                                widths : [ '40%','60%' ],
    240240                                                                                label : editor.lang.table.align,
    241241                                                                                items :
     
    270270                                                                                                labelLayout : 'horizontal',
    271271                                                                                                widths : [ '50%','50%' ],
    272272                                                                                                label : editor.lang.table.width,
    273                                                                                                 'default' : editor.config.pluginConfig.table.defaultValues.width,
     273                                                                                                'default' : editor.config.table.defaultValues.width,
    274274                                                                                                validate: function( ) {
    275275                                                                                                        if ( this.getValue() != '' )
    276276                                                                                                        {
     
    289289                                                                                                labelLayout : 'horizontal',
    290290                                                                                                widths : [ '0%','100%' ],
    291291                                                                                                label : '',
    292                                                                                                 'default' : editor.config.pluginConfig.table.defaultValues.widthType,
     292                                                                                                'default' : editor.config.table.defaultValues.widthType,
    293293                                                                                                items :
    294294                                                                                                [
    295295                                                                                                        [ editor.lang.table.widthPx , 'pixels'],
     
    309309                                                                                                labelLayout : 'horizontal',
    310310                                                                                                widths : [ '50%','50%' ],
    311311                                                                                                label : editor.lang.table.height,
    312                                                                                                 'default' : editor.config.pluginConfig.table.defaultValues.height,
     312                                                                                                'default' : editor.config.table.defaultValues.height,
    313313                                                                                                validate: function( ) {
    314314                                                                                                        if ( this.getValue() != '' )
    315315                                                                                                        {
     
    335335                                                                                widths : [ '50%','50%' ],
    336336                                                                                style : 'width:140px',
    337337                                                                                label : editor.lang.table.cellSpace,
    338                                                                                 'default' : editor.config.pluginConfig.table.defaultValues.cellspacing,
     338                                                                                'default' : editor.config.table.defaultValues.cellspacing,
    339339                                                                                validate: function( ) {
    340340                                                                                        if ( this.getValue() != '' )
    341341                                                                                        {
     
    355355                                                                                widths : [ '50%','50%' ],
    356356                                                                                style : 'width:140px',
    357357                                                                                label : editor.lang.table.cellPad,
    358                                                                                 'default' : editor.config.pluginConfig.table.defaultValues.cellpadding,
     358                                                                                'default' : editor.config.table.defaultValues.cellpadding,
    359359                                                                                validate: function( ) {
    360360                                                                                        if ( this.getValue() != '' )
    361361                                                                                        {
     
    383383                                                label : editor.lang.table.caption,
    384384                                                widths : [ '30%','70%' ],
    385385                                                labelLayout : 'horizontal',
    386                                                 'default' : editor.config.pluginConfig.table.defaultValues.caption,
     386                                                'default' : editor.config.table.defaultValues.caption,
    387387                                                style : 'width:400px'
    388388                                        },
    389389                                        {
     
    391391                                                type : 'text',
    392392                                                labelLayout : 'horizontal',
    393393                                                label : editor.lang.table.summary,
    394                                                 'default' : editor.config.pluginConfig.table.defaultValues.summary,
     394                                                'default' : editor.config.table.defaultValues.summary,
    395395                                                widths : [ '30%','70%' ],
    396396                                                accessKey : 'A',
    397397                                                style : 'width:400px'
  • _source/plugins/table/plugin.js

     
    1818                CKEDITOR.dialog.add( 'table', this.path + 'dialogs/table.js' );
    1919        }
    2020} );
     21
     22CKEDITOR.config.table =
     23{
     24        defaultValues :
     25        {
     26                rows :          '3',
     27                columns :       '2',
     28                border :        '1',
     29                align :         '',
     30                width :         '200',
     31                widthType :     'pixels',
     32                height :        '',
     33                caption :       '',
     34                summary :       '',
     35                cellspacing :   '1',
     36                cellpadding :   '1'
     37        }
     38};
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy