Index: Editor/branches/prototype/_source/dialogs/button.js
===================================================================
--- /CKEditor/branches/prototype/_source/dialogs/button.js	(revision 2670)
+++ 	(revision )
@@ -1,83 +1,0 @@
-/*
- * CKEditor - The text editor for Internet - http://ckeditor.com
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- *  - GNU General Public License Version 2 or later (the "GPL")
- *    http://www.gnu.org/licenses/gpl.html
- *
- *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- *    http://www.gnu.org/licenses/lgpl.html
- *
- *  - Mozilla Public License Version 1.1 or later (the "MPL")
- *    http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- */
-CKEDITOR.dialog.add( 'button', function( editor )
-{
-	return {
-		title : editor.lang.buttonProp,
-		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
-		minWidth : 400,
-		minHeight : 230,
-		onOk: function( data ) {
-			return true;
-		},
-
-		onCancel: function() {
-		},
-		
-		onLoad: function( data ) {
-			return true;
-		},
-		contents : [
-			{
-				id : 'info',
-				label : editor.lang.buttonProp,
-				title : editor.lang.buttonProp,
-				accessKey : 'I',
-				elements : [
-					{
-						id : 'txtName',
-						type : 'text',
-						label : editor.lang.dlgCheckboxName,
-						'default' : '',
-						validate: function( data ) {
-							return true;
-						}
-					},
-					{
-						id : 'txtValue',
-						type : 'text',
-						label : editor.lang.dlgButtonText,
-						accessKey : 'V',
-						validate: function( data ) {
-							return true;
-						}
-					},
-					{
-						id : 'txtType',
-						type : 'select',
-						label : editor.lang.dlgButtonType,
-						'default' : 'url',
-						accessKey : 'T',
-						items :
-						[
-							[ editor.lang.dlgButtonTypeBtn, 'button' ],
-							[ editor.lang.dlgButtonTypeSbm, 'submit' ],
-							[ editor.lang.dlgButtonTypeRst, 'reset' ]
-						],
-						validate: function( data ) {
-							return true;
-						}
-					}
-				]
-			}
-		]
-	};
-});
Index: Editor/branches/prototype/_source/dialogs/checkbox.js
===================================================================
--- /CKEditor/branches/prototype/_source/dialogs/checkbox.js	(revision 2670)
+++ 	(revision )
@@ -1,79 +1,0 @@
-/*
- * CKEditor - The text editor for Internet - http://ckeditor.com
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- *  - GNU General Public License Version 2 or later (the "GPL")
- *    http://www.gnu.org/licenses/gpl.html
- *
- *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- *    http://www.gnu.org/licenses/lgpl.html
- *
- *  - Mozilla Public License Version 1.1 or later (the "MPL")
- *    http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- */
-CKEDITOR.dialog.add( 'checkbox', function( editor )
-{
-	return {
-		title : editor.lang.checkboxProp,
-		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
-		minWidth : 400,
-		minHeight : 230,
-		onOk: function( data ) {
-			return true;
-		},
-
-		onCancel: function() {
-		},
-		
-		onLoad: function( data ) {
-			return true;
-		},
-		contents : [
-			{
-				id : 'info',
-				label : editor.lang.checkboxProp,
-				title : editor.lang.checkboxProp,
-				accessKey : 'I',
-				elements : [
-					{
-						id : 'txtName',
-						type : 'text',
-						label : editor.lang.dlgCheckboxName,
-						'default' : '',
-						accessKey : 'N',
-						validate: function( data ) {
-							return true;
-						}
-					},
-					{
-						id : 'txtValue',
-						type : 'text',
-						label : editor.lang.dlgCheckboxValue,
-						'default' : '',
-						accessKey : 'V',
-						validate: function( data ) {
-							return true;
-						}
-					},
-					{
-						id : 'cmbSelected',
-						type : 'checkbox',
-						label : editor.lang.dlgCheckboxSelected,
-						'default' : 'url',
-						accessKey : 'S',
-						validate: function( data ) {
-							return true;
-						}
-					}
-				]
-			}
-		]
-	};
-});
Index: Editor/branches/prototype/_source/dialogs/form.js
===================================================================
--- /CKEditor/branches/prototype/_source/dialogs/form.js	(revision 2670)
+++ 	(revision )
@@ -1,85 +1,0 @@
-/*
- * CKEditor - The text editor for Internet - http://ckeditor.com
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- *  - GNU General Public License Version 2 or later (the "GPL")
- *    http://www.gnu.org/licenses/gpl.html
- *
- *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- *    http://www.gnu.org/licenses/lgpl.html
- *
- *  - Mozilla Public License Version 1.1 or later (the "MPL")
- *    http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- */
-CKEDITOR.dialog.add( 'form', function( editor )
-{
-	return {
-		title : editor.lang.formProp,
-		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
-		minWidth : 400,
-		minHeight : 230,
-		onOk: function( data ) {
-			return true;
-		},
-
-		onCancel: function() {
-		},
-		
-		onLoad: function( data ) {
-			return true;
-		},
-		contents : [
-			{
-				id : 'info',
-				label : editor.lang.formProp,
-				title : editor.lang.formProp,
-				accessKey : 'I',
-				elements : [
-					{
-						id : 'txtName',
-						type : 'text',
-						label : editor.lang.dlgFormName,
-						'default' : '',
-						accessKey : 'N',
-						validate: function( data ) {
-							return true;
-						}
-					},
-					{
-						id : 'txtAction',
-						type : 'text',
-						label : editor.lang.dlgFormAction,
-						'default' : '',
-						accessKey : 'A',
-						validate: function( data ) {
-							return true;
-						}
-					},
-					{
-						id : 'txtMethod',
-						type : 'select',
-						label : editor.lang.dlgFormMethod,
-						'default' : 'url',
-						accessKey : 'M',
-						items :
-						[
-							[ editor.lang.url, 'url' ],
-							[ editor.lang.linkToAnchor, 'anchor' ],
-							[ editor.lang.linkToEmail, 'email' ]
-						],
-						validate: function( data ) {
-							return true;
-						}
-					}
-				]
-			}
-		]
-	};
-});
Index: Editor/branches/prototype/_source/dialogs/hiddenfield.js
===================================================================
--- /CKEditor/branches/prototype/_source/dialogs/hiddenfield.js	(revision 2670)
+++ 	(revision )
@@ -1,69 +1,0 @@
-/*
- * CKEditor - The text editor for Internet - http://ckeditor.com
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- *  - GNU General Public License Version 2 or later (the "GPL")
- *    http://www.gnu.org/licenses/gpl.html
- *
- *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- *    http://www.gnu.org/licenses/lgpl.html
- *
- *  - Mozilla Public License Version 1.1 or later (the "MPL")
- *    http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- */
-CKEDITOR.dialog.add( 'hiddenfield', function( editor )
-{
-	return {
-		title : editor.lang.hiddenFieldProp,
-		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
-		minWidth : 400,
-		minHeight : 200,
-		onOk: function( data ) {
-			return true;
-		},
-
-		onCancel: function() {
-		},
-		
-		onLoad: function( data ) {
-			return true;
-		},
-		contents : [
-			{
-				id : 'info',
-				label : editor.lang.hiddenFieldProp,
-				title : editor.lang.hiddenFieldProp,
-				accessKey : 'I',
-				elements : [
-					{
-						id : 'txtName',
-						type : 'text',
-						label : editor.lang.dlgHiddenName,
-						'default' : '',
-						accessKey : 'N',
-						validate: function( data ) {
-							return true;
-						}
-					},
-					{
-						id : 'txtValue',
-						type : 'text',
-						label : editor.lang.dlgHiddenValue,
-						'default' : '',
-						accessKey : 'V',
-						validate: function( data ) {
-							return true;
-						}
-					}
-				]
-			}
-		]
-	};
-});
Index: Editor/branches/prototype/_source/dialogs/image.js
===================================================================
--- /CKEditor/branches/prototype/_source/dialogs/image.js	(revision 2670)
+++ 	(revision )
@@ -1,369 +1,0 @@
-/*
- * CKEditor - The text editor for Internet - http://ckeditor.com
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- *  - GNU General Public License Version 2 or later (the "GPL")
- *    http://www.gnu.org/licenses/gpl.html
- *
- *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- *    http://www.gnu.org/licenses/lgpl.html
- *
- *  - Mozilla Public License Version 1.1 or later (the "MPL")
- *    http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- */
-
-imageDialog = function( editor, dialogType )
-{
-	var uploadAction = 'nowhere.php';
-	var imageDialog = ( dialogType == 'image' );
-
-	var linkTab = 
-	{
-		id : 'Link',
-		label : editor.lang.linkTitle,
-		padding : 0,
-		elements : 
-		[
-			{
-				id : 'txtUrl',
-				type : 'text',
-				label : editor.lang.dlgImgURL,
-				style : 'width: 385px',
-				validate: function( data ) {
-					return true;
-				}
-			},
-			{
-				type : 'button',
-				id : 'browse',
-				style : 'float:right',
-				label : editor.lang.browseServer,
-			},
-			{
-				id : 'cmbTarget',
-				type : 'select',
-				label : editor.lang.linkTarget,
-				style : 'width : 90px',
-				items :
-				[
-					[ editor.lang.linkTargetNotSet , ''],
-					[ editor.lang.linkTargetNew , '_blank'],
-					[ editor.lang.linkTargetTop , '_top'],
-					[ editor.lang.linkTargetSelf , '_self'],
-					[ editor.lang.linkTargetParent , '_parent'],
-				]
-			},
-		]
-	};
-	
-	var uploadTab = 
-	{
-		id : 'Upload',
-		label : editor.lang.dlgImgUpload,
-		elements : 
-		[
-			{
-				type : 'file',
-				id : 'upload',
-				label : editor.lang.dlgImgBtnUpload,
-				action : uploadAction,
-				size : 38
-			},
-			{
-				type : 'fileButton',
-				id : 'uploadButton',
-				label : editor.lang.dlgImgBtnUpload,
-				'for' : [ 'Upload', 'upload' ]
-			}
-		]
-	};
-
-	dialogElements = 
-	{
-		title : ( imageDialog ) ? editor.lang.dlgImgTitle : editor.lang.imageButtonProp,
-		minWidth : 450,
-		minHeight : 400,
-		contents : [
-			{
-				id : 'info',
-				label : editor.lang.dlgImgInfoTab,
-				accessKey : 'I',
-				elements :
-				[
-					{
-						type : 'vbox',
-						padding : 0,
-						children : 
-						[
-							{
-								type : 'html',
-								style : 'padding:0px;margin:0px',
-								html : '<span>' + CKEDITOR.tools.htmlEncode( editor.lang.dlgImgURL ) + '</span>'
-							},
-							{
-								type : 'hbox',
-								widths : [ '290px', '120px' ],
-								children : 
-								[
-									{
-										id : 'txtUrl',
-										type : 'text',
-										labelLayout : 'horizontal',
-										label : '',
-										style : 'width: 280px',
-										validate: function( data ) {
-											return true;
-										}
-									},
-									{
-										type : 'button',
-										id : 'browse',
-										label : editor.lang.browseServer,
-									},
-								]
-							},
-						]
-					},
-					{
-						type : 'hbox',
-						widths : [ '100px', '250px' ],
-						align : 'top',
-						children : 
-						[
-							{
-								type : 'vbox',
-								padding : 0,
-								style : 'width:100px',
-								children : 
-								[
-									{
-										type : 'text',
-										id : 'txtWidth',
-										style : 'width:50px',
-										label : editor.lang.dlgImgWidth,
-										validate: function( data ) {
-											if ( this.getValue()!='')
-											{
-												if ( isNaN( parseInt( this.getValue(), 10 ) ) )
-												{
-													this.select();
-													return false;
-												}
-											}
-											return true;
-										}
-									},
-									{
-										type : 'text',
-										id : 'txtHeight',
-										style : 'width:50px',
-										label : editor.lang.dlgImgHeight,
-										validate: function( data ) {
-											if ( this.getValue()!='')
-											{
-												if ( isNaN( parseInt( this.getValue(), 10 ) ) )
-												{
-													this.select();
-													return false;
-												}
-											}
-											return true;
-										}
-									},
-									{
-										id : 'txtBorder',
-										type : 'text',
-										style : 'width:50px',
-										label : editor.lang.dlgImgBorder,
-										validate: function( data ) {
-											if ( this.getValue()!='')
-											{
-												if ( isNaN( parseInt( this.getValue(), 10 ) ) )
-												{
-													this.select();
-													return false;
-												}
-											}
-											return true;
-										}
-									},
-									{
-										id : 'txtHSpace',
-										type : 'text',
-										style : 'width:50px',
-										label : editor.lang.dlgImgHSpace,
-										validate: function( data ) {
-											if ( this.getValue()!='')
-											{
-												if ( isNaN( parseInt( this.getValue(), 10 ) ) )
-												{
-													this.select();
-													return false;
-												}
-											}
-											return true;
-										}
-									},
-									{
-										id : 'txtVSpace',
-										type : 'text',
-										label : editor.lang.dlgImgVSpace,
-										style : 'width:50px',
-										validate: function( data ) {
-											if ( this.getValue()!='')
-											{
-												if ( isNaN( parseInt( this.getValue(), 10 ) ) )
-												{
-													this.select();
-													return false;
-												}
-											}
-											return true;
-										}
-									},
-									{
-										id : 'cmbAlign',
-										type : 'select',
-										label : editor.lang.dlgImgAlign,
-										style : 'width : 90px',
-										items :
-										[
-											[ editor.lang.dlgGenNotSet , ''],
-											[ editor.lang.dlgImgAlignLeft , 'left'],
-											[ editor.lang.dlgImgAlignAbsBottom , 'absBottom'],
-											[ editor.lang.dlgImgAlignAbsMiddle , 'absMiddle'],
-											[ editor.lang.dlgImgAlignBaseline , 'baseline'],
-											[ editor.lang.dlgImgAlignBottom , 'bottom'],
-											[ editor.lang.dlgImgAlignMiddle , 'middle'],
-											[ editor.lang.dlgImgAlignRight , 'right'],
-											[ editor.lang.dlgImgAlignTextTop , 'textTop'],
-											[ editor.lang.dlgImgAlignTop , 'top'],
-										]
-									},
-								]
-							},
-							{
-								type : 'vbox',
-								height : '100%',
-								children : 
-								[
-									{
-										type : 'html',
-										style : 'width:260px; height:180px; margin:0px 0px 0px 10px;',
-										html: '<div>' + CKEDITOR.tools.htmlEncode( editor.lang.dlgImgPreview ) +
-												'<div id="ImagePreviewBox" style="border: 1px solid black;height:100%"></div>'+
-												'</div>'
-									}
-								]
-							}
-						]
-					},
-					{
-						id : 'txtAlt',
-						type : 'text',
-						label : editor.lang.dlgImgAlt,
-						accessKey : 'A',
-						style : 'width:385px',
-						validate: function( data ) {
-							return true;
-						}
-					},
-				]
-			},
-			{
-				id : 'advanced',
-				label : editor.lang.dlgDivAdvancedTab,
-				elements : 
-				[
-					{
-						type : 'hbox',
-						widths : [ '40%', '30%', '30%' ],
-						children :
-						[
-							{
-								type : 'text',
-								id : 'linkId',
-								label : editor.lang.dlgGenId
-							},
-							{
-								id : 'cmbLangDir',
-								type : 'select',
-								label : editor.lang.dlgGenLangDir,
-								style : 'width : 100%;',
-								items :
-								[
-									[ editor.lang.dlgGenNotSet, '' ],
-									[ editor.lang.dlgGenLangDirLtr, 'ltr' ],
-									[ editor.lang.dlgGenLangDirRtl, 'rtl' ]
-								]
-							},
-							{
-								type : 'text',
-								id : 'txtLangCode',
-								label : editor.lang.dlgGenLangCode
-							},
-						]
-					},
-					{
-						type : 'text',
-						id : 'txtGenLongDescr',
-						label : editor.lang.dlgGenLongDescr
-					},
-					{
-						type : 'hbox',
-						widths : [ '50%', '50%' ],
-						children :
-						[
-							{
-								type : 'text',
-								id : 'txtGenClass',
-								label : editor.lang.dlgGenClass
-							},
-							{
-								type : 'text',
-								id : 'txtGenTitle',
-								label : editor.lang.dlgGenTitle
-							},
-						]
-					},
-					{
-						type : 'text',
-						id : 'txtdlgGenStyle',
-						label : editor.lang.dlgGenStyle
-					},
-				]
-			}
-		]
-	};
-
-	if ( imageDialog || editor.config.imageUpload )
-	{
-	var advancedTab = dialogElements.contents.pop();
-		if ( imageDialog )
-			dialogElements.contents.push( linkTab );		//Add the Link tab.
-
-		if ( editor.config.imageUpload )
-			dialogElements.contents.push( uploadTab );		//Add upload tab.
-
-		dialogElements.contents.push( advancedTab );
-	}
-
-	return dialogElements;
-};
-
-CKEDITOR.dialog.add( 'image', function( editor ){
-		return imageDialog( editor, 'image' )
-	}
-);
-
-CKEDITOR.dialog.add( 'imagebutton', function( editor ){
-		return imageDialog( editor, 'imagebutton' )
-	}
-);
Index: Editor/branches/prototype/_source/dialogs/radio.js
===================================================================
--- /CKEditor/branches/prototype/_source/dialogs/radio.js	(revision 2670)
+++ 	(revision )
@@ -1,79 +1,0 @@
-/*
- * CKEditor - The text editor for Internet - http://ckeditor.com
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- *  - GNU General Public License Version 2 or later (the "GPL")
- *    http://www.gnu.org/licenses/gpl.html
- *
- *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- *    http://www.gnu.org/licenses/lgpl.html
- *
- *  - Mozilla Public License Version 1.1 or later (the "MPL")
- *    http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- */
-CKEDITOR.dialog.add( 'radio', function( editor )
-{
-	return {
-		title : editor.lang.radioButtonProp,
-		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
-		minWidth : 400,
-		minHeight : 200,
-		onOk: function( data ) {
-			return true;
-		},
-
-		onCancel: function() {
-		},
-		
-		onLoad: function( data ) {
-			return true;
-		},
-		contents : [
-			{
-				id : 'info',
-				label : editor.lang.radioButtonProp,
-				title : editor.lang.radioButtonProp,
-				accessKey : 'I',
-				elements : [
-					{
-						id : 'txtName',
-						type : 'text',
-						label : editor.lang.dlgCheckboxName,
-						'default' : '',
-						accessKey : 'N',
-						validate: function( data ) {
-							return true;
-						}
-					},
-					{
-						id : 'txtValue',
-						type : 'text',
-						label : editor.lang.dlgCheckboxValue,
-						'default' : '',
-						accessKey : 'V',
-						validate: function( data ) {
-							return true;
-						}
-					},
-					{
-						id : 'txtSelected',
-						type : 'checkbox',
-						label : editor.lang.dlgCheckboxSelected,
-						'default' : 'url',
-						accessKey : 'S',
-						validate: function( data ) {
-							return true;
-						}
-					}
-				]
-			}
-		]
-	};
-});
Index: Editor/branches/prototype/_source/dialogs/select.js
===================================================================
--- /CKEditor/branches/prototype/_source/dialogs/select.js	(revision 2670)
+++ 	(revision )
@@ -1,229 +1,0 @@
-/*
- * CKEditor - The text editor for Internet - http://ckeditor.com
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- *  - GNU General Public License Version 2 or later (the "GPL")
- *    http://www.gnu.org/licenses/gpl.html
- *
- *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- *    http://www.gnu.org/licenses/lgpl.html
- *
- *  - Mozilla Public License Version 1.1 or later (the "MPL")
- *    http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- */
-CKEDITOR.dialog.add( 'select', function( editor )
-{
-	return {
-		title : editor.lang.selectionFieldProp,
-		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
-		minWidth : 400,
-		minHeight : 300,
-		onOk: function( data ) {
-			return true;
-		},
-
-		onCancel: function() {
-		},
-		
-		onLoad: function( data ) {
-			return true;
-		},
-		contents : [
-			{
-				id : 'info',
-				label : editor.lang.dlgSelectSelectInfo,
-				title : editor.lang.dlgSelectSelectInfo,
-				accessKey : '',
-				elements : [
-					{
-						id : 'txtName',
-						type : 'text',
-						label : editor.lang.dlgCheckboxName,
-						'default' : '',
-						accessKey : 'N',
-						validate: function( data ) {
-							return true;
-						}
-					},
-					{
-						id : 'txtValue',
-						type : 'text',
-						label : editor.lang.dlgSelectValue,
-						'default' : '',
-						disabled : true						
-					},
-					{
-						type : 'hbox',
-						widths : [ '60%','40%'],
-						children :
-						[
-							{
-								id : 'txtSize',
-								type : 'text',
-								label : editor.lang.dlgSelectSize,
-								'default' : '',
-								accessKey : 'V',
-								validate: function( data ) {
-									if ( this.getValue()!='')
-									{
-										var selectSize = parseInt( this.getValue(), 10 );
-										if ( isNaN( selectSize ) )
-										{
-											this.select();
-											return false;
-										}
-									}
-									return true;
-								}
-							},
-							{
-								type : 'html',
-								style : 'border:1px solid black;padding: 30px;background-color:red',
-								html : '<br />'+editor.lang.dlgSelectLines		//Imposible to use styles.
-							}
-						]
-					}
-				]
-			},
-			{
-				id : 'options',
-				label : editor.lang.dlgSelectOpAvail,
-				title : editor.lang.dlgSelectOpAvail,
-				accessKey : 'M',
-				elements : [
-					{
-						type : 'hbox',
-						widths : [ '35%','35%','15%','15%'],
-						children :
-						[
-							{
-								id : 'txtName',
-								type : 'text',
-								label : editor.lang.dlgSelectOpText,
-								style : 'width:105px',
-								validate: function( data ) {
-									return true;
-								}
-							},
-							{
-								id : 'txtValue',
-								type : 'text',
-								label : editor.lang.dlgSelectOpValue,
-								style : 'width:105px',
-								validate: function( data ) {
-									return true;
-								}
-							},
-							{
-								type : 'button',
-								style : '',
-								label : editor.lang.dlgSelectBtnAdd,
-								title : editor.lang.dlgSelectBtnAdd,
-								onClick : function(){
-								}
-							},
-							{
-								type : 'button',
-								label : editor.lang.dlgSelectBtnModify,
-								title : editor.lang.dlgSelectBtnModify,
-								onClick : function(){
-								}
-							}
-						]
-					},
-					{
-						type : 'hbox',
-						widths : [ '35%','35%','30%'],
-						children :
-						[
-							{
-								type : 'select',
-								id : 'cmbText',
-								label : editor.lang.dlgSelectOpText,
-								title : editor.lang.dlgSelectOpText,
-								size : 5,
-								style : 'width:105px',
-								items:	[
-								],
-								onChange : function(){
-								}
-							},
-							{
-								type : 'select',
-								id : 'cmbText',
-								label : editor.lang.dlgSelectOpText,
-								title : editor.lang.dlgSelectOpText,
-								size : '5',
-								style : 'width:105px',
-								items:	[
-								],
-								onChange : function(){
-								}
-							},
-							{
-								type : 'vbox',
-								children : 
-								[
-									{
-										type : 'button',
-										style : 'width:100%;',
-										label : editor.lang.dlgSelectBtnUp,
-										title : editor.lang.dlgSelectBtnUp,
-										onClick : function(){
-										}
-									},
-									{
-										type : 'button',
-										style : 'width:100%;',
-										label : editor.lang.dlgSelectBtnDown,
-										title : editor.lang.dlgSelectBtnDown,
-										onClick : function(){
-										}
-									}
-								]
-							}
-						]
-					},	
-					{
-						type : 'hbox',
-						widths : [ '30%','30%','40%'],
-						children :
-						[
-							{
-								type : 'button',
-								label : editor.lang.dlgSelectBtnSetValue,
-								title : editor.lang.dlgSelectBtnSetValue,
-								onClick : function(){
-								}
-							},
-							{
-								type : 'button',
-								label : editor.lang.dlgSelectBtnDelete,
-								title : editor.lang.dlgSelectBtnDelete,
-								onClick : function(){
-								}
-							},
-							{
-								id : 'txtType',
-								type : 'checkbox',
-								label : editor.lang.dlgSelectChkMulti,
-								'default' : 'url',
-								accessKey : 'M',
-								validate: function( data ) {
-									return true;
-								}
-							},
-						]
-					}
-				]
-			}
-		]
-	};
-});
Index: Editor/branches/prototype/_source/dialogs/textfield.js
===================================================================
--- /CKEditor/branches/prototype/_source/dialogs/textfield.js	(revision 2670)
+++ 	(revision )
@@ -1,136 +1,0 @@
-/*
- * CKEditor - The text editor for Internet - http://ckeditor.com
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- *  - GNU General Public License Version 2 or later (the "GPL")
- *    http://www.gnu.org/licenses/gpl.html
- *
- *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- *    http://www.gnu.org/licenses/lgpl.html
- *
- *  - Mozilla Public License Version 1.1 or later (the "MPL")
- *    http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- */
-CKEDITOR.dialog.add( 'textfield', function( editor )
-{
-	return {
-		title : editor.lang.textFieldProp,
-		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
-		minWidth : 400,
-		minHeight : 230,
-		onOk: function( data ) {
-			return true;
-		},
-
-		onCancel: function() {
-		},
-		
-		onLoad: function( data ) {
-			return true;
-		},
-		contents : [
-			{
-				id : 'info',
-				label : editor.lang.textFieldProp,
-				title : editor.lang.textFieldProp,
-				accessKey : 'I',
-				elements : [
-					{
-						type : 'hbox',
-						widths : [ '50%', '50%' ],
-						children :
-						[
-							{
-								id : 'txtName',
-								type : 'text',
-								label : editor.lang.dlgTextName,
-								'default' : '',
-								accessKey : 'N',
-								validate: function( data ) {
-									return true;
-								}
-							},
-							{
-								id : 'txtValue',
-								type : 'text',
-								label : editor.lang.dlgTextValue,
-								'default' : '',
-								accessKey : 'V',
-								validate: function( data ) {
-									return true;
-								}
-							}
-						]
-					},
-					{
-						type : 'hbox',
-						widths : [ '50%', '50%' ],
-						children :
-						[
-							{
-								id : 'txtTextCharWidth',
-								type : 'text',
-								label : editor.lang.dlgTextCharWidth,
-								'default' : '',
-								accessKey : 'C',
-								validate: function( data ) {
-									if ( this.getValue()!='')
-									{
-										var charWidth = parseInt( this.getValue(), 10 );
-										if ( isNaN( charWidth ) )
-										{
-											this.select();
-											return false;
-										}
-									}
-									return true;
-								}
-							},
-							{
-								id : 'txtMaxChars',
-								type : 'text',
-								label : editor.lang.dlgTextMaxChars,
-								'default' : '',
-								accessKey : 'M',
-								validate: function( data ) {
-									if ( this.getValue()!='')
-									{
-										var maxChars = parseInt( this.getValue(), 10 );
-										if ( isNaN( maxChars ) )
-										{
-											this.select();
-											return false;
-										}
-									}
-									return true;
-								}
-							}
-						]
-					},
-					{
-						id : 'txtType',
-						type : 'select',
-						label : editor.lang.dlgTextType,
-						'default' : 'text',
-						accessKey : 'M',
-						items :
-						[
-							[ editor.lang.dlgTextTypeText, 'text' ],
-							[ editor.lang.dlgTextTypePass, 'pass' ],
-						],
-						validate: function( data ) {
-							return true;
-						}
-					}
-				]
-			}
-		]
-	};
-});
Index: /CKEditor/branches/prototype/_source/plugins/forms/dialogs/button.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/forms/dialogs/button.js	(revision 2671)
+++ /CKEditor/branches/prototype/_source/plugins/forms/dialogs/button.js	(revision 2671)
@@ -0,0 +1,89 @@
+/*
+ * CKEditor - The text editor for Internet - http://ckeditor.com
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ */
+CKEDITOR.dialog.add( 'button', function( editor )
+{
+	return {
+		title : editor.lang.buttonProp,
+		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
+		minWidth : 400,
+		minHeight : 230,
+		onOk: function( data )
+		{
+			return true;
+		},
+
+		onCancel: function()
+		{
+		},
+		
+		onLoad: function( data )
+		{
+			return true;
+		},
+		contents : [
+			{
+				id : 'info',
+				label : editor.lang.buttonProp,
+				title : editor.lang.buttonProp,
+				accessKey : 'I',
+				elements : [
+					{
+						id : 'txtName',
+						type : 'text',
+						label : editor.lang.dlgCheckboxName,
+						'default' : '',
+						validate: function( data )
+						{
+							return true;
+						}
+					},
+					{
+						id : 'txtValue',
+						type : 'text',
+						label : editor.lang.dlgButtonText,
+						accessKey : 'V',
+						validate: function( data )
+						{
+							return true;
+						}
+					},
+					{
+						id : 'txtType',
+						type : 'select',
+						label : editor.lang.dlgButtonType,
+						'default' : 'url',
+						accessKey : 'T',
+						items :
+						[
+							[ editor.lang.dlgButtonTypeBtn, 'button' ],
+							[ editor.lang.dlgButtonTypeSbm, 'submit' ],
+							[ editor.lang.dlgButtonTypeRst, 'reset' ]
+						],
+						validate: function( data )
+						{
+							return true;
+						}
+					}
+				]
+			}
+		]
+	};
+});
Index: /CKEditor/branches/prototype/_source/plugins/forms/dialogs/checkbox.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/forms/dialogs/checkbox.js	(revision 2671)
+++ /CKEditor/branches/prototype/_source/plugins/forms/dialogs/checkbox.js	(revision 2671)
@@ -0,0 +1,85 @@
+/*
+ * CKEditor - The text editor for Internet - http://ckeditor.com
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ */
+CKEDITOR.dialog.add( 'checkbox', function( editor )
+{
+	return {
+		title : editor.lang.checkboxProp,
+		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
+		minWidth : 400,
+		minHeight : 230,
+		onOk: function( data )
+		{
+			return true;
+		},
+
+		onCancel: function()
+		{
+		},
+		
+		onLoad: function( data )
+		{
+			return true;
+		},
+		contents : [
+			{
+				id : 'info',
+				label : editor.lang.checkboxProp,
+				title : editor.lang.checkboxProp,
+				accessKey : 'I',
+				elements : [
+					{
+						id : 'txtName',
+						type : 'text',
+						label : editor.lang.dlgCheckboxName,
+						'default' : '',
+						accessKey : 'N',
+						validate: function( data )
+						{
+							return true;
+						}
+					},
+					{
+						id : 'txtValue',
+						type : 'text',
+						label : editor.lang.dlgCheckboxValue,
+						'default' : '',
+						accessKey : 'V',
+						validate: function( data )
+						{
+							return true;
+						}
+					},
+					{
+						id : 'cmbSelected',
+						type : 'checkbox',
+						label : editor.lang.dlgCheckboxSelected,
+						'default' : 'url',
+						accessKey : 'S',
+						validate: function( data )
+						{
+							return true;
+						}
+					}
+				]
+			}
+		]
+	};
+});
Index: /CKEditor/branches/prototype/_source/plugins/forms/dialogs/form.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/forms/dialogs/form.js	(revision 2671)
+++ /CKEditor/branches/prototype/_source/plugins/forms/dialogs/form.js	(revision 2671)
@@ -0,0 +1,91 @@
+/*
+ * CKEditor - The text editor for Internet - http://ckeditor.com
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ */
+CKEDITOR.dialog.add( 'form', function( editor )
+{
+	return {
+		title : editor.lang.formProp,
+		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
+		minWidth : 400,
+		minHeight : 230,
+		onOk: function( data )
+		{
+			return true;
+		},
+
+		onCancel: function()
+		{
+		},
+		
+		onLoad: function( data )
+		{
+			return true;
+		},
+		contents : [
+			{
+				id : 'info',
+				label : editor.lang.formProp,
+				title : editor.lang.formProp,
+				accessKey : 'I',
+				elements : [
+					{
+						id : 'txtName',
+						type : 'text',
+						label : editor.lang.dlgFormName,
+						'default' : '',
+						accessKey : 'N',
+						validate: function( data )
+						{
+							return true;
+						}
+					},
+					{
+						id : 'txtAction',
+						type : 'text',
+						label : editor.lang.dlgFormAction,
+						'default' : '',
+						accessKey : 'A',
+						validate: function( data )
+						{
+							return true;
+						}
+					},
+					{
+						id : 'txtMethod',
+						type : 'select',
+						label : editor.lang.dlgFormMethod,
+						'default' : 'url',
+						accessKey : 'M',
+						items :
+						[
+							[ editor.lang.url, 'url' ],
+							[ editor.lang.linkToAnchor, 'anchor' ],
+							[ editor.lang.linkToEmail, 'email' ]
+						],
+						validate: function( data )
+						{
+							return true;
+						}
+					}
+				]
+			}
+		]
+	};
+});
Index: /CKEditor/branches/prototype/_source/plugins/forms/dialogs/hiddenfield.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/forms/dialogs/hiddenfield.js	(revision 2671)
+++ /CKEditor/branches/prototype/_source/plugins/forms/dialogs/hiddenfield.js	(revision 2671)
@@ -0,0 +1,74 @@
+/*
+ * CKEditor - The text editor for Internet - http://ckeditor.com
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ */
+CKEDITOR.dialog.add( 'hiddenfield', function( editor )
+{
+	return {
+		title : editor.lang.hiddenFieldProp,
+		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
+		minWidth : 400,
+		minHeight : 200,
+		onOk: function( data )
+		{
+			return true;
+		},
+
+		onCancel: function()
+		{
+		},
+		
+		onLoad: function( data )
+		{
+			return true;
+		},
+		contents : [
+			{
+				id : 'info',
+				label : editor.lang.hiddenFieldProp,
+				title : editor.lang.hiddenFieldProp,
+				accessKey : 'I',
+				elements : [
+					{
+						id : 'txtName',
+						type : 'text',
+						label : editor.lang.dlgHiddenName,
+						'default' : '',
+						accessKey : 'N',
+						validate: function( data )
+						{
+							return true;
+						}
+					},
+					{
+						id : 'txtValue',
+						type : 'text',
+						label : editor.lang.dlgHiddenValue,
+						'default' : '',
+						accessKey : 'V',
+						validate: function( data )
+						{
+							return true;
+						}
+					}
+				]
+			}
+		]
+	};
+});
Index: /CKEditor/branches/prototype/_source/plugins/forms/dialogs/radio.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/forms/dialogs/radio.js	(revision 2671)
+++ /CKEditor/branches/prototype/_source/plugins/forms/dialogs/radio.js	(revision 2671)
@@ -0,0 +1,85 @@
+/*
+ * CKEditor - The text editor for Internet - http://ckeditor.com
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ */
+CKEDITOR.dialog.add( 'radio', function( editor )
+{
+	return {
+		title : editor.lang.radioButtonProp,
+		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
+		minWidth : 400,
+		minHeight : 200,
+		onOk: function( data )
+		{
+			return true;
+		},
+
+		onCancel: function()
+		{
+		},
+		
+		onLoad: function( data )
+		{
+			return true;
+		},
+		contents : [
+			{
+				id : 'info',
+				label : editor.lang.radioButtonProp,
+				title : editor.lang.radioButtonProp,
+				accessKey : 'I',
+				elements : [
+					{
+						id : 'txtName',
+						type : 'text',
+						label : editor.lang.dlgCheckboxName,
+						'default' : '',
+						accessKey : 'N',
+						validate: function( data )
+						{
+							return true;
+						}
+					},
+					{
+						id : 'txtValue',
+						type : 'text',
+						label : editor.lang.dlgCheckboxValue,
+						'default' : '',
+						accessKey : 'V',
+						validate: function( data )
+						{
+							return true;
+						}
+					},
+					{
+						id : 'txtSelected',
+						type : 'checkbox',
+						label : editor.lang.dlgCheckboxSelected,
+						'default' : 'url',
+						accessKey : 'S',
+						validate: function( data )
+						{
+							return true;
+						}
+					}
+				]
+			}
+		]
+	};
+});
Index: /CKEditor/branches/prototype/_source/plugins/forms/dialogs/select.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/forms/dialogs/select.js	(revision 2671)
+++ /CKEditor/branches/prototype/_source/plugins/forms/dialogs/select.js	(revision 2671)
@@ -0,0 +1,245 @@
+/*
+ * CKEditor - The text editor for Internet - http://ckeditor.com
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ */
+CKEDITOR.dialog.add( 'select', function( editor )
+{
+	return {
+		title : editor.lang.selectionFieldProp,
+		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
+		minWidth : 400,
+		minHeight : 300,
+		onOk: function( data )
+		{
+			return true;
+		},
+
+		onCancel: function()
+		{
+		},
+		
+		onLoad: function( data )
+		{
+			return true;
+		},
+		contents : [
+			{
+				id : 'info',
+				label : editor.lang.dlgSelectSelectInfo,
+				title : editor.lang.dlgSelectSelectInfo,
+				accessKey : '',
+				elements : [
+					{
+						id : 'txtName',
+						type : 'text',
+						label : editor.lang.dlgCheckboxName,
+						'default' : '',
+						accessKey : 'N',
+						validate: function( data )
+						{
+							return true;
+						}
+					},
+					{
+						id : 'txtValue',
+						type : 'text',
+						label : editor.lang.dlgSelectValue,
+						'default' : '',
+						disabled : true						
+					},
+					{
+						type : 'hbox',
+						widths : [ '60%','40%'],
+						children :
+						[
+							{
+								id : 'txtSize',
+								type : 'text',
+								label : editor.lang.dlgSelectSize,
+								'default' : '',
+								accessKey : 'V',
+								validate: function( data )
+								{
+									if ( this.getValue() != '' )
+									{
+										var selectSize = parseInt( this.getValue(), 10 );
+										if ( isNaN( selectSize ) )
+										{
+											this.select();
+											return false;
+										}
+									}
+									return true;
+								}
+							},
+							{
+								type : 'html',
+								style : 'border:1px solid black;padding: 30px;background-color:red',
+								html : '<br />'+editor.lang.dlgSelectLines		//Imposible to use styles.
+							}
+						]
+					}
+				]
+			},
+			{
+				id : 'options',
+				label : editor.lang.dlgSelectOpAvail,
+				title : editor.lang.dlgSelectOpAvail,
+				accessKey : 'M',
+				elements : [
+					{
+						type : 'hbox',
+						widths : [ '35%', '35%', '15%', '15%' ],
+						children :
+						[
+							{
+								id : 'txtName',
+								type : 'text',
+								label : editor.lang.dlgSelectOpText,
+								style : 'width:105px',
+								validate: function( data )
+								{
+									return true;
+								}
+							},
+							{
+								id : 'txtValue',
+								type : 'text',
+								label : editor.lang.dlgSelectOpValue,
+								style : 'width:105px',
+								validate: function( data )
+								{
+									return true;
+								}
+							},
+							{
+								type : 'button',
+								style : '',
+								label : editor.lang.dlgSelectBtnAdd,
+								title : editor.lang.dlgSelectBtnAdd,
+								onClick : function()
+								{
+								}
+							},
+							{
+								type : 'button',
+								label : editor.lang.dlgSelectBtnModify,
+								title : editor.lang.dlgSelectBtnModify,
+								onClick : function()
+								{
+								}
+							}
+						]
+					},
+					{
+						type : 'hbox',
+						widths : [ '35%','35%','30%'],
+						children :
+						[
+							{
+								type : 'select',
+								id : 'cmbText',
+								label : '',
+								title : '',
+								size : 5,
+								style : 'width:105px',
+								items:	[
+								],
+								onChange : function()
+								{
+								}
+							},
+							{
+								type : 'select',
+								id : 'cmbText',
+								label : '',
+								title : '',
+								size : 5,
+								style : 'width:105px',
+								items:	[
+								],
+								onChange : function()
+								{
+								}
+							},
+							{
+								type : 'vbox',
+								children : 
+								[
+									{
+										type : 'button',
+										style : 'width:100%;',
+										label : editor.lang.dlgSelectBtnUp,
+										title : editor.lang.dlgSelectBtnUp,
+										onClick : function()
+										{
+										}
+									},
+									{
+										type : 'button',
+										style : 'width:100%;',
+										label : editor.lang.dlgSelectBtnDown,
+										title : editor.lang.dlgSelectBtnDown,
+										onClick : function()
+										{
+										}
+									}
+								]
+							}
+						]
+					},	
+					{
+						type : 'hbox',
+						widths : [ '30%', '30%', '40%' ],
+						children :
+						[
+							{
+								type : 'button',
+								label : editor.lang.dlgSelectBtnSetValue,
+								title : editor.lang.dlgSelectBtnSetValue,
+								onClick : function()
+								{
+								}
+							},
+							{
+								type : 'button',
+								label : editor.lang.dlgSelectBtnDelete,
+								title : editor.lang.dlgSelectBtnDelete,
+								onClick : function()
+								{
+								}
+							},
+							{
+								id : 'txtType',
+								type : 'checkbox',
+								label : editor.lang.dlgSelectChkMulti,
+								'default' : 'url',
+								accessKey : 'M',
+								validate: function( data )
+								{
+									return true;
+								}
+							},
+						]
+					}
+				]
+			}
+		]
+	};
+});
Index: /CKEditor/branches/prototype/_source/plugins/forms/dialogs/textfield.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/forms/dialogs/textfield.js	(revision 2671)
+++ /CKEditor/branches/prototype/_source/plugins/forms/dialogs/textfield.js	(revision 2671)
@@ -0,0 +1,144 @@
+/*
+ * CKEditor - The text editor for Internet - http://ckeditor.com
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ */
+CKEDITOR.dialog.add( 'textfield', function( editor )
+{
+	return {
+		title : editor.lang.textFieldProp,
+		resizable : CKEDITOR.DIALOG_RESIZE_NONE,
+		minWidth : 400,
+		minHeight : 230,
+		onOk: function( data )
+		{
+			return true;
+		},
+
+		onCancel: function()
+		{
+		},
+		
+		onLoad: function( data )
+		{
+			return true;
+		},
+		contents : [
+			{
+				id : 'info',
+				label : editor.lang.textFieldProp,
+				title : editor.lang.textFieldProp,
+				accessKey : 'I',
+				elements : [
+					{
+						type : 'hbox',
+						widths : [ '50%', '50%' ],
+						children :
+						[
+							{
+								id : 'txtName',
+								type : 'text',
+								label : editor.lang.dlgTextName,
+								'default' : '',
+								accessKey : 'N',
+								validate: function( data )
+								{
+									return true;
+								}
+							},
+							{
+								id : 'txtValue',
+								type : 'text',
+								label : editor.lang.dlgTextValue,
+								'default' : '',
+								accessKey : 'V',
+								validate: function( data )
+								{
+									return true;
+								}
+							}
+						]
+					},
+					{
+						type : 'hbox',
+						widths : [ '50%', '50%' ],
+						children :
+						[
+							{
+								id : 'txtTextCharWidth',
+								type : 'text',
+								label : editor.lang.dlgTextCharWidth,
+								'default' : '',
+								accessKey : 'C',
+								validate: function( data )
+								{
+									if ( this.getValue() != '' )
+									{
+										var charWidth = parseInt( this.getValue(), 10 );
+										if ( isNaN( charWidth ) )
+										{
+											this.select();
+											return false;
+										}
+									}
+									return true;
+								}
+							},
+							{
+								id : 'txtMaxChars',
+								type : 'text',
+								label : editor.lang.dlgTextMaxChars,
+								'default' : '',
+								accessKey : 'M',
+								validate: function( data )
+								{
+									if ( this.getValue() != '' )
+									{
+										var maxChars = parseInt( this.getValue(), 10 );
+										if ( isNaN( maxChars ) )
+										{
+											this.select();
+											return false;
+										}
+									}
+									return true;
+								}
+							}
+						]
+					},
+					{
+						id : 'txtType',
+						type : 'select',
+						label : editor.lang.dlgTextType,
+						'default' : 'text',
+						accessKey : 'M',
+						items :
+						[
+							[ editor.lang.dlgTextTypeText, 'text' ],
+							[ editor.lang.dlgTextTypePass, 'pass' ],
+						],
+						validate: function( data )
+						{
+							return true;
+						}
+					}
+				]
+			}
+		]
+	};
+});
Index: /CKEditor/branches/prototype/_source/plugins/forms/plugin.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/forms/plugin.js	(revision 2670)
+++ /CKEditor/branches/prototype/_source/plugins/forms/plugin.js	(revision 2671)
@@ -22,5 +22,5 @@
 CKEDITOR.plugins.add( 'forms',
 {
-	init : function( editor, pluginPath )
+	init : function( editor )
 	{
 		var forms = CKEDITOR.plugins.forms;
@@ -81,12 +81,12 @@
 		editor.addCommand( 'hiddenfield', forms.commands.hiddenfield );
 
-		CKEDITOR.dialog.add( 'form',		'_source/dialogs/form.js' );
-		CKEDITOR.dialog.add( 'checkbox',	'_source/dialogs/checkbox.js' );
-		CKEDITOR.dialog.add( 'radio', 		'_source/dialogs/radio.js' );
-		CKEDITOR.dialog.add( 'textfield',	'_source/dialogs/textfield.js' );
-		CKEDITOR.dialog.add( 'select',		'_source/dialogs/select.js' );
-		CKEDITOR.dialog.add( 'button',		'_source/dialogs/button.js' );
-		CKEDITOR.dialog.add( 'imagebutton',	'_source/dialogs/image.js' );
-		CKEDITOR.dialog.add( 'hiddenfield',	'_source/dialogs/hiddenfield.js' );
+		CKEDITOR.dialog.add( 'form',		this.path + 'dialogs/form.js' );
+		CKEDITOR.dialog.add( 'checkbox',	this.path + 'dialogs/checkbox.js' );
+		CKEDITOR.dialog.add( 'radio', 		this.path + 'dialogs/radio.js' );
+		CKEDITOR.dialog.add( 'textfield',	this.path + 'dialogs/textfield.js' );
+		CKEDITOR.dialog.add( 'select',		this.path + 'dialogs/select.js' );
+		CKEDITOR.dialog.add( 'button',		this.path + 'dialogs/button.js' );
+		CKEDITOR.dialog.add( 'hiddenfield',	this.path + 'dialogs/hiddenfield.js' );
+		CKEDITOR.dialog.add( 'imagebutton',	CKEDITOR.plugins.getPath('image') + 'dialogs/image.js' );
 	}
 } );
Index: /CKEditor/branches/prototype/_source/plugins/image/dialogs/image.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/image/dialogs/image.js	(revision 2671)
+++ /CKEditor/branches/prototype/_source/plugins/image/dialogs/image.js	(revision 2671)
@@ -0,0 +1,369 @@
+/*
+ * CKEditor - The text editor for Internet - http://ckeditor.com
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ */
+
+imageDialog = function( editor, dialogType )
+{
+	var uploadAction = 'nowhere.php';
+	var imageDialog = ( dialogType == 'image' );
+
+	var linkTab = 
+	{
+		id : 'Link',
+		label : editor.lang.linkTitle,
+		padding : 0,
+		elements : 
+		[
+			{
+				id : 'txtUrl',
+				type : 'text',
+				label : editor.lang.dlgImgURL,
+				style : 'width: 385px',
+				validate: function( data ) {
+					return true;
+				}
+			},
+			{
+				type : 'button',
+				id : 'browse',
+				style : 'float:right',
+				label : editor.lang.browseServer,
+			},
+			{
+				id : 'cmbTarget',
+				type : 'select',
+				label : editor.lang.linkTarget,
+				style : 'width : 90px',
+				items :
+				[
+					[ editor.lang.linkTargetNotSet , ''],
+					[ editor.lang.linkTargetNew , '_blank'],
+					[ editor.lang.linkTargetTop , '_top'],
+					[ editor.lang.linkTargetSelf , '_self'],
+					[ editor.lang.linkTargetParent , '_parent'],
+				]
+			},
+		]
+	};
+	
+	var uploadTab = 
+	{
+		id : 'Upload',
+		label : editor.lang.dlgImgUpload,
+		elements : 
+		[
+			{
+				type : 'file',
+				id : 'upload',
+				label : editor.lang.dlgImgBtnUpload,
+				action : uploadAction,
+				size : 38
+			},
+			{
+				type : 'fileButton',
+				id : 'uploadButton',
+				label : editor.lang.dlgImgBtnUpload,
+				'for' : [ 'Upload', 'upload' ]
+			}
+		]
+	};
+
+	dialogElements = 
+	{
+		title : ( imageDialog ) ? editor.lang.dlgImgTitle : editor.lang.imageButtonProp,
+		minWidth : 450,
+		minHeight : 400,
+		contents : [
+			{
+				id : 'info',
+				label : editor.lang.dlgImgInfoTab,
+				accessKey : 'I',
+				elements :
+				[
+					{
+						type : 'vbox',
+						padding : 0,
+						children : 
+						[
+							{
+								type : 'html',
+								style : 'padding:0px;margin:0px',
+								html : '<span>' + CKEDITOR.tools.htmlEncode( editor.lang.dlgImgURL ) + '</span>'
+							},
+							{
+								type : 'hbox',
+								widths : [ '290px', '120px' ],
+								children : 
+								[
+									{
+										id : 'txtUrl',
+										type : 'text',
+										labelLayout : 'horizontal',
+										label : '',
+										style : 'width: 280px',
+										validate: function( data ) {
+											return true;
+										}
+									},
+									{
+										type : 'button',
+										id : 'browse',
+										label : editor.lang.browseServer,
+									},
+								]
+							},
+						]
+					},
+					{
+						type : 'hbox',
+						widths : [ '100px', '250px' ],
+						align : 'top',
+						children : 
+						[
+							{
+								type : 'vbox',
+								padding : 0,
+								style : 'width:100px',
+								children : 
+								[
+									{
+										type : 'text',
+										id : 'txtWidth',
+										style : 'width:50px',
+										label : editor.lang.dlgImgWidth,
+										validate: function( data ) {
+											if ( this.getValue() != '' )
+											{
+												if ( isNaN( parseInt( this.getValue(), 10 ) ) )
+												{
+													this.select();
+													return false;
+												}
+											}
+											return true;
+										}
+									},
+									{
+										type : 'text',
+										id : 'txtHeight',
+										style : 'width:50px',
+										label : editor.lang.dlgImgHeight,
+										validate: function( data ) {
+											if ( this.getValue() != '' )
+											{
+												if ( isNaN( parseInt( this.getValue(), 10 ) ) )
+												{
+													this.select();
+													return false;
+												}
+											}
+											return true;
+										}
+									},
+									{
+										id : 'txtBorder',
+										type : 'text',
+										style : 'width:50px',
+										label : editor.lang.dlgImgBorder,
+										validate: function( data ) {
+											if ( this.getValue() != '' )
+											{
+												if ( isNaN( parseInt( this.getValue(), 10 ) ) )
+												{
+													this.select();
+													return false;
+												}
+											}
+											return true;
+										}
+									},
+									{
+										id : 'txtHSpace',
+										type : 'text',
+										style : 'width:50px',
+										label : editor.lang.dlgImgHSpace,
+										validate: function( data ) {
+											if ( this.getValue() != '' )
+											{
+												if ( isNaN( parseInt( this.getValue(), 10 ) ) )
+												{
+													this.select();
+													return false;
+												}
+											}
+											return true;
+										}
+									},
+									{
+										id : 'txtVSpace',
+										type : 'text',
+										label : editor.lang.dlgImgVSpace,
+										style : 'width:50px',
+										validate: function( data ) {
+											if ( this.getValue() != '' )
+											{
+												if ( isNaN( parseInt( this.getValue(), 10 ) ) )
+												{
+													this.select();
+													return false;
+												}
+											}
+											return true;
+										}
+									},
+									{
+										id : 'cmbAlign',
+										type : 'select',
+										label : editor.lang.dlgImgAlign,
+										style : 'width : 90px',
+										items :
+										[
+											[ editor.lang.dlgGenNotSet , ''],
+											[ editor.lang.dlgImgAlignLeft , 'left'],
+											[ editor.lang.dlgImgAlignAbsBottom , 'absBottom'],
+											[ editor.lang.dlgImgAlignAbsMiddle , 'absMiddle'],
+											[ editor.lang.dlgImgAlignBaseline , 'baseline'],
+											[ editor.lang.dlgImgAlignBottom , 'bottom'],
+											[ editor.lang.dlgImgAlignMiddle , 'middle'],
+											[ editor.lang.dlgImgAlignRight , 'right'],
+											[ editor.lang.dlgImgAlignTextTop , 'textTop'],
+											[ editor.lang.dlgImgAlignTop , 'top'],
+										]
+									},
+								]
+							},
+							{
+								type : 'vbox',
+								height : '100%',
+								children : 
+								[
+									{
+										type : 'html',
+										style : 'width:260px; height:180px; margin:0px 0px 0px 10px;',
+										html: '<div>' + CKEDITOR.tools.htmlEncode( editor.lang.dlgImgPreview ) +
+												'<div id="ImagePreviewBox" style="border: 1px solid black;height:100%"></div>'+
+												'</div>'
+									}
+								]
+							}
+						]
+					},
+					{
+						id : 'txtAlt',
+						type : 'text',
+						label : editor.lang.dlgImgAlt,
+						accessKey : 'A',
+						style : 'width:385px',
+						validate: function( data ) {
+							return true;
+						}
+					},
+				]
+			},
+			{
+				id : 'advanced',
+				label : editor.lang.dlgDivAdvancedTab,
+				elements : 
+				[
+					{
+						type : 'hbox',
+						widths : [ '40%', '30%', '30%' ],
+						children :
+						[
+							{
+								type : 'text',
+								id : 'linkId',
+								label : editor.lang.dlgGenId
+							},
+							{
+								id : 'cmbLangDir',
+								type : 'select',
+								label : editor.lang.dlgGenLangDir,
+								style : 'width : 100%;',
+								items :
+								[
+									[ editor.lang.dlgGenNotSet, '' ],
+									[ editor.lang.dlgGenLangDirLtr, 'ltr' ],
+									[ editor.lang.dlgGenLangDirRtl, 'rtl' ]
+								]
+							},
+							{
+								type : 'text',
+								id : 'txtLangCode',
+								label : editor.lang.dlgGenLangCode
+							},
+						]
+					},
+					{
+						type : 'text',
+						id : 'txtGenLongDescr',
+						label : editor.lang.dlgGenLongDescr
+					},
+					{
+						type : 'hbox',
+						widths : [ '50%', '50%' ],
+						children :
+						[
+							{
+								type : 'text',
+								id : 'txtGenClass',
+								label : editor.lang.dlgGenClass
+							},
+							{
+								type : 'text',
+								id : 'txtGenTitle',
+								label : editor.lang.dlgGenTitle
+							},
+						]
+					},
+					{
+						type : 'text',
+						id : 'txtdlgGenStyle',
+						label : editor.lang.dlgGenStyle
+					},
+				]
+			}
+		]
+	};
+
+	if ( imageDialog || editor.config.imageUpload )
+	{
+	var advancedTab = dialogElements.contents.pop();
+		if ( imageDialog )
+			dialogElements.contents.push( linkTab );		//Add the Link tab.
+
+		if ( editor.config.imageUpload )
+			dialogElements.contents.push( uploadTab );		//Add upload tab.
+
+		dialogElements.contents.push( advancedTab );
+	}
+
+	return dialogElements;
+};
+
+CKEDITOR.dialog.add( 'image', function( editor ){
+		return imageDialog( editor, 'image' )
+	}
+);
+
+CKEDITOR.dialog.add( 'imagebutton', function( editor ){
+		return imageDialog( editor, 'imagebutton' )
+	}
+);
Index: /CKEditor/branches/prototype/_source/plugins/image/plugin.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/image/plugin.js	(revision 2670)
+++ /CKEditor/branches/prototype/_source/plugins/image/plugin.js	(revision 2671)
@@ -22,5 +22,5 @@
 CKEDITOR.plugins.add( 'image',
 {
-	init : function( editor, pluginPath )
+	init : function( editor )
 	{
 		var image = CKEDITOR.plugins.image;
@@ -32,5 +32,5 @@
 				command : 'image'
 			});
-		CKEDITOR.dialog.add( 'image',		'_source/dialogs/image.js' );
+		CKEDITOR.dialog.add( 'image', this.path + 'dialogs/image.js' );
 	}
 } );
