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

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

?? fckenterkey.js

?? J2EE——BBS項(xiàng)目
?? JS
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
	// Get the current selection.
	var oRange = range || new FCKDomRange( this.Window ) ;

	// If we don't have a range, move it to the selection.
	if ( !range )
		oRange.MoveToSelection() ;

	// The selection boundaries must be in the same "block limit" element.
	if ( oRange.StartBlockLimit == oRange.EndBlockLimit )
	{
		// If the StartBlock or EndBlock are not available (for text without a
		// block tag), we must fix them, by moving the text to a block.
		if ( !oRange.StartBlock )
			this._FixBlock( oRange, true, blockTag ) ;

		if ( !oRange.EndBlock )
			this._FixBlock( oRange, false, blockTag ) ;

		// Get the current blocks.
		var eStartBlock	= oRange.StartBlock ;
		var eEndBlock	= oRange.EndBlock ;

		// Delete the current selection.
		if ( !oRange.CheckIsEmpty() )
			oRange.DeleteContents() ;

		// If the selection boundaries are in the same block element
		if ( eStartBlock == eEndBlock )
		{
			var eNewBlock ;

			var bIsStartOfBlock	= oRange.CheckStartOfBlock() ;
			var bIsEndOfBlock	= oRange.CheckEndOfBlock() ;

			if ( bIsStartOfBlock && !bIsEndOfBlock )
			{
				eNewBlock = eStartBlock.cloneNode(false) ;

				if ( FCKBrowserInfo.IsGeckoLike )
					eNewBlock.innerHTML = GECKO_BOGUS ;

				// Place the new block before the current block element.
				eStartBlock.parentNode.insertBefore( eNewBlock, eStartBlock ) ;

				// This is tricky, but to make the new block visible correctly
				// we must select it.
				if ( FCKBrowserInfo.IsIE )
				{
					// Move the selection to the new block.
					oRange.MoveToNodeContents( eNewBlock ) ;

					oRange.Select() ;
				}

				// Move the selection to the new block.
				oRange.MoveToElementEditStart( eStartBlock ) ;
			}
			else
			{
				// Check if the selection is at the end of the block.
				if ( bIsEndOfBlock )
				{
					var sStartBlockTag = eStartBlock.tagName.toUpperCase() ;

					// If the entire block is selected, and we are in a LI, let's decrease its indentation.
					if ( bIsStartOfBlock && sStartBlockTag == 'LI' )
					{
						this._OutdentWithSelection( eStartBlock, oRange ) ;
						oRange.Release() ;
						return true ;
					}
					else
					{
						// If is a header tag, or we are in a Shift+Enter (#77),
						// create a new block element.
						if ( (/^H[1-6]$/).test( sStartBlockTag ) || this._HasShift )
							eNewBlock = this.Window.document.createElement( blockTag ) ;
						// Otherwise, duplicate the current block.
						else
						{
							eNewBlock = eStartBlock.cloneNode(false) ;
							this._RecreateEndingTree( eStartBlock, eNewBlock ) ;
						}

						if ( FCKBrowserInfo.IsGeckoLike )
						{
							eNewBlock.innerHTML = GECKO_BOGUS ;

							// If the entire block is selected, let's add a bogus in the start block.
							if ( bIsStartOfBlock )
								eStartBlock.innerHTML = GECKO_BOGUS ;
						}
					}
				}
				else
				{
					// Extract the contents of the block from the selection point to the end of its contents.
					oRange.SetEnd( eStartBlock, 2 ) ;
					var eDocFrag = oRange.ExtractContents() ;

					// Duplicate the block element after it.
					eNewBlock = eStartBlock.cloneNode(false) ;

					// It could be that we are in a LI with a child UL/OL. Insert a bogus to give us space to type.
					FCKDomTools.TrimNode( eDocFrag.RootNode ) ;
					if ( eDocFrag.RootNode.firstChild.nodeType == 1 && eDocFrag.RootNode.firstChild.tagName.toUpperCase().Equals( 'UL', 'OL' ) )
						eNewBlock.innerHTML = GECKO_BOGUS ;

					// Place the extracted contents in the duplicated block.
					eDocFrag.AppendTo( eNewBlock ) ;

					if ( FCKBrowserInfo.IsGecko )
					{
						// In Gecko, the last child node must be a bogus <br>.
						this._AppendBogusBr( eStartBlock ) ;
						this._AppendBogusBr( eNewBlock ) ;
					}
				}

				if ( eNewBlock )
				{
					FCKDomTools.InsertAfterNode( eStartBlock, eNewBlock ) ;

					// Move the selection to the new block.
					oRange.MoveToElementEditStart( eNewBlock ) ;

					if ( FCKBrowserInfo.IsGeckoLike )
						eNewBlock.scrollIntoView( false ) ;
				}
			}
		}
		else
		{
			// Move the selection to the end block.
			oRange.MoveToElementEditStart( eEndBlock ) ;
		}

		oRange.Select() ;
	}

	// Release the resources used by the range.
	oRange.Release() ;

	return true ;
}

FCKEnterKey.prototype._ExecuteEnterBr = function( blockTag )
{
	// Get the current selection.
	var oRange = new FCKDomRange( this.Window ) ;
	oRange.MoveToSelection() ;

	// The selection boundaries must be in the same "block limit" element.
	if ( oRange.StartBlockLimit == oRange.EndBlockLimit )
	{
		oRange.DeleteContents() ;

		// Get the new selection (it is collapsed at this point).
		oRange.MoveToSelection() ;

		var bIsStartOfBlock	= oRange.CheckStartOfBlock() ;
		var bIsEndOfBlock	= oRange.CheckEndOfBlock() ;

		var sStartBlockTag = oRange.StartBlock ? oRange.StartBlock.tagName.toUpperCase() : '' ;

		var bHasShift = this._HasShift ;

		if ( !bHasShift && sStartBlockTag == 'LI' )
			return this._ExecuteEnterBlock( null, oRange ) ;

		// If we are at the end of a header block.
		if ( !bHasShift && bIsEndOfBlock && (/^H[1-6]$/).test( sStartBlockTag ) )
		{
			FCKDebug.Output( 'BR - Header' ) ;

			// Insert a BR after the current paragraph.
			FCKDomTools.InsertAfterNode( oRange.StartBlock, this.Window.document.createElement( 'br' ) ) ;

			// The space is required by Gecko only to make the cursor blink.
			if ( FCKBrowserInfo.IsGecko )
				FCKDomTools.InsertAfterNode( oRange.StartBlock, this.Window.document.createTextNode( '' ) ) ;

			// IE and Gecko have different behaviors regarding the position.
			oRange.SetStart( oRange.StartBlock.nextSibling, FCKBrowserInfo.IsIE ? 3 : 1 ) ;
		}
		else
		{
			FCKDebug.Output( 'BR - No Header' ) ;

			var eBr = this.Window.document.createElement( 'br' ) ;

			oRange.InsertNode( eBr ) ;

			// The space is required by Gecko only to make the cursor blink.
			if ( FCKBrowserInfo.IsGecko )
				FCKDomTools.InsertAfterNode( eBr, this.Window.document.createTextNode( '' ) ) ;

			// If we are at the end of a block, we must be sure the bogus node is available in that block.
			if ( bIsEndOfBlock && FCKBrowserInfo.IsGeckoLike )
				this._AppendBogusBr( eBr.parentNode ) ;

			if ( FCKBrowserInfo.IsIE )
				oRange.SetStart( eBr, 4 ) ;
			else
				oRange.SetStart( eBr.nextSibling, 1 ) ;

		}

		// This collapse guarantees the cursor will be blinking.
		oRange.Collapse( true ) ;

		oRange.Select() ;
	}

	// Release the resources used by the range.
	oRange.Release() ;

	return true ;
}

// Transform a block without a block tag in a valid block (orphan text in the body or td, usually).
FCKEnterKey.prototype._FixBlock = function( range, isStart, blockTag )
{
	// Bookmark the range so we can restore it later.
	var oBookmark = range.CreateBookmark() ;

	// Collapse the range to the requested ending boundary.
	range.Collapse( isStart ) ;

	// Expands it to the block contents.
	range.Expand( 'block_contents' ) ;

	// Create the fixed block.
	var oFixedBlock = this.Window.document.createElement( blockTag ) ;

	// Move the contents of the temporary range to the fixed block.
	range.ExtractContents().AppendTo( oFixedBlock ) ;
	FCKDomTools.TrimNode( oFixedBlock ) ;

	// Insert the fixed block into the DOM.
	range.InsertNode( oFixedBlock ) ;

	// Move the range back to the bookmarked place.
	range.MoveToBookmark( oBookmark ) ;
}

// Appends a bogus <br> at the end of the element, if not yet available.
FCKEnterKey.prototype._AppendBogusBr = function( element )
{
	if ( !element )
		return ;

	var eLastChild = FCKTools.GetLastItem( element.getElementsByTagName('br') ) ;

	if ( !eLastChild || eLastChild.getAttribute( 'type', 2 ) != '_moz' )
		element.appendChild( FCKTools.CreateBogusBR( this.Window.document ) ) ;
}

// Recreate the elements tree at the end of the source block, at the beginning
// of the target block. Eg.:
//	If source = <p><u>Some</u> sample <b><i>text</i></b></p> then target = <p><b><i></i></b></p>
//	If source = <p><u>Some</u> sample text</p> then target = <p></p>
FCKEnterKey.prototype._RecreateEndingTree = function( source, target )
{
	while ( ( source = source.lastChild ) && source.nodeType == 1 && FCKListsLib.InlineChildReqElements[ source.nodeName.toLowerCase() ] != null )
		target = target.insertBefore( source.cloneNode( false ), target.firstChild ) ;
}

// Outdents a LI, maintaining the seletion defined on a range.
FCKEnterKey.prototype._OutdentWithSelection = function( li, range )
{
	var oBookmark = range.CreateBookmark() ;

	FCKListHandler.OutdentListItem( li ) ;

	range.MoveToBookmark( oBookmark ) ;
	range.Select() ;
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产精品99久久人人澡| 欧美色爱综合网| 成人av在线一区二区三区| 久久久久国产精品免费免费搜索| 波多野结衣在线aⅴ中文字幕不卡| 亚洲v日本v欧美v久久精品| 国产欧美久久久精品影院| 在线不卡a资源高清| 91女厕偷拍女厕偷拍高清| 国产精品一区2区| 久久aⅴ国产欧美74aaa| 亚洲国产日韩在线一区模特| 国产精品久久午夜| 久久精品视频网| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美日韩aaaaa| 欧美精品一卡两卡| 久久婷婷色综合| 91精品国产乱码久久蜜臀| 色天使久久综合网天天| 成人app网站| 福利一区在线观看| 国产精品亚洲专一区二区三区 | 欧美老年两性高潮| 欧美男人的天堂一二区| 91成人在线免费观看| 99久久综合99久久综合网站| 国产乱码精品1区2区3区| 奇米影视一区二区三区| 三级在线观看一区二区| 日韩在线一区二区| 成人性生交大合| 国产在线精品一区二区夜色| 经典三级视频一区| 丁香五精品蜜臀久久久久99网站 | 亚洲国产wwwccc36天堂| 亚洲r级在线视频| 久久91精品久久久久久秒播| 美女高潮久久久| 麻豆成人91精品二区三区| 午夜伊人狠狠久久| 日韩影院免费视频| 国产一区二区三区日韩| 成人免费毛片app| 在线精品视频一区二区| 欧美日本韩国一区| 久久人人爽人人爽| 亚洲精品欧美二区三区中文字幕| 亚洲综合激情小说| 日韩av电影天堂| 国产久卡久卡久卡久卡视频精品| 国产成人免费视频精品含羞草妖精| 成人高清伦理免费影院在线观看| 99国产精品国产精品久久| 91麻豆免费观看| 欧美一区二区精品在线| 国产精品每日更新| 午夜日韩在线观看| 成人性生交大片免费看视频在线 | 国产亚洲精品7777| 日韩va亚洲va欧美va久久| 成人污污视频在线观看| 日韩欧美国产精品| 视频一区免费在线观看| 91黄色免费网站| 欧美激情一区二区三区| 日韩福利视频导航| 色婷婷av久久久久久久| 国产日韩欧美激情| 青青草原综合久久大伊人精品优势| 国产福利视频一区二区三区| 欧美理论在线播放| 国产精品888| 欧美视频精品在线| 成人免费在线视频观看| 国产精品一区二区久久不卡 | 韩国欧美一区二区| 日韩西西人体444www| 亚洲国产综合色| 91传媒视频在线播放| 亚洲情趣在线观看| 99久久国产综合精品麻豆| 国产日韩av一区二区| 国产伦精品一区二区三区在线观看| 欧美一区二区三区小说| 日韩av一区二区三区四区| 日韩精品一区二区三区蜜臀| 麻豆精品一区二区av白丝在线| 欧美精品九九99久久| 日本在线不卡视频| 日韩精品一区二区三区视频在线观看 | 中文字幕一区二区在线播放| 粉嫩13p一区二区三区| 亚洲色图欧美在线| 欧美偷拍一区二区| 偷拍一区二区三区四区| 欧美美女一区二区在线观看| 婷婷六月综合网| 精品久久国产字幕高潮| 国产在线精品一区二区三区不卡 | 91官网在线观看| 亚洲一区二区四区蜜桃| 欧美在线|欧美| 日韩电影在线一区二区| 日韩欧美国产不卡| 国产二区国产一区在线观看| 国产欧美一区二区精品性色| av不卡一区二区三区| 亚洲成人免费av| 久久久久久久久久久黄色| 91精品国产麻豆| 国产高清在线精品| 欧美激情一二三区| 欧美性大战xxxxx久久久| 免费久久精品视频| 国产欧美一区二区三区网站| 风间由美一区二区av101| 国产精品久久久久婷婷二区次| 北条麻妃国产九九精品视频| 国产精品欧美经典| 欧美高清一级片在线| 麻豆91在线看| 亚洲人成精品久久久久| 91麻豆精品91久久久久同性| 国产九色sp调教91| 一区二区三区自拍| 欧美成va人片在线观看| 色婷婷亚洲精品| 韩国v欧美v日本v亚洲v| 亚洲国产乱码最新视频| 国产日韩精品一区二区三区| 精品视频免费在线| 99久久免费国产| 首页亚洲欧美制服丝腿| 久久久久久影视| 日韩一级黄色大片| bt欧美亚洲午夜电影天堂| 日本欧美一区二区| 久久综合一区二区| 在线不卡a资源高清| 欧美视频一区在线| 色国产综合视频| 成人高清视频在线| 国产专区综合网| 经典三级在线一区| 韩国欧美国产一区| 国产精品综合久久| 蜜臀91精品一区二区三区| 亚洲精品国产视频| 亚洲一区二区三区小说| 亚洲精品视频免费看| 国产拍揄自揄精品视频麻豆| 国产精一品亚洲二区在线视频| 久久se这里有精品| 日本女人一区二区三区| 亚洲国产精品嫩草影院| 夜夜精品视频一区二区| 久草精品在线观看| 日本午夜一本久久久综合| 日本怡春院一区二区| 亚洲chinese男男1069| 亚洲国产视频一区二区| 亚洲国产精品久久艾草纯爱| 亚洲精品videosex极品| 国产精品无遮挡| 国产精品午夜久久| 久久综合九色欧美综合狠狠| 日韩女同互慰一区二区| 日韩午夜精品电影| 久久精品夜夜夜夜久久| 国产婷婷色一区二区三区 | 国产精品国产a| 中文字幕一区二| 亚洲自拍欧美精品| 日韩高清在线一区| 美女诱惑一区二区| 精品一区二区影视| 成人免费视频播放| 在线精品观看国产| 欧美一级久久久久久久大片| 日韩无一区二区| 欧美激情在线观看视频免费| 国产欧美日韩精品在线| 亚洲18色成人| 99久久国产综合色|国产精品| 欧美精品三级日韩久久| 久久一区二区视频| 性做久久久久久免费观看| 成人中文字幕电影| 日韩欧美综合在线| 亚洲欧美激情视频在线观看一区二区三区 | 久久黄色级2电影| 亚洲成人av免费| 国产成人在线视频网址| 在线观看亚洲专区| 4hu四虎永久在线影院成人| 欧美国产乱子伦| 午夜一区二区三区在线观看| 大胆欧美人体老妇| 欧美精品免费视频|