Ticket #2792: 2792.patch
File 2792.patch, 24.0 KB (added by , 16 years ago) |
---|
-
_source/plugins/flash/dialogs/flash.js
488 488 type : 'text', 489 489 id : 'txtWidth', 490 490 label : editor.lang.flash.width, 491 'default' : editor.config.flash.defaultValues.width,491 'default' : '', 492 492 onChange : function() 493 493 { 494 494 onChange( this ); … … 509 509 type : 'text', 510 510 id : 'txtHeight', 511 511 label : editor.lang.flash.height, 512 'default' : editor.config.flash.defaultValues.height,512 'default' : '', 513 513 onChange : function() 514 514 { 515 515 onChange( this ); … … 530 530 type : 'text', 531 531 id : 'txtHSpace', 532 532 label : editor.lang.flash.hSpace, 533 'default' : editor.config.flash.defaultValues.hSpace,533 'default' : '', 534 534 onChange : function() 535 535 { 536 536 onChange( this ); … … 551 551 type : 'text', 552 552 id : 'txtVSpace', 553 553 label : editor.lang.flash.vSpace, 554 'default' : editor.config.flash.defaultValues.vSpace,554 'default' : '', 555 555 onChange : function() 556 556 { 557 557 onChange( this ); … … 618 618 id : 'cmbScale', 619 619 type : 'select', 620 620 label : editor.lang.flash.scale, 621 'default' : editor.config.flash.defaultValues.scale,621 'default' : '', 622 622 style : 'width : 100%;', 623 623 items : 624 624 [ … … 637 637 id : 'cmbAccess', 638 638 type : 'select', 639 639 label : editor.lang.flash.access, 640 'default' : editor.config.flash.defaultValues.access,640 'default' : '', 641 641 style : 'width : 100%;', 642 642 items : 643 643 [ … … 663 663 id : 'cmbWmode', 664 664 type : 'select', 665 665 label : editor.lang.flash.windowMode, 666 'default' : editor.config.flash.defaultValues.windowMode,666 'default' : '', 667 667 style : 'width : 100%;', 668 668 items : 669 669 [ … … 682 682 id : 'cmbQuality', 683 683 type : 'select', 684 684 label : editor.lang.flash.quality, 685 'default' : editor.config.flash.defaultValues.quality,685 'default' : 'high', 686 686 style : 'width : 100%;', 687 687 items : 688 688 [ … … 711 711 id : 'cmbAlign', 712 712 type : 'select', 713 713 label : editor.lang.flash.align, 714 'default' : editor.config.flash.defaultValues.align,714 'default' : '', 715 715 style : 'width : 100%;', 716 716 items : 717 717 [ … … 742 742 type : 'text', 743 743 id : 'txtFlashvars', 744 744 label : editor.lang.flash.flashvars, 745 checked : editor.config.flash.defaultValues.flashvars,745 checked : 'true', 746 746 validate : function() 747 747 { 748 748 addChange( 'flashvars', this, PARAM | EMBED ); … … 753 753 type : 'checkbox', 754 754 id : 'chkMenu', 755 755 label : editor.lang.flash.chkMenu, 756 checked : editor.config.flash.defaultValues.menu,756 checked : 'true', 757 757 validate : function() 758 758 { 759 759 addChange( 'menu', this, PARAM | EMBED ); … … 764 764 type : 'checkbox', 765 765 id : 'chkPlay', 766 766 label : editor.lang.flash.chkPlay, 767 checked : editor.config.flash.defaultValues.play,767 checked : 'true', 768 768 validate : function() 769 769 { 770 770 addChange( 'play', this, PARAM | EMBED ); … … 775 775 type : 'checkbox', 776 776 id : 'chkLoop', 777 777 label : editor.lang.flash.chkLoop, 778 checked : editor.config.flash.defaultValues.loop,778 checked : 'true', 779 779 validate : function() 780 780 { 781 781 addChange( 'loop', this, PARAM | EMBED ); … … 785 785 { 786 786 type : 'checkbox', 787 787 id : 'txtChkFull', 788 label : editor.lang.flash.chkFull,789 checked : editor.config.flash.defaultValues.allowfullscreen,788 - label : editor.lang.flash.chkFull, 789 checked : 'true', 790 790 validate : function() 791 791 { 792 792 addChange( 'allowfullscreen', this, PARAM | EMBED ); … … 819 819 type : 'text', 820 820 id : 'txtGenTitle', 821 821 label : editor.lang.common.advisoryTitle, 822 'default' : editor.config.flash.defaultValues.title,822 'default' : '', 823 823 validate : function() 824 824 { 825 825 addChange( 'title', this, OBJECT | EMBED ); … … 837 837 type : 'text', 838 838 id : 'txtBgcolor', 839 839 label : editor.lang.flash.bgcolor, 840 'default' : editor.config.flash.defaultValues.bgcolor,840 'default' : '', 841 841 validate : function() 842 842 { 843 843 addChange( 'bgcolor', this, PARAM | EMBED ); … … 848 848 type : 'text', 849 849 id : 'txtGenClass', 850 850 label : editor.lang.common.cssClass, 851 'default' : editor.config.flash.defaultValues.cssClass,851 'default' : '', 852 852 validate : function() 853 853 { 854 854 addChange( 'class', this, OBJECT | EMBED ); … … 861 861 type : 'text', 862 862 id : 'txtGenStyle', 863 863 label : editor.lang.common.cssStyle, 864 'default' : editor.config.flash.defaultValues.cssStyle,864 'default' : '', 865 865 validate : function() 866 866 { 867 867 addChange( 'style', this, OBJECT | EMBED ); -
_source/plugins/flash/plugin.js
47 47 * @type Boolean 48 48 * @default false 49 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 } 50 convertOnEdit : false 73 51 }; -
_source/plugins/forms/dialogs/button.js
120 120 id : 'txtType', 121 121 type : 'select', 122 122 label : editor.lang.button.type, 123 'default' : editor.config.forms.defaultValues.buttonType,123 'default' : 'button', 124 124 accessKey : 'T', 125 125 items : 126 126 [ -
_source/plugins/forms/dialogs/form.js
115 115 id : 'txtAction', 116 116 type : 'text', 117 117 label : editor.lang.form.action, 118 'default' : editor.config.forms.defaultValues.formAction,118 'default' : '', 119 119 accessKey : 'A', 120 120 validate: function() 121 121 { … … 146 146 label : editor.lang.form.encoding, 147 147 style : 'width:100%', 148 148 accessKey : 'E', 149 'default' : editor.config.forms.defaultValues.formEncoding,149 'default' : 'text/plain', 150 150 items : 151 151 [ 152 152 [ 'text/plain' ], … … 172 172 label : editor.lang.form.target, 173 173 style : 'width:100%', 174 174 accessKey : 'M', 175 'default' : editor.config.forms.defaultValues.formTarget,175 'default' : '', 176 176 items : 177 177 [ 178 178 [ editor.lang.form.targetNotSet, '' ], … … 192 192 type : 'select', 193 193 label : editor.lang.form.method, 194 194 accessKey : 'M', 195 'default' : editor.config.forms.defaultValues.formMethod,195 'default' : 'GET', 196 196 items : 197 197 [ 198 198 [ 'GET', 'get' ], -
_source/plugins/forms/dialogs/select.js
190 190 align : 'center', 191 191 labelLayout : 'horizontal', 192 192 label : editor.lang.select.size, 193 'default' : editor.config.forms.defaultValues.selectSize,193 'default' : '', 194 194 accessKey : 'S', 195 195 style : 'width:175px', 196 196 validate: function() -
_source/plugins/forms/dialogs/textarea.js
109 109 id : 'txtColumns', 110 110 type : 'text', 111 111 label : editor.lang.textarea.cols, 112 'default' : editor.config.forms.defaultValues.textareaCols,112 'default' : '', 113 113 accessKey : 'C', 114 114 style : 'width:50px', 115 115 validate: function() … … 125 125 id : 'txtRows', 126 126 type : 'text', 127 127 label : editor.lang.textarea.rows, 128 'default' : editor.config.forms.defaultValues.textareaRows,128 'default' : '', 129 129 accessKey : 'R', 130 130 style : 'width:50px', 131 131 validate: function() -
_source/plugins/forms/dialogs/textfield.js
139 139 id : 'txtTextCharWidth', 140 140 type : 'text', 141 141 label : editor.lang.textfield.charWidth, 142 'default' : editor.config.forms.defaultValues.textfieldWidth,142 'default' : '', 143 143 accessKey : 'C', 144 144 style : 'width:50px', 145 145 validate: function() … … 155 155 id : 'txtMaxChars', 156 156 type : 'text', 157 157 label : editor.lang.textfield.maxChars, 158 'default' : editor.config.forms.defaultValues.textfieldMaxChars,158 'default' : '', 159 159 accessKey : 'M', 160 160 style : 'width:50px', 161 161 validate: function() … … 173 173 id : 'cmbType', 174 174 type : 'select', 175 175 label : editor.lang.textfield.type, 176 'default' : editor.config.forms.defaultValues.textfieldType,176 'default' : '', 177 177 accessKey : 'M', 178 178 items : 179 179 [ -
_source/plugins/forms/plugin.js
231 231 } 232 232 } 233 233 } 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
747 747 type : 'text', 748 748 label : editor.lang.image.alt, 749 749 accessKey : 'A', 750 'default' : editor.config.image.defaultValues.alt,750 'default' : '', 751 751 onChange : function() 752 752 { 753 753 onChange( this, 'alt' ); … … 852 852 id : 'txtBorder', 853 853 labelLayout : 'horizontal', 854 854 label : editor.lang.image.border, 855 'default' : editor.config.image.defaultValues.border,855 'default' : '', 856 856 onChange : function() 857 857 { 858 858 onChange( this, 'border' ); … … 871 871 id : 'txtHSpace', 872 872 labelLayout : 'horizontal', 873 873 label : editor.lang.image.hSpace, 874 'default' : editor.config.image.defaultValues.hSpace,874 'default' : '', 875 875 onChange : function() 876 876 { 877 877 onChange( this, 'hspace' ); … … 890 890 id : 'txtVSpace', 891 891 labelLayout : 'horizontal', 892 892 label : editor.lang.image.vSpace, 893 'default' : editor.config.image.defaultValues.vSpace,893 'default' : '', 894 894 onChange : function() 895 895 { 896 896 onChange( this, 'vspace' ); … … 911 911 widths : [ '35%','65%' ], 912 912 style : 'width:100%', 913 913 label : editor.lang.image.align, 914 'default' : editor.config.image.defaultValues.align,914 'default' : '', 915 915 items : 916 916 [ 917 917 [ editor.lang.common.notSet , ''], … … 966 966 type : 'text', 967 967 label : editor.lang.image.url, 968 968 style : 'width: 100%', 969 'default' : editor.config.image.defaultValues.link,969 'default' : '', 970 970 validate: function() 971 971 { 972 972 addChange( '_cke_saved_href', this, 'link', function ( ) … … 992 992 id : 'cmbTarget', 993 993 type : 'select', 994 994 label : editor.lang.link.target, 995 'default' : editor.config.image.defaultValues.target,995 'default' : '', 996 996 items : 997 997 [ 998 998 [ editor.lang.link.targetNotSet , ''], … … 1054 1054 type : 'select', 1055 1055 style : 'width : 100%;', 1056 1056 label : editor.lang.common.langDir, 1057 'default' : editor.config.image.defaultValues.langDir,1057 'default' : '', 1058 1058 items : 1059 1059 [ 1060 1060 [ editor.lang.common.notSet, '' ], … … 1071 1071 type : 'text', 1072 1072 id : 'txtLangCode', 1073 1073 label : editor.lang.common.langCode, 1074 'default' : editor.config.image.defaultValues.langCode,1074 'default' : '', 1075 1075 validate : function() 1076 1076 { 1077 1077 addChange( 'lang', this, 'image' ); … … 1099 1099 type : 'text', 1100 1100 id : 'txtGenClass', 1101 1101 label : editor.lang.common.cssClass, 1102 'default' : editor.config.image.defaultValues.classes,1102 'default' : '', 1103 1103 validate : function() 1104 1104 { 1105 1105 addChange( 'class', this, 'image' ); … … 1110 1110 type : 'text', 1111 1111 id : 'txtGenTitle', 1112 1112 label : editor.lang.common.advisoryTitle, 1113 'default' : editor.config.image.defaultValues.title,1113 'default' : '', 1114 1114 onChange : function() 1115 1115 { 1116 1116 onChange( this, 'title' ); … … 1127 1127 type : 'text', 1128 1128 id : 'txtdlgGenStyle', 1129 1129 label : editor.lang.common.cssStyle, 1130 'default' : editor.config.image.defaultValues.style,1130 'default' : '', 1131 1131 validate : function() 1132 1132 { 1133 1133 addChange( 'style', this, 'image' ); -
_source/plugins/image/plugin.js
49 49 */ 50 50 showPreview : true, 51 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 } 52 removeLinkByEmptyURL : true 82 53 }; -
_source/plugins/link/dialogs/link.js
100 100 } 101 101 else 102 102 { 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', '' ); 105 105 this.setValueOf( 'info', 'url', '' ); 106 106 } 107 107 … … 183 183 id : 'linkType', 184 184 type : 'select', 185 185 label : editor.lang.link.type, 186 'default' : editor.config.link.defaultValues.linkType,186 'default' : 'url', 187 187 items : 188 188 [ 189 189 [ editor.lang.common.url, 'url' ], … … 206 206 id : 'protocol', 207 207 type : 'select', 208 208 label : editor.lang.common.protocol, 209 'default' : editor.config.link.defaultValues.protocol,209 'default' : 'http://', 210 210 style : 'width : 100%;', 211 211 items : 212 212 [ … … 342 342 type : 'select', 343 343 id : 'linkTargetType', 344 344 label : editor.lang.link.target, 345 'default' : editor.config.link.defaultValues.target,345 'default' : 'notSet', 346 346 style : 'width : 100%;', 347 347 'items' : 348 348 [ … … 360 360 type : 'text', 361 361 id : 'linkTargetName', 362 362 label : editor.lang.link.targetFrameName, 363 'default' : editor.config.link.defaultValues.targetFrameName363 'default' : '' 364 364 } 365 365 ] 366 366 }, … … 530 530 type : 'select', 531 531 id : 'advLangDir', 532 532 label : editor.lang.link.langDir, 533 'default' : editor.config.link.defaultValues.langDir,533 'default' : '', 534 534 style : 'width: 100%;', 535 535 items : 536 536 [ … … 561 561 type : 'text', 562 562 label : editor.lang.link.langCode, 563 563 id : 'advLangCode', 564 'default' : editor.config.link.defaultValues.langCode564 'default' : '' 565 565 }, 566 566 { 567 567 type : 'text', … … 586 586 { 587 587 type : 'text', 588 588 label : editor.lang.link.advisoryTitle, 589 'default' : editor.config.link.defaultValues.title,589 'default' : '', 590 590 id : 'advTitle' 591 591 }, 592 592 { 593 593 type : 'text', 594 594 label : editor.lang.link.advisoryContentType, 595 'default' : editor.config.link.defaultValues.type,595 'default' : '', 596 596 id : 'advContentType' 597 597 } 598 598 ] … … 605 605 { 606 606 type : 'text', 607 607 label : editor.lang.link.cssClasses, 608 'default' : editor.config.link.defaultValues.classes,608 'default' : '', 609 609 id : 'advCSSClasses' 610 610 }, 611 611 { 612 612 type : 'text', 613 613 label : editor.lang.link.charset, 614 'default' : editor.config.link.defaultValues.charset,614 'default' : '', 615 615 id : 'advCharset' 616 616 } 617 617 ] … … 623 623 { 624 624 type : 'text', 625 625 label : editor.lang.link.styles, 626 'default' : editor.config.link.defaultValues.style,626 'default' : '', 627 627 id : 'advStyles' 628 628 } 629 629 ] -
_source/plugins/link/plugin.js
88 88 browseServer : true, 89 89 uploadAction : 'nowhere.php', 90 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 } 91 showTargetTab : true 111 92 }; -
_source/plugins/table/dialogs/table.js
177 177 labelLayout : 'horizontal', 178 178 widths : [ '60%','40%' ], 179 179 style : 'width:105px', 180 'default' : editor.config.table.defaultValues.rows,180 'default' : 3, 181 181 label : editor.lang.table.rows, 182 182 validate: function( ) { 183 183 if ( this.getValue() != '' ) … … 197 197 labelLayout : 'horizontal', 198 198 widths : [ '60%','40%' ], 199 199 style : 'width:105px', 200 'default' : editor.config.table.defaultValues.columns,200 'default' : 2, 201 201 label : editor.lang.table.columns, 202 202 validate: function( ) { 203 203 if ( this.getValue() != '' ) … … 217 217 labelLayout : 'horizontal', 218 218 widths : [ '60%','40%' ], 219 219 style : 'width:105px', 220 'default' : editor.config.table.defaultValues.border,220 'default' : 1, 221 221 label : editor.lang.table.border, 222 222 validate: function( ) { 223 223 if ( this.getValue() != '' ) … … 235 235 id : 'cmbAlign', 236 236 type : 'select', 237 237 labelLayout : 'horizontal', 238 'default' : editor.config.table.defaultValues.align,238 'default' : '', 239 239 widths : [ '40%','60%' ], 240 240 label : editor.lang.table.align, 241 241 items : … … 270 270 labelLayout : 'horizontal', 271 271 widths : [ '50%','50%' ], 272 272 label : editor.lang.table.width, 273 'default' : editor.config.table.defaultValues.width,273 'default' : 200, 274 274 validate: function( ) { 275 275 if ( this.getValue() != '' ) 276 276 { … … 289 289 labelLayout : 'horizontal', 290 290 widths : [ '0%','100%' ], 291 291 label : '', 292 'default' : editor.config.table.defaultValues.widthType,292 'default' : 'pixels', 293 293 items : 294 294 [ 295 295 [ editor.lang.table.widthPx , 'pixels'], … … 309 309 labelLayout : 'horizontal', 310 310 widths : [ '50%','50%' ], 311 311 label : editor.lang.table.height, 312 'default' : editor.config.table.defaultValues.height,312 'default' : '', 313 313 validate: function( ) { 314 314 if ( this.getValue() != '' ) 315 315 { … … 335 335 widths : [ '50%','50%' ], 336 336 style : 'width:140px', 337 337 label : editor.lang.table.cellSpace, 338 'default' : editor.config.table.defaultValues.cellspacing,338 'default' : 1, 339 339 validate: function( ) { 340 340 if ( this.getValue() != '' ) 341 341 { … … 355 355 widths : [ '50%','50%' ], 356 356 style : 'width:140px', 357 357 label : editor.lang.table.cellPad, 358 'default' : editor.config.table.defaultValues.cellpadding,358 'default' : 1, 359 359 validate: function( ) { 360 360 if ( this.getValue() != '' ) 361 361 { … … 383 383 label : editor.lang.table.caption, 384 384 widths : [ '30%','70%' ], 385 385 labelLayout : 'horizontal', 386 'default' : editor.config.table.defaultValues.caption,386 'default' : '', 387 387 style : 'width:400px' 388 388 }, 389 389 { … … 391 391 type : 'text', 392 392 labelLayout : 'horizontal', 393 393 label : editor.lang.table.summary, 394 'default' : editor.config.table.defaultValues.summary,394 'default' : '', 395 395 widths : [ '30%','70%' ], 396 396 accessKey : 'A', 397 397 style : 'width:400px' -
_source/plugins/table/plugin.js
18 18 CKEDITOR.dialog.add( 'table', this.path + 'dialogs/table.js' ); 19 19 } 20 20 } ); 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 };