Ticket #2785: 2785_2.patch
File 2785_2.patch, 54.7 KB (added by , 15 years ago) |
---|
-
_source/core/config.js
181 181 * @example 182 182 * config.basePopupZIndex = 2000 183 183 */ 184 basePopupZIndex : 10000 ,184 basePopupZIndex : 10000 185 185 186 /**187 * The color of the dialog background cover. It should be a valid CSS color string.188 * @type String189 * @default white190 * @example191 * 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 Number198 * @default 0.5199 * @example200 * 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 Number207 * @default 20208 * @example209 * 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 Boolean221 * @default true222 */223 uploadTab : true,224 225 /**226 * Show Browse Server button.227 * @type Boolean228 * @default true229 */230 browseServer : true,231 232 /**233 * Upload action attribute.234 * @type URL235 */236 uploadAction : 'nowhere.php',237 238 /**239 * Show Image preview in the Image Dialog.240 * @type Boolean241 * @default true242 */243 showPreview : true,244 showAdvancedTab : true,245 removeLinkByEmptyURL : true,246 247 /**248 * Startup values249 * @type Text250 * @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 Text268 * @default ''269 * @example270 * 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 values287 * @type Text288 * @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 Array326 * @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 * @example328 * 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 path340 path : CKEDITOR.basePath + '_source/plugins/smiley/images/',341 windowWidth : 320,342 windowHeight : 210,343 columns : 8344 },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 Boolean356 * @default false357 */358 embedTagOnly : false,359 360 /**361 * Add EMBED tag as alternative: <object><embed></embed></object>362 * @type Boolean363 * @default false364 */365 addEmbedTag : true,366 367 /**368 * Use embedTagOnly and addEmbedTag values on edit.369 * @type Boolean370 * @default false371 */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 PageBreakes423 * @type Number | Boolean424 * @default 'false'425 * @example426 * // Only 1 PageBreak (2 pages):427 * pageBreakeLimit : 1428 * // Don't limit429 * pageBreakeLimit : false430 */431 pageBreakeLimit : false432 },433 print :434 {435 /**436 * Document to print437 * @type Text438 * @default 'cke'439 * @example440 * document : 'page'441 */442 document : 'cke'443 }444 }445 186 }; 446 187 447 188 // PACKAGER_RENAME( CKEDITOR.config ) -
_source/plugins/dialog/plugin.js
955 955 '<div style="position: ', ( CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed' ), 956 956 '; z-index: ', editor.config.basePopupZIndex, 957 957 '; top: 0px; left: 0px; ', 958 'background-color: ', editor.config. backgroundCoverColor,958 'background-color: ', editor.config.dialog.backgroundCoverColor, 959 959 '" id="cke_dialog_background_cover">' 960 960 ], 961 961 win = CKEDITOR.document.getWindow(); … … 1011 1011 }, 0 ); 1012 1012 scrollFunc(); 1013 1013 } 1014 element.setOpacity( editor.config. backgroundCoverOpacity );1014 element.setOpacity( editor.config.dialog.backgroundCoverOpacity ); 1015 1015 element.appendTo( CKEDITOR.document.getBody() ); 1016 1016 }, 1017 1017 … … 1041 1041 var lastCoords = null, 1042 1042 abstractDialogCoords = null, 1043 1043 element = dialog.getElement().getFirst(), 1044 magnetDistance = dialog._.editor.config. magnetDistance,1044 magnetDistance = dialog._.editor.config.dialog.magnetDistance, 1045 1045 mouseMoveHandler = function( evt ) 1046 1046 { 1047 1047 var dialogSize = dialog.getSize(), … … 2312 2312 } 2313 2313 }; 2314 2314 })(); 2315 2316 CKEDITOR.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
274 274 minHeight : 400, 275 275 onLoad : function() 276 276 { 277 if ( editor.config. pluginConfig.flash.uploadTab == false )277 if ( editor.config.flash.uploadTab == false ) 278 278 this.hidePage( 'Upload' ); //Hide Upload tab. 279 279 280 if ( editor.config. pluginConfig.flash.showAdvancedTab == false )280 if ( editor.config.flash.showAdvancedTab == false ) 281 281 this.hidePage( 'advanced' ); //Hide Advanded tab. 282 282 283 if ( editor.config. pluginConfig.flash.showPropertiesTab == false )283 if ( editor.config.flash.showPropertiesTab == false ) 284 284 this.hidePage( 'advanced' ); //Hide Proporties tab. 285 285 286 if ( editor.config. pluginConfig.flash.browseServer == false )286 if ( editor.config.flash.browseServer == false ) 287 287 this.getContentElement( 'info', 'browse' ).getElement().hide(); 288 288 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; 291 291 }, 292 292 onHide : function() 293 293 { … … 368 368 // Create a new flash. 369 369 if ( !this.editMode[ 'fakeobject' ] ) 370 370 { 371 if ( editor.config. pluginConfig.flash.embedTagOnly != true )371 if ( editor.config.flash.embedTagOnly != true ) 372 372 this.editObj[ 'object' ] = editor.document.createElement( 'object' ); 373 if ( editor.config. pluginConfig.flash.addEmbedTag == true )373 if ( editor.config.flash.addEmbedTag == true ) 374 374 this.editObj[ 'embed' ] = editor.document.createElement( 'embed' ); 375 375 } 376 376 … … 382 382 this.editObj[ 'embed' ].setAttributes( this.changedAttibutes[ 'EMBED' ] ); 383 383 384 384 // Add PARAMs. 385 if ( editor.config. pluginConfig.flash.embedTagOnly != true )385 if ( editor.config.flash.embedTagOnly != true ) 386 386 for ( var name in this.changedAttibutes[ 'PARAM' ] ){ 387 387 addParam( this.editObj[ 'object' ], name, this.changedAttibutes[ 'PARAM' ][ name ] ); 388 388 } … … 407 407 if ( this.editMode[ 'fakeobject' ] == false ) 408 408 { 409 409 // 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 ) 411 411 this.editObj[ 'object' ].append( this.editObj[ 'embed' ] ); 412 412 413 if ( editor.config. pluginConfig.flash.embedTagOnly )413 if ( editor.config.flash.embedTagOnly ) 414 414 this.editObj[ 'fakeobject' ] = CKEDITOR.plugins.fakeobjects.protectElement( this.editObj[ 'embed' ] ); 415 415 else 416 416 this.editObj[ 'fakeobject' ] = CKEDITOR.plugins.fakeobjects.protectElement( this.editObj[ 'object' ] ); … … 488 488 type : 'text', 489 489 id : 'txtWidth', 490 490 label : editor.lang.flash.width, 491 'default' : editor.config. pluginConfig.flash.defaultValues.width,491 'default' : editor.config.flash.defaultValues.width, 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. pluginConfig.flash.defaultValues.height,512 'default' : editor.config.flash.defaultValues.height, 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. pluginConfig.flash.defaultValues.hSpace,533 'default' : editor.config.flash.defaultValues.hSpace, 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. pluginConfig.flash.defaultValues.vSpace,554 'default' : editor.config.flash.defaultValues.vSpace, 555 555 onChange : function() 556 556 { 557 557 onChange( this ); … … 593 593 type : 'file', 594 594 id : 'upload', 595 595 label : editor.lang.common.upload, 596 action : editor.config. pluginConfig.image.uploadAction,596 action : editor.config.image.uploadAction, 597 597 size : 38 598 598 }, 599 599 { … … 618 618 id : 'cmbScale', 619 619 type : 'select', 620 620 label : editor.lang.flash.scale, 621 'default' : editor.config. pluginConfig.flash.defaultValues.scale,621 'default' : editor.config.flash.defaultValues.scale, 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. pluginConfig.flash.defaultValues.access,640 'default' : editor.config.flash.defaultValues.access, 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. pluginConfig.flash.defaultValues.windowMode,666 'default' : editor.config.flash.defaultValues.windowMode, 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. pluginConfig.flash.defaultValues.quality,685 'default' : editor.config.flash.defaultValues.quality, 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. pluginConfig.flash.defaultValues.align,714 'default' : editor.config.flash.defaultValues.align, 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. pluginConfig.flash.defaultValues.flashvars,745 checked : editor.config.flash.defaultValues.flashvars, 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. pluginConfig.flash.defaultValues.menu,756 checked : editor.config.flash.defaultValues.menu, 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. pluginConfig.flash.defaultValues.play,767 checked : editor.config.flash.defaultValues.play, 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. pluginConfig.flash.defaultValues.loop,778 checked : editor.config.flash.defaultValues.loop, 779 779 validate : function() 780 780 { 781 781 addChange( 'loop', this, PARAM | EMBED ); … … 786 786 type : 'checkbox', 787 787 id : 'txtChkFull', 788 788 label : editor.lang.flash.chkFull, 789 checked : editor.config. pluginConfig.flash.defaultValues.allowfullscreen,789 checked : editor.config.flash.defaultValues.allowfullscreen, 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. pluginConfig.flash.defaultValues.title,822 'default' : editor.config.flash.defaultValues.title, 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. pluginConfig.flash.defaultValues.bgcolor,840 'default' : editor.config.flash.defaultValues.bgcolor, 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. pluginConfig.flash.defaultValues.cssClass,851 'default' : editor.config.flash.defaultValues.cssClass, 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. pluginConfig.flash.defaultValues.cssStyle,864 'default' : editor.config.flash.defaultValues.cssStyle, 865 865 validate : function() 866 866 { 867 867 addChange( 'style', this, OBJECT | EMBED ); -
_source/plugins/flash/plugin.js
19 19 }, 20 20 requires : [ 'fakeobjects' ] 21 21 } ); 22 23 CKEDITOR.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: <object><embed></embed></object> 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
120 120 id : 'txtType', 121 121 type : 'select', 122 122 label : editor.lang.button.type, 123 'default' : editor.config. pluginConfig.forms.defaultValues.buttonType,123 'default' : editor.config.forms.defaultValues.buttonType, 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. pluginConfig.forms.defaultValues.formAction,118 'default' : editor.config.forms.defaultValues.formAction, 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. pluginConfig.forms.defaultValues.formEncoding,149 'default' : editor.config.forms.defaultValues.formEncoding, 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. pluginConfig.forms.defaultValues.formTarget,175 'default' : editor.config.forms.defaultValues.formTarget, 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. pluginConfig.forms.defaultValues.formMethod,195 'default' : editor.config.forms.defaultValues.formMethod, 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. pluginConfig.forms.defaultValues.selectSize,193 'default' : editor.config.forms.defaultValues.selectSize, 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. pluginConfig.forms.defaultValues.textareaCols,112 'default' : editor.config.forms.defaultValues.textareaCols, 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. pluginConfig.forms.defaultValues.textareaRows,128 'default' : editor.config.forms.defaultValues.textareaRows, 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. pluginConfig.forms.defaultValues.textfieldWidth,142 'default' : editor.config.forms.defaultValues.textfieldWidth, 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. pluginConfig.forms.defaultValues.textfieldMaxChars,158 'default' : editor.config.forms.defaultValues.textfieldMaxChars, 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. pluginConfig.forms.defaultValues.textfieldType,176 'default' : editor.config.forms.defaultValues.textfieldType, 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
6 6 imageDialog = function( editor, dialogType ) 7 7 { 8 8 // Load image preview. 9 var showPreview = editor.config. pluginConfig.image.showPreview;9 var showPreview = editor.config.image.showPreview; 10 10 var regexSize = /^\s*(\d+)((px)|\%)?\s*$/i; 11 11 var regexValidSize = /^(\d+)\%?$|^$/i; 12 12 var imageDialog = ( dialogType == 'image' ); … … 526 526 this.editObj[ 'image' ].appendTo( this.editObj[ 'link' ] ); 527 527 } 528 528 //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 ) 530 530 this.editObj[ 'link' ].remove( true ); 531 531 } 532 532 this.allowOnChange = false; // Don't load onChange before onShow. … … 626 626 if ( !imageDialog ) 627 627 this.hidePage( 'Link' ); //Hide Link tab. 628 628 629 if ( editor.config. pluginConfig.image.uploadTab == false )629 if ( editor.config.image.uploadTab == false ) 630 630 this.hidePage( 'Upload' ); //Hide Upload tab. 631 631 632 if ( editor.config. pluginConfig.image.showAdvancedTab == false )632 if ( editor.config.image.showAdvancedTab == false ) 633 633 this.hidePage( 'advanced' ); //Hide Advanded tab. 634 634 635 if ( editor.config. pluginConfig.image.browseServer == false )635 if ( editor.config.image.browseServer == false ) 636 636 this.getContentElement( 'info', 'browse' ).getElement().hide(); 637 637 638 638 // Activate Reset button … … 747 747 type : 'text', 748 748 label : editor.lang.image.alt, 749 749 accessKey : 'A', 750 'default' : editor.config. pluginConfig.image.defaultValues.alt,750 'default' : editor.config.image.defaultValues.alt, 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. pluginConfig.image.defaultValues.border,855 'default' : editor.config.image.defaultValues.border, 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. pluginConfig.image.defaultValues.hSpace,874 'default' : editor.config.image.defaultValues.hSpace, 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. pluginConfig.image.defaultValues.vSpace,893 'default' : editor.config.image.defaultValues.vSpace, 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. pluginConfig.image.defaultValues.align,914 'default' : editor.config.image.defaultValues.align, 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. pluginConfig.image.defaultValues.link,969 'default' : editor.config.image.defaultValues.link, 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. pluginConfig.image.defaultValues.target,995 'default' : editor.config.image.defaultValues.target, 996 996 items : 997 997 [ 998 998 [ editor.lang.link.targetNotSet , ''], … … 1018 1018 type : 'file', 1019 1019 id : 'upload', 1020 1020 label : editor.lang.image.btnUpload, 1021 action : editor.config. pluginConfig.image.uploadAction,1021 action : editor.config.image.uploadAction, 1022 1022 size : 38 1023 1023 }, 1024 1024 { … … 1054 1054 type : 'select', 1055 1055 style : 'width : 100%;', 1056 1056 label : editor.lang.common.langDir, 1057 'default' : editor.config. pluginConfig.image.defaultValues.langDir,1057 'default' : editor.config.image.defaultValues.langDir, 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. pluginConfig.image.defaultValues.langCode,1074 'default' : editor.config.image.defaultValues.langCode, 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. pluginConfig.image.defaultValues.classes,1102 'default' : editor.config.image.defaultValues.classes, 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. pluginConfig.image.defaultValues.title,1113 'default' : editor.config.image.defaultValues.title, 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. pluginConfig.image.defaultValues.style,1130 'default' : editor.config.image.defaultValues.style, 1131 1131 validate : function() 1132 1132 { 1133 1133 addChange( 'style', this, 'image' ); -
_source/plugins/image/plugin.js
18 18 CKEDITOR.dialog.add( 'image', this.path + 'dialogs/image.js' ); 19 19 } 20 20 } ); 21 22 //Image Dialog and Image button Dialog. 23 CKEDITOR.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
31 31 typeValue = this.getValue(); 32 32 if ( typeValue == 'url' ) 33 33 { 34 if ( editor.config. pluginConfig.link.showTargetTab )34 if ( editor.config.link.showTargetTab ) 35 35 dialog.showPage( 'target' ); 36 if ( editor.config. pluginConfig.link.uploadTab )36 if ( editor.config.link.uploadTab ) 37 37 dialog.showPage( 'upload' ); 38 38 } 39 39 else … … 100 100 } 101 101 else 102 102 { 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 ); 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. pluginConfig.link.defaultValues.linkType,186 'default' : editor.config.link.defaultValues.linkType, 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. pluginConfig.link.defaultValues.protocol,209 'default' : editor.config.link.defaultValues.protocol, 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. pluginConfig.link.defaultValues.target,345 'default' : editor.config.link.defaultValues.target, 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. pluginConfig.link.defaultValues.targetFrameName363 'default' : editor.config.link.defaultValues.targetFrameName 364 364 } 365 365 ] 366 366 }, … … 494 494 type : 'file', 495 495 id : 'upload', 496 496 label : editor.lang.common.upload, 497 action : editor.config. pluginConfig.link.uploadAction,497 action : editor.config.link.uploadAction, 498 498 size : 38 499 499 }, 500 500 { … … 530 530 type : 'select', 531 531 id : 'advLangDir', 532 532 label : editor.lang.link.langDir, 533 'default' : editor.config. pluginConfig.link.defaultValues.langDir,533 'default' : editor.config.link.defaultValues.langDir, 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. pluginConfig.link.defaultValues.langCode564 'default' : editor.config.link.defaultValues.langCode 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. pluginConfig.link.defaultValues.title,589 'default' : editor.config.link.defaultValues.title, 590 590 id : 'advTitle' 591 591 }, 592 592 { 593 593 type : 'text', 594 594 label : editor.lang.link.advisoryContentType, 595 'default' : editor.config. pluginConfig.link.defaultValues.type,595 'default' : editor.config.link.defaultValues.type, 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. pluginConfig.link.defaultValues.classes,608 'default' : editor.config.link.defaultValues.classes, 609 609 id : 'advCSSClasses' 610 610 }, 611 611 { 612 612 type : 'text', 613 613 label : editor.lang.link.charset, 614 'default' : editor.config. pluginConfig.link.defaultValues.charset,614 'default' : editor.config.link.defaultValues.charset, 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. pluginConfig.link.defaultValues.style,626 'default' : editor.config.link.defaultValues.style, 627 627 id : 'advStyles' 628 628 } 629 629 ] … … 847 847 }, 848 848 onLoad : function() 849 849 { 850 if ( editor.config. pluginConfig.link.uploadTab == false )850 if ( editor.config.link.uploadTab == false ) 851 851 this.hidePage( 'upload' ); //Hide Upload tab. 852 852 853 if ( editor.config. pluginConfig.link.showAdvancedTab == false )853 if ( editor.config.link.showAdvancedTab == false ) 854 854 this.hidePage( 'advanced' ); //Hide Advanded tab. 855 855 856 if ( editor.config. pluginConfig.link.browseServer == false )856 if ( editor.config.link.browseServer == false ) 857 857 this.getContentElement( 'info', 'browse' ).getElement().hide(); 858 858 859 if ( editor.config. pluginConfig.link.showTargetTab == false )859 if ( editor.config.link.showTargetTab == false ) 860 860 this.hidePage( 'target' ); //Hide Target tab. 861 861 862 862 }, -
_source/plugins/link/plugin.js
81 81 selection.selectBookmarks( bookmarks ); 82 82 } 83 83 }; 84 85 CKEDITOR.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
18 18 label : editor.lang.newpage, 19 19 command : 'newpage' 20 20 }); 21 if ( editor.config. pluginConfig.newPage.resetToStartupContent )21 if ( editor.config.newpage.resetToStartupContent ) 22 22 CKEDITOR.plugins.newpage.newContent = editor.getData(); 23 23 else 24 CKEDITOR.plugins.newpage.newContent = editor.config. pluginConfig.newPage.newPageContent;24 CKEDITOR.plugins.newpage.newContent = editor.config.newpage.newPageContent; 25 25 } 26 26 }); 27 27 … … 30 30 newContent : '', 31 31 exec : function( editor ) 32 32 { 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 ) ) 34 34 editor.setData( CKEDITOR.plugins.newpage.newContent ); 35 35 } 36 36 }; 37 38 CKEDITOR.config.newpage = 39 { 40 confirmation : true, 41 resetToStartupContent : false, 42 newPageContent : '' 43 }; -
_source/plugins/pagebreak/plugin.js
50 50 exec : function( editor ) 51 51 { 52 52 var element = CKEDITOR.plugins.pagebreak.pageBreakObject( editor, true ); 53 if ( editor.config.p luginConfig.pagebreak.pageBreakeLimit !== false)54 CKEDITOR.plugins.pagebreak.removeOldBreaks( editor, editor.config.p luginConfig.pagebreak.pageBreakeLimit -1 );53 if ( editor.config.pagebreak.pageBreakeLimit !== false) 54 CKEDITOR.plugins.pagebreak.removeOldBreaks( editor, editor.config.pagebreak.pageBreakeLimit -1 ); 55 55 editor.insertElement( element ); 56 56 } 57 57 }; 58 59 CKEDITOR.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
35 35 36 36 exec : function( editor ) 37 37 { 38 if ( editor.config.print == 'page' )38 if ( editor.config.print == 'page' ) 39 39 CKEDITOR.plugins.print.printPage( editor ); 40 40 else 41 41 CKEDITOR.plugins.print.printCKEDocument( editor ); 42 42 } 43 43 }; 44 45 CKEDITOR.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
32 32 style : 'width: 100%; height: 100%; border-collapse: separate;' 33 33 }, 34 34 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, 38 38 i; 39 39 40 40 for ( i = 0 ; i < images.length ; i++ ) 41 41 { 42 if ( i % editor.config. pluginConfig.smiley.columns == 0 )42 if ( i % editor.config.smiley.columns == 0 ) 43 43 html.push( '<tr>' ); 44 44 45 45 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] ) + '" ' + 48 48 // IE BUG: Below is a workaround to an IE image loading bug to ensure the image sizes are correct. 49 49 ( CKEDITOR.env.ie ? 'onload="this.setAttribute(\'width\', 2); this.removeAttribute(\'width\');" ' : '' ) + 50 50 'class="hand" /></td>' ); … … 65 65 66 66 return { 67 67 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, 70 70 contents : [ 71 71 { 72 72 id : 'tab1', -
_source/plugins/smiley/plugin.js
18 18 19 19 lang : [ 'en' ] 20 20 } ); 21 22 CKEDITOR.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
7 7 { 8 8 return { 9 9 title : editor.lang.specialChar.title, 10 minWidth : 450,11 minHeight : 350,10 minWidth : editor.config.specialchar.dialogWidth, 11 minHeight : editor.config.specialchar.dialogHeight, 12 12 buttons : [ CKEDITOR.dialog.cancelButton ], 13 13 onLoad : function() 14 14 { … … 16 16 html.push( '<table style="width: 320px; height: 100%; border-collapse: separate;" align="center" cellspacing="2" cellpadding="2" border="0">' ); 17 17 html.push( '<tbody>' ); 18 18 19 var cols = 17 ;20 19 var i = 0 ; 21 20 22 while ( i < specialChars.length)21 while ( i < editor.config.specialchar.characters.length ) 23 22 { 24 23 html.push("<tr>") ; 25 for( var j = 0 ; j < cols ; j++)24 for( var j = 0 ; j < editor.config.specialchar.columns ; j++) 26 25 { 27 if ( specialChars[i])26 if (editor.config.specialchar.characters[i]) 28 27 { 29 html.push('<td width="1%" title=' + specialChars[i].replace(/&/g, "&") + ' value="' + specialChars[i].replace(/&/g, "&") + '" class="DarkBackground SpecialCharsOut Hand">');30 html.push( specialChars[i]);28 html.push('<td width="1%" title=' + editor.config.specialchar.characters[i].replace(/&/g, "&") + ' value="' + editor.config.specialchar.characters[i].replace(/&/g, "&") + '" class="DarkBackground editor.config.charactersOut Hand">'); 29 html.push(editor.config.specialchar.characters[i]); 31 30 } 32 31 else 33 32 html.push("<td class='DarkBackground'> "); -
_source/plugins/specialchar/plugin.js
7 7 * @file Special Character plugin 8 8 */ 9 9 10 var specialChars =11 [12 "!",""","#","$","%","&","\\'","(",")","*","+","-",".","/",13 "0","1","2","3","4","5","6","7","8","9",":",";",14 "<","=",">","?","@",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 "{","|","}","~","€","‘","’","’","“",21 "”","–","—","¡","¢","£",22 "¤","¥","¦","§","¨","©","ª",23 "«","¬","®","¯","°","±","²",24 "³","´","µ","¶","·","¸",25 "¹","º","»","¼","½","¾",26 "¿","À","Á","Â","Ã","Ä",27 "Å","Æ","Ç","È","É","Ê",28 "Ë","Ì","Í","Î","Ï","Ð",29 "Ñ","Ò","Ó","Ô","Õ","Ö",30 "×","Ø","Ù","Ú","Û","Ü",31 "Ý","Þ","ß","à","á","â",32 "ã","ä","å","æ","ç","è",33 "é","ê","ë","ì","í","î",34 "ï","ð","ñ","ò","ó","ô",35 "õ","ö","÷","ø","ù","ú",36 "û","ü","ü","ý","þ","ÿ",37 "Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚",38 "‛","„","…","™","►","•",39 "→","⇒","⇔","♦","≈"40 ];41 42 10 CKEDITOR.plugins.add( 'specialchar', 43 11 { 44 12 init : function( editor, pluginPath ) … … 52 20 CKEDITOR.dialog.add( 'specialchar', this.path + 'dialogs/specialchar.js' ); 53 21 } 54 22 } ); 23 24 CKEDITOR.config.specialchar = 25 { 26 columns : 17, 27 dialogWidth : 450, 28 dialogHeight : 350, 29 characters : 30 [ 31 "!",""","#","$","%","&","\\'","(",")","*","+","-",".","/", 32 "0","1","2","3","4","5","6","7","8","9",":",";", 33 "<","=",">","?","@", 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 "{","|","}","~","€","‘","’","’","“", 40 "”","–","—","¡","¢","£", 41 "¤","¥","¦","§","¨","©","ª", 42 "«","¬","®","¯","°","±","²", 43 "³","´","µ","¶","·","¸", 44 "¹","º","»","¼","½","¾", 45 "¿","À","Á","Â","Ã","Ä", 46 "Å","Æ","Ç","È","É","Ê", 47 "Ë","Ì","Í","Î","Ï","Ð", 48 "Ñ","Ò","Ó","Ô","Õ","Ö", 49 "×","Ø","Ù","Ú","Û","Ü", 50 "Ý","Þ","ß","à","á","â", 51 "ã","ä","å","æ","ç","è", 52 "é","ê","ë","ì","í","î", 53 "ï","ð","ñ","ò","ó","ô", 54 "õ","ö","÷","ø","ù","ú", 55 "û","ü","ü","ý","þ","ÿ", 56 "Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚", 57 "‛","„","…","™","►","•", 58 "→","⇒","⇔","♦","≈" 59 ] 60 }; -
_source/plugins/table/dialogs/table.js
177 177 labelLayout : 'horizontal', 178 178 widths : [ '60%','40%' ], 179 179 style : 'width:105px', 180 'default' : editor.config. pluginConfig.table.defaultValues.rows,180 'default' : editor.config.table.defaultValues.rows, 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. pluginConfig.table.defaultValues.columns,200 'default' : editor.config.table.defaultValues.columns, 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. pluginConfig.table.defaultValues.border,220 'default' : editor.config.table.defaultValues.border, 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. pluginConfig.table.defaultValues.align,238 'default' : editor.config.table.defaultValues.align, 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. pluginConfig.table.defaultValues.width,273 'default' : editor.config.table.defaultValues.width, 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. pluginConfig.table.defaultValues.widthType,292 'default' : editor.config.table.defaultValues.widthType, 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. pluginConfig.table.defaultValues.height,312 'default' : editor.config.table.defaultValues.height, 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. pluginConfig.table.defaultValues.cellspacing,338 'default' : editor.config.table.defaultValues.cellspacing, 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. pluginConfig.table.defaultValues.cellpadding,358 'default' : editor.config.table.defaultValues.cellpadding, 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. pluginConfig.table.defaultValues.caption,386 'default' : editor.config.table.defaultValues.caption, 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. pluginConfig.table.defaultValues.summary,394 'default' : editor.config.table.defaultValues.summary, 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 };