Index: CKEditor/branches/features/adobeair/_source/core/dom/document.js
===================================================================
--- CKEditor/branches/features/adobeair/_source/core/dom/document.js	(revision 6131)
+++ CKEditor/branches/features/adobeair/_source/core/dom/document.js	(revision 6132)
@@ -28,171 +28,171 @@
 CKEDITOR.tools.extend( CKEDITOR.dom.document.prototype,
 	/** @lends CKEDITOR.dom.document.prototype */
-{
-	/**
-	 * Appends a CSS file to the document.
-	 * @param {String} cssFileUrl The CSS file URL.
-	 * @example
-	 * <b>CKEDITOR.document.appendStyleSheet( '/mystyles.css' )</b>;
-	 */
-	appendStyleSheet : function( cssFileUrl )
 	{
-		if ( this.$.createStyleSheet )
+		/**
+		 * Appends a CSS file to the document.
+		 * @param {String} cssFileUrl The CSS file URL.
+		 * @example
+		 * <b>CKEDITOR.document.appendStyleSheet( '/mystyles.css' )</b>;
+		 */
+		appendStyleSheet : function( cssFileUrl )
+		{
+			if ( this.$.createStyleSheet )
 				this.$.createStyleSheet( cssFileUrl );
-		else
-		{
+			else
+			{
 				var link = new CKEDITOR.dom.element( 'link' );
-			link.setAttributes(
-			{
-				rel		:'stylesheet',
-				type	: 'text/css',
-				href	: cssFileUrl
-			});
+				link.setAttributes(
+					{
+						rel		:'stylesheet',
+						type	: 'text/css',
+						href	: cssFileUrl
+					});
 
 				this.getHead().append( link );
-		}
-	},
-
-	appendStyleText : function( cssStyleText )
-	{
-		if ( this.$.createStyleSheet )
-		{
-			var styleSheet = this.$.createStyleSheet( "" );
-			styleSheet.cssText = cssStyleText ;
-		}
-		else
-		{
-			var style = new CKEDITOR.dom.element( 'style', this );
-			style.append( new CKEDITOR.dom.text( cssStyleText, this ) );
-			this.getHead().append( style );
-		}
-	},
-
-	createElement : function( name, attribsAndStyles )
-	{
-		var element = new CKEDITOR.dom.element( name, this );
-
-		if ( attribsAndStyles )
-		{
-			if ( attribsAndStyles.attributes )
-				element.setAttributes( attribsAndStyles.attributes );
-
-			if ( attribsAndStyles.styles )
-				element.setStyles( attribsAndStyles.styles );
-		}
-
-		return element;
-	},
-
-	createText : function( text )
-	{
+			}
+		},
+
+		appendStyleText : function( cssStyleText )
+		{
+			if ( this.$.createStyleSheet )
+			{
+				var styleSheet = this.$.createStyleSheet( "" );
+				styleSheet.cssText = cssStyleText ;
+			}
+			else
+			{
+				var style = new CKEDITOR.dom.element( 'style', this );
+				style.append( new CKEDITOR.dom.text( cssStyleText, this ) );
+				this.getHead().append( style );
+			}
+		},
+
+		createElement : function( name, attribsAndStyles )
+		{
+			var element = new CKEDITOR.dom.element( name, this );
+
+			if ( attribsAndStyles )
+			{
+				if ( attribsAndStyles.attributes )
+					element.setAttributes( attribsAndStyles.attributes );
+
+				if ( attribsAndStyles.styles )
+					element.setStyles( attribsAndStyles.styles );
+			}
+
+			return element;
+		},
+
+		createText : function( text )
+		{
 			return new CKEDITOR.dom.text( text, this );
-	},
-
-	focus : function()
-	{
-		this.getWindow().focus();
-	},
-
-	/**
-	 * Gets and element based on its id.
-	 * @param {String} elementId The element id.
-	 * @returns {CKEDITOR.dom.element} The element instance, or null if not found.
-	 * @example
-	 * var element = <b>CKEDITOR.document.getById( 'myElement' )</b>;
-	 * alert( element.getId() );  // "myElement"
-	 */
-	getById : function( elementId )
-	{
+		},
+
+		focus : function()
+		{
+			this.getWindow().focus();
+		},
+
+		/**
+		 * Gets and element based on its id.
+		 * @param {String} elementId The element id.
+		 * @returns {CKEDITOR.dom.element} The element instance, or null if not found.
+		 * @example
+		 * var element = <b>CKEDITOR.document.getById( 'myElement' )</b>;
+		 * alert( element.getId() );  // "myElement"
+		 */
+		getById : function( elementId )
+		{
 			var $ = this.$.getElementById( elementId );
 			return $ ? new CKEDITOR.dom.element( $ ) : null;
-	},
-
-	getByAddress : function( address, normalized )
-	{
-		var $ = this.$.documentElement;
+		},
+
+		getByAddress : function( address, normalized )
+		{
+			var $ = this.$.documentElement;
 
 			for ( var i = 0 ; $ && i < address.length ; i++ )
-		{
-			var target = address[ i ];
-
-			if ( !normalized )
-			{
-				$ = $.childNodes[ target ];
-				continue;
-			}
-
-			var currentIndex = -1;
-
-				for (var j = 0 ; j < $.childNodes.length ; j++ )
-			{
-				var candidate = $.childNodes[ j ];
-
-				if ( normalized === true &&
-					 candidate.nodeType == 3 &&
-					 candidate.previousSibling &&
-					 candidate.previousSibling.nodeType == 3 )
-				{
+			{
+				var target = address[ i ];
+
+				if ( !normalized )
+				{
+					$ = $.childNodes[ target ];
 					continue;
 				}
 
-				currentIndex++;
-
-				if ( currentIndex == target )
-				{
-					$ = candidate;
-					break;
+				var currentIndex = -1;
+
+				for (var j = 0 ; j < $.childNodes.length ; j++ )
+				{
+					var candidate = $.childNodes[ j ];
+
+					if ( normalized === true &&
+							candidate.nodeType == 3 &&
+							candidate.previousSibling &&
+							candidate.previousSibling.nodeType == 3 )
+					{
+						continue;
+					}
+
+					currentIndex++;
+
+					if ( currentIndex == target )
+					{
+						$ = candidate;
+						break;
+					}
 				}
 			}
-		}
 
 			return $ ? new CKEDITOR.dom.node( $ ) : null;
-	},
-
-	getElementsByTag : function( tagName, namespace )
-	{
-		if ( !CKEDITOR.env.ie && namespace )
-			tagName = namespace + ':' + tagName;
+		},
+
+		getElementsByTag : function( tagName, namespace )
+		{
+			if ( !CKEDITOR.env.ie && namespace )
+				tagName = namespace + ':' + tagName;
 			return new CKEDITOR.dom.nodeList( this.$.getElementsByTagName( tagName ) );
-	},
-
-	/**
-	 * Gets the &lt;head&gt; element for this document.
-	 * @returns {CKEDITOR.dom.element} The &lt;head&gt; element.
-	 * @example
-	 * var element = <b>CKEDITOR.document.getHead()</b>;
-	 * alert( element.getName() );  // "head"
-	 */
-	getHead : function()
-	{
-		var head = this.$.getElementsByTagName( 'head' )[0];
-		if ( !head )
-			head = this.getDocumentElement().append( new CKEDITOR.dom.element( 'head' ), true );
-		else
-			head = new CKEDITOR.dom.element( head );
-
-		return (
-				this.getHead = function()
+		},
+
+		/**
+		 * Gets the &lt;head&gt; element for this document.
+		 * @returns {CKEDITOR.dom.element} The &lt;head&gt; element.
+		 * @example
+		 * var element = <b>CKEDITOR.document.getHead()</b>;
+		 * alert( element.getName() );  // "head"
+		 */
+		getHead : function()
+		{
+			var head = this.$.getElementsByTagName( 'head' )[0];
+			if ( !head )
+				head = this.getDocumentElement().append( new CKEDITOR.dom.element( 'head' ), true );
+			else
+				head = new CKEDITOR.dom.element( head );
+
+			return (
+			this.getHead = function()
 				{
 					return head;
 				})();
-	},
-
-	/**
-	 * Gets the &lt;body&gt; element for this document.
-	 * @returns {CKEDITOR.dom.element} The &lt;body&gt; element.
-	 * @example
-	 * var element = <b>CKEDITOR.document.getBody()</b>;
-	 * alert( element.getName() );  // "body"
-	 */
-	getBody : function()
-	{
+		},
+
+		/**
+		 * Gets the &lt;body&gt; element for this document.
+		 * @returns {CKEDITOR.dom.element} The &lt;body&gt; element.
+		 * @example
+		 * var element = <b>CKEDITOR.document.getBody()</b>;
+		 * alert( element.getName() );  // "body"
+		 */
+		getBody : function()
+		{
 			var body = new CKEDITOR.dom.element( this.$.body );
-		
-		return (
-				this.getBody = function()
+
+			return (
+			this.getBody = function()
 				{
 					return body;
 				})();
-	},
+		},
 
 		/**
@@ -204,10 +204,10 @@
 			var documentElement = new CKEDITOR.dom.element( this.$.documentElement );
 
-		return (
-				this.getDocumentElement = function()
+			return (
+			this.getDocumentElement = function()
 				{
 					return documentElement;
 				})();
-	},
+		},
 
 		/**
@@ -219,88 +219,87 @@
 			var win = new CKEDITOR.dom.window( this.$.parentWindow || this.$.defaultView );
 
-		return (
-				this.getWindow = function()
+			return (
+			this.getWindow = function()
 				{
 					return win;
 				})();
-	},
-
-	/**
-	 * Wrapper for document.write that works around certain security
-	 * limitation because of the closed stream when calling this method.
-	 * @param html
-	 * @param mode
-	 */
-	write : function( html, mode )
-	{
-		// document.write() or document.writeln() fail silently after
-		// the page load event in Adobe AIR.
-		// DOM manipulation could be used instead.
-		if ( CKEDITOR.env.air && this.getBody() )
-		{
-			// We're taking the below extra work only because innerHTML
-			// on <html> element doesn't work as expected.
-			var doc = this;
-
-			// Grab all the <link> and <style>.
-			var styleSheetLinks = [],
-					styleTexts = [];
-
-			html.replace( /<style[^>]*>([\s\S]*?)<\/style>/gi, function ( match, styleText )
-			{
-				styleTexts.push( styleText );
-			});
-
-			html.replace( /<link[^>]*?>/gi, function( linkHtml )
-			{
-				styleSheetLinks.push( linkHtml );
-			});
-
-			if ( styleSheetLinks.length )
-			{
-				// Inject the <head> HTML inside a <div>.
-				// Do that before getDocumentHead because WebKit moves
-				// <link css> elements to the <head> at this point.
-				var div = new CKEDITOR.dom.element( 'div', doc );
-				div.setHtml( styleSheetLinks.join( '' ) );
-				// Move the <div> nodes to <head>.
-				div.moveChildren( this.getHead( doc ) );
-			}
-
-			// Create style nodes for inline css.
-			// ( <style> content doesn't applied when setting via innerHTML )
-			var count = styleTexts.length;
-			if ( count )
-			{
-				var head = this.getHead( doc );
-				for ( var i = 0; i < count; i++ )
-				{
-					var node = head.append( 'style' );
-					node.setAttribute( "type", "text/css" );
-					node.append( doc.createText( styleTexts[ i ] ) );
+		},
+
+		/**
+		 * Wrapper for document.write that works around certain security
+		 * limitation because of the closed stream when calling this method.
+		 * @param html
+		 * @param mode
+		 */
+		write : function( html, mode )
+		{
+			// document.write() or document.writeln() fail silently after
+			// the page load event in Adobe AIR.
+			// DOM manipulation could be used instead.
+			if ( CKEDITOR.env.air && this.getBody() )
+			{
+				// We're taking the below extra work only because innerHTML
+				// on <html> element doesn't work as expected.
+				var doc = this;
+
+				// Grab all the <link> and <style>.
+				var styleSheetLinks = [],
+						styleTexts = [];
+
+				html.replace( /<style[^>]*>([\s\S]*?)<\/style>/gi, function ( match, styleText )
+				{
+					styleTexts.push( styleText );
+				});
+
+				html.replace( /<link[^>]*?>/gi, function( linkHtml )
+				{
+					styleSheetLinks.push( linkHtml );
+				});
+
+				if ( styleSheetLinks.length )
+				{
+					// Inject the <head> HTML inside a <div>.
+					// Do that before getDocumentHead because WebKit moves
+					// <link css> elements to the <head> at this point.
+					var div = new CKEDITOR.dom.element( 'div', doc );
+					div.setHtml( styleSheetLinks.join( '' ) );
+					// Move the <div> nodes to <head>.
+					div.moveChildren( this.getHead( doc ) );
 				}
-			}
+
+				// Create style nodes for inline css.
+				// ( <style> content doesn't applied when setting via innerHTML )
+				var count = styleTexts.length;
+				if ( count )
+				{
+					var head = this.getHead( doc );
+					for ( var i = 0; i < count; i++ )
+					{
+						var node = head.append( 'style' );
+						node.setAttribute( "type", "text/css" );
+						node.append( doc.createText( styleTexts[ i ] ) );
+					}
+				}
 			
-			// Copy the entire <body>.  
-			doc.getBody().setAttributes( CKEDITOR.htmlParser.fragment.fromHtml(
-				// Separate body content and attributes.
-				html.replace( /(<body[^>]*>)([\s\S]*)(?=<\/body>)/i,
-					function( match, startTag, innerHTML )
-					{
-						doc.getBody().setHtml( innerHTML );
-						return startTag;
-					})
-				).children[ 0 ].attributes );
+				// Copy the entire <body>.  
+				doc.getBody().setAttributes( CKEDITOR.htmlParser.fragment.fromHtml(
+					// Separate body content and attributes.
+					html.replace( /(<body[^>]*>)([\s\S]*)(?=<\/body>)/i,
+						function( match, startTag, innerHTML )
+						{
+							doc.getBody().setHtml( innerHTML );
+							return startTag;
+						})
+					).children[ 0 ].attributes );
+			}
+			else
+			{
+				this.$.open( "text/html", mode );
+				// Support for custom document.domain in IE.
+				if ( CKEDITOR.env.isCustomDomain() )
+					this.$.domain = document.domain;
+				this.$.write( html );
+				this.$.close();
+			}
 		}
-		else
-		{
-			this.$.open( "text/html", mode );
-			// Support for custom document.domain in IE.
-			if ( CKEDITOR.env.isCustomDomain() )
-				this.$.domain = document.domain;
-			this.$.write( html );
-			this.$.close();
-		}
-	}
-});
-
+	});
Index: CKEditor/branches/features/adobeair/_source/plugins/panel/plugin.js
===================================================================
--- CKEditor/branches/features/adobeair/_source/plugins/panel/plugin.js	(revision 6131)
+++ CKEditor/branches/features/adobeair/_source/plugins/panel/plugin.js	(revision 6132)
@@ -102,13 +102,13 @@
 
 			output.push(
-						// Support for custom document.domain in IE.
-						CKEDITOR.env.isCustomDomain() ?
-							'(function(){' +
-								'document.open();' +
-								'document.domain=\'' + document.domain + '\';' +
-								'document.close();' +
-							'})()'
-						:
-							'0' );
+							// Support for custom document.domain in IE.
+							CKEDITOR.env.isCustomDomain() ?
+								'(function(){' +
+									'document.open();' +
+									'document.domain=\'' + document.domain + '\';' +
+									'document.close();' +
+								'})()'
+							:
+								'0' );
 
 			output.push(
