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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? fckstyle.js

?? BugNET is an issue tracking and project issue management solution built using the ASP.NET web applic
?? JS
?? 第 1 頁 / 共 4 頁
字號:

									/*jsl:fallthru*/

								default :
									FCKDomTools.RemoveAttribute( currentNode, att ) ;
							}
						}
					}
				}
				else
					mayRemove = !!styleOverrides[ elementName ] ;

				if ( mayRemove )
				{
					// Remove overrides defined to the same element name.
					this._RemoveOverrides( currentNode, styleOverrides[ elementName ] ) ;

					// Remove the element if no more attributes are available.
					this._RemoveNoAttribElement( currentNode ) ;
				}
			}

			// If we have reached the end of the selection, stop looping.
			if ( nextNode == endNode )
				break ;

			currentNode = nextNode ;
		}

		this._FixBookmarkStart( startNode ) ;

		// Re-select the original range.
		if ( selectIt )
			range.SelectBookmark( bookmark ) ;

		if ( updateRange )
			range.MoveToBookmark( bookmark ) ;
	},

	/**
	 * Checks if an element, or any of its attributes, is removable by the
	 * current style definition.
	 */
	CheckElementRemovable : function( element, fullMatch )
	{
		if ( !element )
			return false ;

		var elementName = element.nodeName.toLowerCase() ;

		// If the element name is the same as the style name.
		if ( elementName == this.Element )
		{
			// If no attributes are defined in the element.
			if ( !fullMatch && !FCKDomTools.HasAttributes( element ) )
				return true ;

			// If any attribute conflicts with the style attributes.
			var attribs = this._GetAttribsForComparison() ;
			var allMatched = ( attribs._length == 0 ) ;
			for ( var att in attribs )
			{
				if ( att == '_length' )
					continue ;

				if ( this._CompareAttributeValues( att, FCKDomTools.GetAttributeValue( element, att ), ( this.GetFinalAttributeValue( att ) || '' ) ) )
				{
					allMatched = true ;
					if ( !fullMatch )
						break ;
				}
				else
				{
					allMatched = false ;
					if ( fullMatch )
						return false ;
				}
			}
			if ( allMatched )
				return true ;
		}

		// Check if the element can be somehow overriden.
		var override = this._GetOverridesForComparison()[ elementName ] ;
		if ( override )
		{
			// If no attributes have been defined, remove the element.
			if ( !( attribs = override.Attributes ) ) // Only one "="
				return true ;

			for ( var i = 0 ; i < attribs.length ; i++ )
			{
				var attName = attribs[i][0] ;
				if ( FCKDomTools.HasAttribute( element, attName ) )
				{
					var attValue = attribs[i][1] ;

					// Remove the attribute if:
					//    - The override definition value is null ;
					//    - The override definition valie is a string that
					//      matches the attribute value exactly.
					//    - The override definition value is a regex that
					//      has matches in the attribute value.
					if ( attValue == null ||
							( typeof attValue == 'string' && FCKDomTools.GetAttributeValue( element, attName ) == attValue ) ||
							attValue.test( FCKDomTools.GetAttributeValue( element, attName ) ) )
						return true ;
				}
			}
		}

		return false ;
	},

	/**
	 * Get the style state for an element path. Returns "true" if the element
	 * is active in the path.
	 */
	CheckActive : function( elementPath )
	{
		switch ( this.GetType() )
		{
			case FCK_STYLE_BLOCK :
				return this.CheckElementRemovable( elementPath.Block || elementPath.BlockLimit, true ) ;

			case FCK_STYLE_INLINE :

				var elements = elementPath.Elements ;

				for ( var i = 0 ; i < elements.length ; i++ )
				{
					var element = elements[i] ;

					if ( element == elementPath.Block || element == elementPath.BlockLimit )
						continue ;

					if ( this.CheckElementRemovable( element, true ) )
						return true ;
				}
		}
		return false ;
	},

	/**
	 * Removes an inline style from inside an element tree. The element node
	 * itself is not checked or removed, only the child tree inside of it.
	 */
	RemoveFromElement : function( element )
	{
		var attribs = this._GetAttribsForComparison() ;
		var overrides = this._GetOverridesForComparison() ;

		// Get all elements with the same name.
		var innerElements = element.getElementsByTagName( this.Element ) ;

		for ( var i = innerElements.length - 1 ; i >= 0 ; i-- )
		{
			var innerElement = innerElements[i] ;

			// Remove any attribute that conflict with this style, no matter
			// their values.
			for ( var att in attribs )
			{
				if ( FCKDomTools.HasAttribute( innerElement, att ) )
				{
					switch ( att )
					{
						case 'style' :
							this._RemoveStylesFromElement( innerElement ) ;
							break ;

						case 'class' :
							// The 'class' element value must match (#1318).
							if ( FCKDomTools.GetAttributeValue( innerElement, att ) != this.GetFinalAttributeValue( att ) )
								continue ;

							/*jsl:fallthru*/

						default :
							FCKDomTools.RemoveAttribute( innerElement, att ) ;
					}
				}
			}

			// Remove overrides defined to the same element name.
			this._RemoveOverrides( innerElement, overrides[ this.Element ] ) ;

			// Remove the element if no more attributes are available.
			this._RemoveNoAttribElement( innerElement ) ;
		}

		// Now remove any other element with different name that is
		// defined to be overriden.
		for ( var overrideElement in overrides )
		{
			if ( overrideElement != this.Element )
			{
				// Get all elements.
				innerElements = element.getElementsByTagName( overrideElement ) ;

				for ( var i = innerElements.length - 1 ; i >= 0 ; i-- )
				{
					var innerElement = innerElements[i] ;
					this._RemoveOverrides( innerElement, overrides[ overrideElement ] ) ;
					this._RemoveNoAttribElement( innerElement ) ;
				}
			}
		}
	},

	_RemoveStylesFromElement : function( element )
	{
		var elementStyle = element.style.cssText ;
		var pattern = this.GetFinalStyleValue() ;

		if ( elementStyle.length > 0 && pattern.length == 0 )
			return ;

		pattern = '(^|;)\\s*(' +
			pattern.replace( /\s*([^ ]+):.*?(;|$)/g, '$1|' ).replace( /\|$/, '' ) +
			'):[^;]+' ;

		var regex = new RegExp( pattern, 'gi' ) ;

		elementStyle = elementStyle.replace( regex, '' ).Trim() ;

		if ( elementStyle.length == 0 || elementStyle == ';' )
			FCKDomTools.RemoveAttribute( element, 'style' ) ;
		else
			element.style.cssText = elementStyle.replace( regex, '' ) ;
	},

	/**
	 * Remove all attributes that are defined to be overriden,
	 */
	_RemoveOverrides : function( element, override )
	{
		var attributes = override && override.Attributes ;

		if ( attributes )
		{
			for ( var i = 0 ; i < attributes.length ; i++ )
			{
				var attName = attributes[i][0] ;

				if ( FCKDomTools.HasAttribute( element, attName ) )
				{
					var attValue	= attributes[i][1] ;

					// Remove the attribute if:
					//    - The override definition value is null ;
					//    - The override definition valie is a string that
					//      matches the attribute value exactly.
					//    - The override definition value is a regex that
					//      has matches in the attribute value.
					if ( attValue == null ||
							( attValue.test && attValue.test( FCKDomTools.GetAttributeValue( element, attName ) ) ) ||
							( typeof attValue == 'string' && FCKDomTools.GetAttributeValue( element, attName ) == attValue ) )
						FCKDomTools.RemoveAttribute( element, attName ) ;
				}
			}
		}
	},

	/**
	 * If the element has no more attributes, remove it.
	 */
	_RemoveNoAttribElement : function( element )
	{
		// If no more attributes remained in the element, remove it,
		// leaving its children.
		if ( !FCKDomTools.HasAttributes( element ) )
		{
			// Removing elements may open points where merging is possible,
			// so let's cache the first and last nodes for later checking.
			var firstChild	= element.firstChild ;
			var lastChild	= element.lastChild ;

			FCKDomTools.RemoveNode( element, true ) ;

			// Check the cached nodes for merging.
			this._MergeSiblings( firstChild ) ;

			if ( firstChild != lastChild )
				this._MergeSiblings( lastChild ) ;
		}
	},

	/**
	 * Creates a DOM element for this style object.
	 */
	BuildElement : function( targetDoc, element )
	{
		// Create the element.
		var el = element || targetDoc.createElement( this.Element ) ;

		// Assign all defined attributes.
		var attribs	= this._StyleDesc.Attributes ;
		var attValue ;
		if ( attribs )
		{
			for ( var att in attribs )
			{
				attValue = this.GetFinalAttributeValue( att ) ;

				if ( att.toLowerCase() == 'class' )
					el.className = attValue ;
				else
					el.setAttribute( att, attValue ) ;
			}
		}

		// Assign the style attribute.
		if ( this._GetStyleText().length > 0 )
			el.style.cssText = this.GetFinalStyleValue() ;

		return el ;
	},

	_CompareAttributeValues : function( attName, valueA, valueB )
	{
		if ( attName == 'style' && valueA && valueB )
		{
			valueA = valueA.replace( /;$/, '' ).toLowerCase() ;
			valueB = valueB.replace( /;$/, '' ).toLowerCase() ;
		}

		// Return true if they match or if valueA is null and valueB is an empty string
		return ( valueA == valueB || ( ( valueA === null || valueA === '' ) && ( valueB === null || valueB === '' ) ) )
	},

	GetFinalAttributeValue : function( attName )
	{
		var attValue = this._StyleDesc.Attributes ;
		var attValue = attValue ? attValue[ attName ] : null ;

		if ( !attValue && attName == 'style' )
			return this.GetFinalStyleValue() ;

		if ( attValue && this._Variables )
			// Using custom Replace() to guarantee the correct scope.
			attValue = attValue.Replace( FCKRegexLib.StyleVariableAttName, this._GetVariableReplace, this ) ;

		return attValue ;
	},

	GetFinalStyleValue : function()
	{
		var attValue = this._GetStyleText() ;

		if ( attValue.length > 0 && this._Variables )
		{
			// Using custom Replace() to guarantee the correct scope.
			attValue = attValue.Replace( FCKRegexLib.StyleVariableAttName, this._GetVariableReplace, this ) ;
			attValue = FCKTools.NormalizeCssText( attValue ) ;
		}

		return attValue ;
	},

	_GetVariableReplace : function()
	{
		// The second group in the regex is the variable name.
		return this._Variables[ arguments[2] ] || arguments[0] ;
	},

	/**
	 * Set the value of a variable attribute or style, to be used when
	 * appliying the style.
	 */
	SetVariable : function( name, value )
	{
		var variables = this._Variables ;

		if ( !variables )
			variables = this._Variables = {} ;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美欧美欧美欧美首页| 日韩午夜小视频| 免费成人在线视频观看| 国产日韩欧美不卡| 欧美精品一卡二卡| 91免费观看视频| 国产一区二区在线影院| 亚洲国产成人porn| 国产精品视频一二三区| 日韩一区二区三区视频在线观看| 欧美伊人久久大香线蕉综合69| 国产精品夜夜嗨| 热久久免费视频| 一区二区三区国产精华| 国产日韩高清在线| 久久男人中文字幕资源站| 91精品国产综合久久福利软件| 91啪亚洲精品| 波多野洁衣一区| 成人在线视频首页| 国产在线不卡一区| 久久99精品网久久| 日韩专区中文字幕一区二区| 亚洲综合视频网| 亚洲欧美日韩国产综合| 国产精品日产欧美久久久久| 国产午夜精品一区二区三区视频| 日韩女同互慰一区二区| 91精品国产综合久久久久久漫画| 欧美无人高清视频在线观看| 91免费视频大全| 91偷拍与自偷拍精品| 91丨九色丨黑人外教| av电影一区二区| 99久久er热在这里只有精品66| 成人免费毛片片v| av影院午夜一区| 97超碰欧美中文字幕| 99国产欧美另类久久久精品| 97久久精品人人爽人人爽蜜臀| 成人app网站| 97久久超碰精品国产| 91在线视频观看| 91激情在线视频| 欧美视频在线播放| 欧美一卡二卡在线观看| 欧美xxxxx裸体时装秀| 亚洲精品一区二区三区香蕉| 欧美精品一区二区三区蜜桃视频| 亚洲精品在线网站| 国产午夜久久久久| 日韩毛片精品高清免费| 丁香亚洲综合激情啪啪综合| 精品一区在线看| 国产精品99久久久久久久女警| 国产成人亚洲综合a∨婷婷 | 国产精品嫩草影院com| 日本一区二区不卡视频| 国产精品不卡在线| 亚洲妇女屁股眼交7| 免费欧美高清视频| 国产激情一区二区三区四区 | 国产成人欧美日韩在线电影| 成人av资源在线观看| 91精品福利视频| 欧美成人一区二区三区在线观看| 久久久久久免费网| 自拍偷拍亚洲欧美日韩| 首页国产丝袜综合| 国内不卡的二区三区中文字幕| 岛国精品在线播放| 欧美网站大全在线观看| 日韩欧美一区二区在线视频| 国产人妖乱国产精品人妖| 亚洲欧美另类小说| 日本在线不卡一区| 丰满少妇久久久久久久| 99国产精品久| 日韩欧美综合在线| |精品福利一区二区三区| 日韩成人午夜精品| av电影天堂一区二区在线| 欧美在线观看视频在线| 久久久91精品国产一区二区三区| 一区二区三区丝袜| 激情综合网天天干| 日本精品裸体写真集在线观看| 日韩欧美一级精品久久| 一区二区在线观看视频在线观看| 男男gaygay亚洲| 91美女在线视频| 久久―日本道色综合久久| 亚洲一线二线三线视频| 国产成人免费在线视频| 欧美日韩成人综合天天影院| 国产精品素人视频| 精品在线亚洲视频| 欧美日韩欧美一区二区| 中文字幕av一区二区三区免费看| 蜜芽一区二区三区| 色婷婷精品大在线视频| 2020国产精品久久精品美国| 亚洲二区在线视频| 99天天综合性| 久久青草欧美一区二区三区| 亚洲第一精品在线| 93久久精品日日躁夜夜躁欧美| 26uuu精品一区二区在线观看| 亚洲成人一区二区在线观看| www.综合网.com| 久久精品亚洲精品国产欧美kt∨ | 亚洲香蕉伊在人在线观| 成人三级在线视频| 2023国产精品| 久久99精品国产91久久来源| 欧美日韩国产另类一区| 亚洲精品国产视频| eeuss鲁片一区二区三区| 久久久久久久网| 国产一区二区三区最好精华液| 欧美福利一区二区| 亚洲福利视频导航| 在线观看av一区| 夜夜精品浪潮av一区二区三区| proumb性欧美在线观看| 中文字幕+乱码+中文字幕一区| 国产综合久久久久久鬼色| 精品三级在线看| 久久se精品一区二区| 欧美精品亚洲一区二区在线播放| 一区二区三区av电影| 色婷婷亚洲综合| 一二三四区精品视频| 欧美性欧美巨大黑白大战| 亚洲激情第一区| 欧美专区亚洲专区| 亚洲国产精品久久艾草纯爱 | 欧美色图免费看| 亚洲一区二区中文在线| 欧美亚洲禁片免费| 日一区二区三区| 欧美一级在线观看| 久久成人免费电影| 国产女主播一区| 成人av集中营| 亚洲精品日日夜夜| 欧美怡红院视频| 日韩电影免费在线| 日韩电影在线看| 日韩一区二区三区免费看| 久久不见久久见免费视频7| 久久欧美中文字幕| 不卡一区二区中文字幕| 一区二区在线观看不卡| 欧美三级中文字幕| 免费不卡在线观看| 国产亚洲精久久久久久| jlzzjlzz亚洲日本少妇| 亚洲永久免费视频| 欧美一卡二卡在线观看| 国产成人免费视频一区| 一区二区理论电影在线观看| 欧美一区二区三区性视频| 国产一区二区三区四区五区美女| 国产精品全国免费观看高清| 91久久国产综合久久| 麻豆国产精品官网| 国产精品福利一区二区| 欧美日韩电影在线播放| 国产精品一线二线三线| 亚洲激情五月婷婷| 欧美成人aa大片| 91丨porny丨在线| 蜜臀久久久久久久| 国产精品久久网站| 6080yy午夜一二三区久久| 国产电影一区二区三区| 亚洲一区在线视频| 久久久99久久| 欧美美女一区二区在线观看| 国产传媒日韩欧美成人| 天堂成人国产精品一区| 国产精品区一区二区三区| 正在播放亚洲一区| 91在线免费播放| 国产一区二区视频在线| 亚洲国产精品人人做人人爽| 久久精品一二三| 91精品婷婷国产综合久久性色 | 日本一区二区免费在线观看视频| 色老头久久综合| 国产精品一二三| 欧美aaaaaa午夜精品| 亚洲伦在线观看| 国产欧美日韩一区二区三区在线观看| 欧美日韩国产一二三| 成人福利视频在线| 国产美女视频91| 蜜桃视频在线一区| 首页国产欧美日韩丝袜|