亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fckxhtml.js

?? E創政府管理系統,演示版,在服務器端運行注冊程序后可以投入使用
?? JS
字號:
?/* * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2004 Frederico Caldeira Knabben
 * 
 * Licensed under the terms of the GNU Lesser General Public License:
 * 		http://www.opensource.org/licenses/lgpl-license.php
 * 
 * For further information visit:
 * 		http://www.fckeditor.net/
 * 
 * File Name: fckxhtml.js
 * 	Defines the FCKXHtml object, responsible for the XHTML operations.
 * 
 * Version:  2.0 RC3
 * Modified: 2005-03-02 11:17:23
 * 
 * File Authors:
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net) */
var FCKXHtml = new Object() ;

FCKXHtml.CurrentJobNum = 0 ;

FCKXHtml.GetXHTML = function( node, includeNode, format )
{
	// Special blocks are blocks of content that remain untouched during the 
	// process. It is used for SCRIPTs and STYLEs.
	FCKXHtml.SpecialBlocks = new Array() ;

	// Create the XML DOMDocument object.
	this.XML = FCKTools.CreateXmlObject( 'DOMDocument' ) ;

	// Add a root element that holds all child nodes.
	this.MainNode = this.XML.appendChild( this.XML.createElement( 'xhtml' ) ) ;

	FCKXHtml.CurrentJobNum++ ;

	if ( includeNode )
		this._AppendNode( this.MainNode, node ) ;
	else
		this._AppendChildNodes( this.MainNode, node, false ) ;

	// Get the resulting XHTML as a string.
	var sXHTML = this._GetMainXmlString() ;

	// Strip the "XHTML" root node.
	sXHTML = sXHTML.substr( 7, sXHTML.length - 15 ).trim() ;

	if ( FCKConfig.ForceSimpleAmpersand )
		sXHTML = sXHTML.replace( /___FCKAmp___/g, '&' ) ;

	if ( format )
		sXHTML = FCKCodeFormatter.Format( sXHTML ) ;

	// Now we put back the SpecialBlocks contents.
	for ( var i = 0 ; i < FCKXHtml.SpecialBlocks.length ; i++ )
	{
		var oRegex = new RegExp( '___FCKsi___' + i ) ;
		sXHTML = sXHTML.replace( oRegex, FCKXHtml.SpecialBlocks[i] ) ;
	}
	
	this.XML = null ;

	return sXHTML
}

FCKXHtml._AppendAttribute = function( xmlNode, attributeName, attributeValue )
{
	try
	{
		// Create the attribute.
		var oXmlAtt = this.XML.createAttribute( attributeName ) ;

		oXmlAtt.value = attributeValue ? attributeValue : '' ;

		// Set the attribute in the node.
		xmlNode.attributes.setNamedItem( oXmlAtt ) ;
	}
	catch (e)
	{}
}

FCKXHtml._AppendChildNodes = function( xmlNode, htmlNode, isBlockElement )
{
	if ( htmlNode.hasChildNodes() )
	{
		// Get all children nodes.
		var oChildren = htmlNode.childNodes ;

		for ( var i = 0 ; i < oChildren.length ; i++ )
			this._AppendNode( xmlNode, oChildren[i] ) ;
	}
	else
	{
		if ( isBlockElement && FCKConfig.FillEmptyBlocks )
		{
			this._AppendEntity( xmlNode, 'nbsp' ) ;
			return ;
		}

		// We can't use short representation of empty elements that are not marked
		// as empty in th XHTML DTD.
		if ( ! FCKRegexLib.EmptyElements.test( htmlNode.nodeName ) )
			xmlNode.appendChild( this.XML.createTextNode('') ) ;
	}
}

FCKXHtml._AppendNode = function( xmlNode, htmlNode )
{
	switch ( htmlNode.nodeType )
	{
		// Element Node.
		case 1 :
			// Mozilla insert custom nodes in the DOM.
			if ( FCKBrowserInfo.IsGecko && htmlNode.hasAttribute('_moz_editor_bogus_node') )
				return ;

			// Create the Element.
			var sNodeName = htmlNode.nodeName.toLowerCase() ;

			if ( FCKBrowserInfo.IsGecko && sNodeName == 'br' && htmlNode.hasAttribute('type') && htmlNode.getAttribute( 'type', 2 ) == '_moz' )
				return ;

			// The already processed nodes must be marked to avoid then to be duplicated (bad formatted HTML).
			// So here, the "mark" is checked... if the element is Ok, then mark it.
			if ( htmlNode._fckxhtmljob == FCKXHtml.CurrentJobNum )
				return ;
			else
				htmlNode._fckxhtmljob = FCKXHtml.CurrentJobNum ;

			// If the nodeName starts with a slash, it is a orphan closing tag.
			// On some strange cases, the nodeName is empty, even if the node exists.
			if ( sNodeName.length == 0 || sNodeName.substr(0,1) == '/' )
				break ;

			var oNode = this.XML.createElement( sNodeName ) ;

			// Add all attributes.
			FCKXHtml._AppendAttributes( xmlNode, htmlNode, oNode, sNodeName ) ;

			// Tag specific processing.
			var oTagProcessor = FCKXHtml.TagProcessors[ sNodeName ] ;

			if ( oTagProcessor )
			{
				oNode = oTagProcessor( oNode, htmlNode ) ;
				if ( !oNode ) break ;
			}
			else
				this._AppendChildNodes( oNode, htmlNode, FCKRegexLib.BlockElements.test( sNodeName ) ) ;

			xmlNode.appendChild( oNode ) ;

			break ;

		// Text Node.
		case 3 :
			// We can't just replace the special chars with entities and create a
			// text node with it. We must split the text isolating the special chars
			// and add each piece a time.
			var asPieces = htmlNode.nodeValue.replaceNewLineChars(' ').match( FCKXHtmlEntities.EntitiesRegex ) ;

			if ( asPieces )
			{
				for ( var i = 0 ; i < asPieces.length ; i++ )
				{
					if ( asPieces[i].length == 1 )
					{
						var sEntity = FCKXHtmlEntities.Entities[ asPieces[i] ] ;
						if ( sEntity != null )
						{
							this._AppendEntity( xmlNode, sEntity ) ;
							continue ;
						}
					}
					xmlNode.appendChild( this.XML.createTextNode( asPieces[i] ) ) ;
				}
			}

			// This is the original code. It doesn't care about the entities.
			//xmlNode.appendChild( this.XML.createTextNode( htmlNode.nodeValue ) ) ;

			break ;

		// Comment
		case 8 :
			xmlNode.appendChild( this.XML.createComment( htmlNode.nodeValue ) ) ;
			break ;

		// Unknown Node type.
		default :
			xmlNode.appendChild( this.XML.createComment( "Element not supported - Type: " + htmlNode.nodeType + " Name: " + htmlNode.nodeName ) ) ;
			break ;
	}
}

// Append an item to the SpecialBlocks array and returns the tag to be used.
FCKXHtml._AppendSpecialItem = function( item )
{
	return '___FCKsi___' + FCKXHtml.SpecialBlocks.addItem( item ) ;
}

// An object that hold tag specific operations.
FCKXHtml.TagProcessors = new Object() ;

FCKXHtml.TagProcessors['img'] = function( node )
{
	// The "ALT" attribute is required in XHTML.
	if ( ! node.attributes.getNamedItem( 'alt' ) )
		FCKXHtml._AppendAttribute( node, 'alt', '' ) ;

	return node ;
}

FCKXHtml.TagProcessors['script'] = function( node, htmlNode )
{
	// The "TYPE" attribute is required in XHTML.
	if ( ! node.attributes.getNamedItem( 'type' ) )
		FCKXHtml._AppendAttribute( node, 'type', 'text/javascript' ) ;

	node.appendChild( FCKXHtml.XML.createTextNode( FCKXHtml._AppendSpecialItem( htmlNode.text ) ) ) ;

	return node ;
}

FCKXHtml.TagProcessors['style'] = function( node, htmlNode )
{
	// The "_fcktemp" attribute is used to mark the <STYLE> used by the editor
	// to set some behaviors.
	if ( htmlNode.getAttribute( '_fcktemp' ) )
		return null ;

	// The "TYPE" attribute is required in XHTML.
	if ( ! node.attributes.getNamedItem( 'type' ) )
		FCKXHtml._AppendAttribute( node, 'type', 'text/css' ) ;

	node.appendChild( FCKXHtml.XML.createTextNode( FCKXHtml._AppendSpecialItem( htmlNode.innerHTML ) ) ) ;

	return node ;
}

FCKXHtml.TagProcessors['title'] = function( node, htmlNode )
{
	node.appendChild( FCKXHtml.XML.createTextNode( FCK.EditorDocument.title ) ) ;

	return node ;
}

FCKXHtml.TagProcessors['base'] = function( node, htmlNode )
{
	// The "_fcktemp" attribute is used to mark the <BASE> tag when the editor
	// automatically sets it using the FCKConfig.BaseHref configuration.
	if ( htmlNode.getAttribute( '_fcktemp' ) )
		return null ;

	// IE duplicates the BODY inside the <BASE /> tag (don't ask me why!).
	// This tag processor does nothing... in this way, no child nodes are added
	// (also because the BASE tag must be empty).
	return node ;
}

FCKXHtml.TagProcessors['link'] = function( node, htmlNode )
{
	// The "_fcktemp" attribute is used to mark the fck_internal.css <LINK>
	// reference.
	if ( htmlNode.getAttribute( '_fcktemp' ) )
		return null ;

	return node ;
}

FCKXHtml.TagProcessors['table'] = function( node, htmlNode )
{
	// There is a trick to show table borders when border=0. We add to the
	// table class the FCK__ShowTableBorders rule. So now we must remove it.
	
	var oClassAtt = node.attributes.getNamedItem( 'class' ) ;
	
	if ( oClassAtt && FCKRegexLib.TableBorderClass.test( oClassAtt.nodeValue ) )
	{
		var sClass = oClassAtt.nodeValue.replace( FCKRegexLib.TableBorderClass, '' ) ;
		
		if ( sClass.length == 0 )
			node.attributes.removeNamedItem( 'class' ) ;
		else
			FCKXHtml._AppendAttribute( node, 'class', sClass ) ;
	}

	FCKXHtml._AppendChildNodes( node, htmlNode, false ) ;

	return node ;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91免费看片在线观看| 亚洲一区二区三区影院| 欧美日高清视频| 日本黄色一区二区| 91美女在线观看| 欧美在线视频不卡| 欧美日韩在线播| 91精品麻豆日日躁夜夜躁| 欧美一区二区三区成人| 日韩精品一区二区三区中文不卡 | 最新热久久免费视频| 欧美国产精品劲爆| 亚洲精品国产成人久久av盗摄| 亚洲欧美日韩综合aⅴ视频| 一区二区三区鲁丝不卡| 午夜激情一区二区三区| 蜜臀av国产精品久久久久| 国产九色精品成人porny| 成人午夜伦理影院| 欧美午夜精品免费| 欧美xxxxxxxxx| 国产精品毛片久久久久久| 亚洲黄色录像片| 久久精品国产一区二区| 成人高清视频免费观看| 欧美日韩二区三区| 国产午夜亚洲精品午夜鲁丝片 | 欧美日韩一区视频| 日韩欧美中文字幕公布| 国产日韩欧美激情| 亚洲v日本v欧美v久久精品| 日产精品久久久久久久性色| 成人av午夜电影| 666欧美在线视频| 中文字幕亚洲一区二区av在线| 性做久久久久久免费观看欧美| 国产综合色视频| 91麻豆国产自产在线观看| 欧美一卡在线观看| 亚洲蜜桃精久久久久久久| 精品一区二区三区视频在线观看 | 欧美这里有精品| 精品日韩av一区二区| 一区二区视频免费在线观看| 免费高清在线一区| 在线精品国精品国产尤物884a| 欧美精品一区二区蜜臀亚洲| 欧美激情自拍偷拍| 日韩精品一二区| 99精品久久只有精品| 日韩欧美电影在线| 亚洲v中文字幕| 99久久久免费精品国产一区二区 | 国产成人av福利| 欧美一区二区三区在线观看| 一区二区国产盗摄色噜噜| 国产99久久久精品| 日韩欧美一二三四区| 亚洲国产精品综合小说图片区| 成人免费视频一区| 欧美极品少妇xxxxⅹ高跟鞋| 激情综合一区二区三区| 欧美一卡二卡三卡| 蜜桃视频在线观看一区| 精品视频一区二区三区免费| 一区二区三区久久久| 91传媒视频在线播放| 亚洲欧美另类在线| 91色|porny| 亚洲欧美国产毛片在线| 99精品视频中文字幕| 中文字幕一区二区三中文字幕| 成人综合在线网站| 中文一区在线播放| www.欧美日韩国产在线| 18成人在线视频| 色8久久精品久久久久久蜜| 亚洲色欲色欲www| 欧美在线色视频| 亚洲无人区一区| 日韩一区二区在线观看视频| 老司机精品视频导航| 国产日韩av一区二区| 成人av免费在线播放| 亚洲欧美日韩系列| 欧美精品v国产精品v日韩精品| 日本美女一区二区三区| 精品久久久久久最新网址| 国产精品69毛片高清亚洲| 国产精品无人区| 91激情在线视频| 青青草国产精品97视觉盛宴| 久久久久久久久久久黄色| 成人亚洲精品久久久久软件| 依依成人精品视频| 欧美一级生活片| 懂色av一区二区夜夜嗨| 伊人婷婷欧美激情| 精品国精品国产| 97se亚洲国产综合自在线不卡| 亚洲第一会所有码转帖| 日韩一区二区免费视频| 国产成人在线看| 亚洲激情av在线| 久久先锋资源网| 丁香婷婷综合色啪| 亚洲激情中文1区| 久久亚洲捆绑美女| 欧美在线免费观看亚洲| 国产精品主播直播| 亚洲国产精品久久久久秋霞影院 | 国产成a人亚洲精品| 亚洲一区二区三区四区的| www日韩大片| 欧美色手机在线观看| 国产乱码精品一区二区三区av| 亚洲一区二区av在线| 国产亲近乱来精品视频| 欧美二区在线观看| 91香蕉视频黄| 国产美女精品在线| 亚洲国产毛片aaaaa无费看 | 欧美亚洲综合另类| 国产精品888| 精品一区二区三区在线观看| 一区二区三区在线免费视频| 国产无遮挡一区二区三区毛片日本| 欧美欧美午夜aⅴ在线观看| 成人综合在线视频| 国产一区二区在线电影| 美女网站一区二区| 亚洲一区二区视频| 亚洲免费在线电影| 中文字幕av免费专区久久| 久久一区二区三区国产精品| 欧美一区二区三区白人| 欧美日韩高清不卡| 91国偷自产一区二区开放时间| 国产91在线|亚洲| 国产一区二区三区美女| 日本成人中文字幕| 日韩电影在线观看网站| 天天亚洲美女在线视频| 亚洲成人tv网| 午夜激情综合网| 午夜精品久久久久久久久久| 亚洲高清视频在线| 午夜视频在线观看一区| 亚洲国产一区在线观看| 亚洲激情成人在线| 亚洲线精品一区二区三区| 亚洲午夜久久久| 日日夜夜精品免费视频| 日本aⅴ亚洲精品中文乱码| 免费观看30秒视频久久| 久久精品国产色蜜蜜麻豆| 精品一区二区三区影院在线午夜| 老司机精品视频导航| 黑人巨大精品欧美一区| 国产一区二区毛片| 福利一区二区在线| 91免费在线看| 欧美日韩精品一区二区在线播放 | 欧美一区二区视频观看视频 | 国产精品中文字幕日韩精品| 国产精品888| 99久久久久免费精品国产| 国产综合久久久久久久久久久久| 久久99最新地址| 国产精品一区二区不卡| 国产成都精品91一区二区三| 91香蕉视频mp4| 91精品久久久久久久99蜜桃| 日韩久久久精品| 中文字幕精品三区| 一区二区三区蜜桃| 久久66热re国产| av午夜精品一区二区三区| 欧美日韩国产一区二区三区地区| 欧美一区二区三区不卡| 久久视频一区二区| 亚洲免费资源在线播放| 日韩精品国产精品| 国产成人精品亚洲午夜麻豆| 91小视频在线| 日韩欧美一级片| 亚洲精品中文字幕在线观看| 日韩avvvv在线播放| 国产成人精品一区二区三区网站观看 | 亚洲免费观看高清| 老司机午夜精品| 99精品视频在线播放观看| 日韩欧美中文一区| 中文字幕在线观看一区| 婷婷开心久久网| 国产成人高清在线| 日韩你懂的在线观看| 中文字幕一区二区三区不卡| 麻豆精品精品国产自在97香蕉 | 欧美一区二区三区公司|