Ticket #2792: 2792.patch

File 2792.patch, 24.0 KB (added by Artur Formella, 16 years ago)
  • _source/plugins/flash/dialogs/flash.js

     
    488488                                                                type : 'text',
    489489                                                                id : 'txtWidth',
    490490                                                                label : editor.lang.flash.width,
    491                                                                 'default' : editor.config.flash.defaultValues.width,
     491                                                                'default' : '',
    492492                                                                onChange : function()
    493493                                                                {
    494494                                                                        onChange( this );
     
    509509                                                                type : 'text',
    510510                                                                id : 'txtHeight',
    511511                                                                label : editor.lang.flash.height,
    512                                                                 'default' : editor.config.flash.defaultValues.height,
     512                                                                'default' : '',
    513513                                                                onChange : function()
    514514                                                                {
    515515                                                                        onChange( this );
     
    530530                                                                type : 'text',
    531531                                                                id : 'txtHSpace',
    532532                                                                label : editor.lang.flash.hSpace,
    533                                                                 'default' : editor.config.flash.defaultValues.hSpace,
     533                                                                'default' : '',
    534534                                                                onChange : function()
    535535                                                                {
    536536                                                                        onChange( this );
     
    551551                                                                type : 'text',
    552552                                                                id : 'txtVSpace',
    553553                                                                label : editor.lang.flash.vSpace,
    554                                                                 'default' : editor.config.flash.defaultValues.vSpace,
     554                                                                'default' : '',
    555555                                                                onChange : function()
    556556                                                                {
    557557                                                                        onChange( this );
     
    618618                                                                id : 'cmbScale',
    619619                                                                type : 'select',
    620620                                                                label : editor.lang.flash.scale,
    621                                                                 'default' : editor.config.flash.defaultValues.scale,
     621                                                                'default' : '',
    622622                                                                style : 'width : 100%;',
    623623                                                                items :
    624624                                                                [
     
    637637                                                                id : 'cmbAccess',
    638638                                                                type : 'select',
    639639                                                                label : editor.lang.flash.access,
    640                                                                 'default' : editor.config.flash.defaultValues.access,
     640                                                                'default' : '',
    641641                                                                style : 'width : 100%;',
    642642                                                                items :
    643643                                                                [
     
    663663                                                                id : 'cmbWmode',
    664664                                                                type : 'select',
    665665                                                                label : editor.lang.flash.windowMode,
    666                                                                 'default' : editor.config.flash.defaultValues.windowMode,
     666                                                                'default' : '',
    667667                                                                style : 'width : 100%;',
    668668                                                                items :
    669669                                                                [
     
    682682                                                                id : 'cmbQuality',
    683683                                                                type : 'select',
    684684                                                                label : editor.lang.flash.quality,
    685                                                                 'default' : editor.config.flash.defaultValues.quality,
     685                                                                'default' : 'high',
    686686                                                                style : 'width : 100%;',
    687687                                                                items :
    688688                                                                [
     
    711711                                                                id : 'cmbAlign',
    712712                                                                type : 'select',
    713713                                                                label : editor.lang.flash.align,
    714                                                                 'default' : editor.config.flash.defaultValues.align,
     714                                                                'default' : '',
    715715                                                                style : 'width : 100%;',
    716716                                                                items :
    717717                                                                [
     
    742742                                                type : 'text',
    743743                                                id : 'txtFlashvars',
    744744                                                label : editor.lang.flash.flashvars,
    745                                                 checked : editor.config.flash.defaultValues.flashvars,
     745                                                checked : 'true',
    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.flash.defaultValues.menu,
     756                                                checked : 'true',
    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.flash.defaultValues.play,
     767                                                checked : 'true',
    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.flash.defaultValues.loop,
     778                                                checked : 'true',
    779779                                                validate : function()
    780780                                                {
    781781                                                        addChange( 'loop', this, PARAM | EMBED );
     
    785785                                        {
    786786                                                type : 'checkbox',
    787787                                                id : 'txtChkFull',
    788                                                 label : editor.lang.flash.chkFull,
    789                                                 checked : editor.config.flash.defaultValues.allowfullscreen,
     788-                                               label : editor.lang.flash.chkFull,
     789                                                checked : 'true',
    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.flash.defaultValues.title,
     822                                                                'default' : '',
    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.flash.defaultValues.bgcolor,
     840                                                                'default' : '',
    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.flash.defaultValues.cssClass,
     851                                                                'default' : '',
    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.flash.defaultValues.cssStyle,
     864                                                'default' : '',
    865865                                                validate : function()
    866866                                                {
    867867                                                        addChange( 'style', this, OBJECT | EMBED );
  • _source/plugins/flash/plugin.js

     
    4747         * @type Boolean
    4848         * @default false
    4949         */
    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         }
     50        convertOnEdit : false
    7351};
  • _source/plugins/forms/dialogs/button.js

     
    120120                                                id : 'txtType',
    121121                                                type : 'select',
    122122                                                label : editor.lang.button.type,
    123                                                 'default' : editor.config.forms.defaultValues.buttonType,
     123                                                'default' : 'button',
    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.forms.defaultValues.formAction,
     118                                                'default' : '',
    119119                                                accessKey : 'A',
    120120                                                validate: function()
    121121                                                {
     
    146146                                                                label : editor.lang.form.encoding,
    147147                                                                style : 'width:100%',
    148148                                                                accessKey : 'E',
    149                                                                 'default' : editor.config.forms.defaultValues.formEncoding,
     149                                                                'default' : 'text/plain',
    150150                                                                items :
    151151                                                                [
    152152                                                                        [ 'text/plain' ],
     
    172172                                                                label : editor.lang.form.target,
    173173                                                                style : 'width:100%',
    174174                                                                accessKey : 'M',
    175                                                                 'default' : editor.config.forms.defaultValues.formTarget,
     175                                                                'default' : '',
    176176                                                                items :
    177177                                                                [
    178178                                                                        [ editor.lang.form.targetNotSet, '' ],
     
    192192                                                                type : 'select',
    193193                                                                label : editor.lang.form.method,
    194194                                                                accessKey : 'M',
    195                                                                 'default' : editor.config.forms.defaultValues.formMethod,
     195                                                                'default' : 'GET',
    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.forms.defaultValues.selectSize,
     193                                                                'default' : '',
    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.forms.defaultValues.textareaCols,
     112                                                'default' : '',
    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.forms.defaultValues.textareaRows,
     128                                                'default' : '',
    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.forms.defaultValues.textfieldWidth,
     142                                                                'default' : '',
    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.forms.defaultValues.textfieldMaxChars,
     158                                                                'default' : '',
    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.forms.defaultValues.textfieldType,
     176                                                'default' : '',
    177177                                                accessKey : 'M',
    178178                                                items :
    179179                                                [
  • _source/plugins/forms/plugin.js

     
    231231                }
    232232        }
    233233}
    234 
    235 CKEDITOR.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

     
    747747                                                type : 'text',
    748748                                                label : editor.lang.image.alt,
    749749                                                accessKey : 'A',
    750                                                 'default' : editor.config.image.defaultValues.alt,
     750                                                'default' : '',
    751751                                                onChange : function()
    752752                                                {
    753753                                                        onChange( this, 'alt' );
     
    852852                                                                                                id : 'txtBorder',
    853853                                                                                                labelLayout : 'horizontal',
    854854                                                                                                label : editor.lang.image.border,
    855                                                                                                 'default' : editor.config.image.defaultValues.border,
     855                                                                                                'default' : '',
    856856                                                                                                onChange : function()
    857857                                                                                                {
    858858                                                                                                        onChange( this, 'border' );
     
    871871                                                                                                id : 'txtHSpace',
    872872                                                                                                labelLayout : 'horizontal',
    873873                                                                                                label : editor.lang.image.hSpace,
    874                                                                                                 'default' : editor.config.image.defaultValues.hSpace,
     874                                                                                                'default' : '',
    875875                                                                                                onChange : function()
    876876                                                                                                {
    877877                                                                                                        onChange( this, 'hspace' );
     
    890890                                                                                                id : 'txtVSpace',
    891891                                                                                                labelLayout : 'horizontal',
    892892                                                                                                label : editor.lang.image.vSpace,
    893                                                                                                 'default' : editor.config.image.defaultValues.vSpace,
     893                                                                                                'default' : '',
    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.image.defaultValues.align,
     914                                                                                                'default' : '',
    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.image.defaultValues.link,
     969                                                'default' : '',
    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.image.defaultValues.target,
     995                                                'default' : '',
    996996                                                items :
    997997                                                [
    998998                                                        [ editor.lang.link.targetNotSet , ''],
     
    10541054                                                                type : 'select',
    10551055                                                                style : 'width : 100%;',
    10561056                                                                label : editor.lang.common.langDir,
    1057                                                                 'default' : editor.config.image.defaultValues.langDir,
     1057                                                                'default' : '',
    10581058                                                                items :
    10591059                                                                [
    10601060                                                                        [ editor.lang.common.notSet, '' ],
     
    10711071                                                                type : 'text',
    10721072                                                                id : 'txtLangCode',
    10731073                                                                label : editor.lang.common.langCode,
    1074                                                                 'default' : editor.config.image.defaultValues.langCode,
     1074                                                                'default' : '',
    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.image.defaultValues.classes,
     1102                                                                'default' : '',
    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.image.defaultValues.title,
     1113                                                                'default' : '',
    11141114                                                                onChange : function()
    11151115                                                                {
    11161116                                                                        onChange( this, 'title' );
     
    11271127                                                type : 'text',
    11281128                                                id : 'txtdlgGenStyle',
    11291129                                                label : editor.lang.common.cssStyle,
    1130                                                 'default' : editor.config.image.defaultValues.style,
     1130                                                'default' : '',
    11311131                                                validate : function()
    11321132                                                {
    11331133                                                        addChange( 'style', this, 'image' );
  • _source/plugins/image/plugin.js

     
    4949         */
    5050        showPreview : true,
    5151        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         }
     52        removeLinkByEmptyURL : true
    8253};
  • _source/plugins/link/dialogs/link.js

     
    100100                }
    101101                else
    102102                {
    103                         this.setValueOf( 'info', 'linkType', editor.config.link.defaultValues.linkType );
    104                         this.setValueOf( 'info', 'protocol', editor.config.link.defaultValues.protocol );
     103                        this.setValueOf( 'info', 'linkType', '' );
     104                        this.setValueOf( 'info', 'protocol', '' );
    105105                        this.setValueOf( 'info', 'url', '' );
    106106                }
    107107
     
    183183                                                id : 'linkType',
    184184                                                type : 'select',
    185185                                                label : editor.lang.link.type,
    186                                                 'default' : editor.config.link.defaultValues.linkType,
     186                                                'default' : 'url',
    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.link.defaultValues.protocol,
     209                                                                                'default' : 'http://',
    210210                                                                                style : 'width : 100%;',
    211211                                                                                items :
    212212                                                                                [
     
    342342                                                                type : 'select',
    343343                                                                id : 'linkTargetType',
    344344                                                                label : editor.lang.link.target,
    345                                                                 'default' : editor.config.link.defaultValues.target,
     345                                                                'default' : 'notSet',
    346346                                                                style : 'width : 100%;',
    347347                                                                'items' :
    348348                                                                [
     
    360360                                                                type : 'text',
    361361                                                                id : 'linkTargetName',
    362362                                                                label : editor.lang.link.targetFrameName,
    363                                                                 'default' : editor.config.link.defaultValues.targetFrameName
     363                                                                'default' : ''
    364364                                                        }
    365365                                                ]
    366366                                        },
     
    530530                                                                                type : 'select',
    531531                                                                                id : 'advLangDir',
    532532                                                                                label : editor.lang.link.langDir,
    533                                                                                 'default' : editor.config.link.defaultValues.langDir,
     533                                                                                'default' : '',
    534534                                                                                style : 'width: 100%;',
    535535                                                                                items :
    536536                                                                                [
     
    561561                                                                                type : 'text',
    562562                                                                                label : editor.lang.link.langCode,
    563563                                                                                id : 'advLangCode',
    564                                                                                 'default' : editor.config.link.defaultValues.langCode
     564                                                                                'default' : ''
    565565                                                                        },
    566566                                                                        {
    567567                                                                                type : 'text',
     
    586586                                                                        {
    587587                                                                                type : 'text',
    588588                                                                                label : editor.lang.link.advisoryTitle,
    589                                                                                 'default' : editor.config.link.defaultValues.title,
     589                                                                                'default' : '',
    590590                                                                                id : 'advTitle'
    591591                                                                        },
    592592                                                                        {
    593593                                                                                type : 'text',
    594594                                                                                label : editor.lang.link.advisoryContentType,
    595                                                                                 'default' : editor.config.link.defaultValues.type,
     595                                                                                'default' : '',
    596596                                                                                id : 'advContentType'
    597597                                                                        }
    598598                                                                ]
     
    605605                                                                        {
    606606                                                                                type : 'text',
    607607                                                                                label : editor.lang.link.cssClasses,
    608                                                                                 'default' : editor.config.link.defaultValues.classes,
     608                                                                                'default' : '',
    609609                                                                                id : 'advCSSClasses'
    610610                                                                        },
    611611                                                                        {
    612612                                                                                type : 'text',
    613613                                                                                label : editor.lang.link.charset,
    614                                                                                 'default' : editor.config.link.defaultValues.charset,
     614                                                                                'default' : '',
    615615                                                                                id : 'advCharset'
    616616                                                                        }
    617617                                                                ]
     
    623623                                                                        {
    624624                                                                                type : 'text',
    625625                                                                                label : editor.lang.link.styles,
    626                                                                                 'default' : editor.config.link.defaultValues.style,
     626                                                                                'default' : '',
    627627                                                                                id : 'advStyles'
    628628                                                                        }
    629629                                                                ]
  • _source/plugins/link/plugin.js

     
    8888        browseServer : true,
    8989        uploadAction : 'nowhere.php',
    9090        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         }
     91        showTargetTab : true
    11192};
  • _source/plugins/table/dialogs/table.js

     
    177177                                                                                labelLayout : 'horizontal',
    178178                                                                                widths : [ '60%','40%' ],
    179179                                                                                style : 'width:105px',
    180                                                                                 'default' : editor.config.table.defaultValues.rows,
     180                                                                                'default' : 3,
    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.table.defaultValues.columns,
     200                                                                                'default' : 2,
    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.table.defaultValues.border,
     220                                                                                'default' : 1,
    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.table.defaultValues.align,
     238                                                                                'default' : '',
    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.table.defaultValues.width,
     273                                                                                                'default' : 200,
    274274                                                                                                validate: function( ) {
    275275                                                                                                        if ( this.getValue() != '' )
    276276                                                                                                        {
     
    289289                                                                                                labelLayout : 'horizontal',
    290290                                                                                                widths : [ '0%','100%' ],
    291291                                                                                                label : '',
    292                                                                                                 'default' : editor.config.table.defaultValues.widthType,
     292                                                                                                'default' : 'pixels',
    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.table.defaultValues.height,
     312                                                                                                'default' : '',
    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.table.defaultValues.cellspacing,
     338                                                                                'default' : 1,
    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.table.defaultValues.cellpadding,
     358                                                                                'default' : 1,
    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.table.defaultValues.caption,
     386                                                'default' : '',
    387387                                                style : 'width:400px'
    388388                                        },
    389389                                        {
     
    391391                                                type : 'text',
    392392                                                labelLayout : 'horizontal',
    393393                                                label : editor.lang.table.summary,
    394                                                 'default' : editor.config.table.defaultValues.summary,
     394                                                'default' : '',
    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 
    22 CKEDITOR.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