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

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

?? fckenterkey.js

?? BugNET is an issue tracking and project issue management solution built using the ASP.NET web applic
?? JS
?? 第 1 頁 / 共 2 頁
字號:
?/*
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * 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 ==
 *
 * Controls the [Enter] keystroke behavior in a document.
 */

/*
 *	Constructor.
 *		@targetDocument : the target document.
 *		@enterMode : the behavior for the <Enter> keystroke.
 *			May be "p", "div", "br". Default is "p".
 *		@shiftEnterMode : the behavior for the <Shift>+<Enter> keystroke.
 *			May be "p", "div", "br". Defaults to "br".
 */
var FCKEnterKey = function( targetWindow, enterMode, shiftEnterMode, tabSpaces )
{
	this.Window			= targetWindow ;
	this.EnterMode		= enterMode || 'p' ;
	this.ShiftEnterMode	= shiftEnterMode || 'br' ;

	// Setup the Keystroke Handler.
	var oKeystrokeHandler = new FCKKeystrokeHandler( false ) ;
	oKeystrokeHandler._EnterKey = this ;
	oKeystrokeHandler.OnKeystroke = FCKEnterKey_OnKeystroke ;

	oKeystrokeHandler.SetKeystrokes( [
		[ 13		, 'Enter' ],
		[ SHIFT + 13, 'ShiftEnter' ],
		[ 8			, 'Backspace' ],
		[ CTRL + 8	, 'CtrlBackspace' ],
		[ 46		, 'Delete' ]
	] ) ;

	this.TabText = '' ;

	// Safari by default inserts 4 spaces on TAB, while others make the editor
	// loose focus. So, we need to handle it here to not include those spaces.
	if ( tabSpaces > 0 || FCKBrowserInfo.IsSafari )
	{
		while ( tabSpaces-- )
			this.TabText += '\xa0' ;

		oKeystrokeHandler.SetKeystrokes( [ 9, 'Tab' ] );
	}

	oKeystrokeHandler.AttachToElement( targetWindow.document ) ;
}


function FCKEnterKey_OnKeystroke(  keyCombination, keystrokeValue )
{
	var oEnterKey = this._EnterKey ;

	try
	{
		switch ( keystrokeValue )
		{
			case 'Enter' :
				return oEnterKey.DoEnter() ;
				break ;
			case 'ShiftEnter' :
				return oEnterKey.DoShiftEnter() ;
				break ;
			case 'Backspace' :
				return oEnterKey.DoBackspace() ;
				break ;
			case 'Delete' :
				return oEnterKey.DoDelete() ;
				break ;
			case 'Tab' :
				return oEnterKey.DoTab() ;
				break ;
			case 'CtrlBackspace' :
				return oEnterKey.DoCtrlBackspace() ;
				break ;
		}
	}
	catch (e)
	{
		// If for any reason we are not able to handle it, go
		// ahead with the browser default behavior.
	}

	return false ;
}

/*
 * Executes the <Enter> key behavior.
 */
FCKEnterKey.prototype.DoEnter = function( mode, hasShift )
{
	// Save an undo snapshot before doing anything
	FCKUndo.SaveUndoStep() ;

	this._HasShift = ( hasShift === true ) ;

	var parentElement = FCKSelection.GetParentElement() ;
	var parentPath = new FCKElementPath( parentElement ) ;
	var sMode = mode || this.EnterMode ;

	if ( sMode == 'br' || parentPath.Block && parentPath.Block.tagName.toLowerCase() == 'pre' )
		return this._ExecuteEnterBr() ;
	else
		return this._ExecuteEnterBlock( sMode ) ;
}

/*
 * Executes the <Shift>+<Enter> key behavior.
 */
FCKEnterKey.prototype.DoShiftEnter = function()
{
	return this.DoEnter( this.ShiftEnterMode, true ) ;
}

/*
 * Executes the <Backspace> key behavior.
 */
FCKEnterKey.prototype.DoBackspace = function()
{
	var bCustom = false ;

	// Get the current selection.
	var oRange = new FCKDomRange( this.Window ) ;
	oRange.MoveToSelection() ;

	// Kludge for #247
	if ( FCKBrowserInfo.IsIE && this._CheckIsAllContentsIncluded( oRange, this.Window.document.body ) )
	{
		this._FixIESelectAllBug( oRange ) ;
		return true ;
	}

	var isCollapsed = oRange.CheckIsCollapsed() ;

	if ( !isCollapsed )
	{
		// Bug #327, Backspace with an img selection would activate the default action in IE.
		// Let's override that with our logic here.
		if ( FCKBrowserInfo.IsIE && this.Window.document.selection.type.toLowerCase() == "control" )
		{
			var controls = this.Window.document.selection.createRange() ;
			for ( var i = controls.length - 1 ; i >= 0 ; i-- )
			{
				var el = controls.item( i ) ;
				el.parentNode.removeChild( el ) ;
			}
			return true ;
		}

		return false ;
	}

	// On IE, it is better for us handle the deletion if the caret is preceeded
	// by a <br> (#1383).
	if ( FCKBrowserInfo.IsIE )
	{
		var previousElement = FCKDomTools.GetPreviousSourceElement( oRange.StartNode, true ) ;

		if ( previousElement && previousElement.nodeName.toLowerCase() == 'br' )
		{
			// Create a range that starts after the <br> and ends at the
			// current range position.
			var testRange = oRange.Clone() ;
			testRange.SetStart( previousElement, 4 ) ;

			// If that range is empty, we can proceed cleaning that <br> manually.
			if ( testRange.CheckIsEmpty() )
			{
				previousElement.parentNode.removeChild( previousElement ) ;
				return true ;
			}
		}
	}

	var oStartBlock = oRange.StartBlock ;
	var oEndBlock = oRange.EndBlock ;

	// The selection boundaries must be in the same "block limit" element
	if ( oRange.StartBlockLimit == oRange.EndBlockLimit && oStartBlock && oEndBlock )
	{
		if ( !isCollapsed )
		{
			var bEndOfBlock = oRange.CheckEndOfBlock() ;

			oRange.DeleteContents() ;

			if ( oStartBlock != oEndBlock )
			{
				oRange.SetStart(oEndBlock,1) ;
				oRange.SetEnd(oEndBlock,1) ;

//				if ( bEndOfBlock )
//					oEndBlock.parentNode.removeChild( oEndBlock ) ;
			}

			oRange.Select() ;

			bCustom = ( oStartBlock == oEndBlock ) ;
		}

		if ( oRange.CheckStartOfBlock() )
		{
			var oCurrentBlock = oRange.StartBlock ;

			var ePrevious = FCKDomTools.GetPreviousSourceElement( oCurrentBlock, true, [ 'BODY', oRange.StartBlockLimit.nodeName ], ['UL','OL'] ) ;

			bCustom = this._ExecuteBackspace( oRange, ePrevious, oCurrentBlock ) ;
		}
		else if ( FCKBrowserInfo.IsGeckoLike )
		{
			// Firefox and Opera (#1095) loose the selection when executing
			// CheckStartOfBlock, so we must reselect.
			oRange.Select() ;
		}
	}

	oRange.Release() ;
	return bCustom ;
}

FCKEnterKey.prototype.DoCtrlBackspace = function()
{
	FCKUndo.SaveUndoStep() ;
	var oRange = new FCKDomRange( this.Window ) ;
	oRange.MoveToSelection() ;
	if ( FCKBrowserInfo.IsIE && this._CheckIsAllContentsIncluded( oRange, this.Window.document.body ) )
	{
		this._FixIESelectAllBug( oRange ) ;
		return true ;
	}
	return false ;
}

FCKEnterKey.prototype._ExecuteBackspace = function( range, previous, currentBlock )
{
	var bCustom = false ;

	// We could be in a nested LI.
	if ( !previous && currentBlock && currentBlock.nodeName.IEquals( 'LI' ) && currentBlock.parentNode.parentNode.nodeName.IEquals( 'LI' ) )
	{
		this._OutdentWithSelection( currentBlock, range ) ;
		return true ;
	}

	if ( previous && previous.nodeName.IEquals( 'LI' ) )
	{
		var oNestedList = FCKDomTools.GetLastChild( previous, ['UL','OL'] ) ;

		while ( oNestedList )
		{
			previous = FCKDomTools.GetLastChild( oNestedList, 'LI' ) ;
			oNestedList = FCKDomTools.GetLastChild( previous, ['UL','OL'] ) ;
		}
	}

	if ( previous && currentBlock )
	{
		// If we are in a LI, and the previous block is not an LI, we must outdent it.
		if ( currentBlock.nodeName.IEquals( 'LI' ) && !previous.nodeName.IEquals( 'LI' ) )
		{
			this._OutdentWithSelection( currentBlock, range ) ;
			return true ;
		}

		// Take a reference to the parent for post processing cleanup.
		var oCurrentParent = currentBlock.parentNode ;

		var sPreviousName = previous.nodeName.toLowerCase() ;
		if ( FCKListsLib.EmptyElements[ sPreviousName ] != null || sPreviousName == 'table' )
		{
			FCKDomTools.RemoveNode( previous ) ;
			bCustom = true ;
		}
		else
		{
			// Remove the current block.
			FCKDomTools.RemoveNode( currentBlock ) ;

			// Remove any empty tag left by the block removal.
			while ( oCurrentParent.innerHTML.Trim().length == 0 )
			{
				var oParent = oCurrentParent.parentNode ;
				oParent.removeChild( oCurrentParent ) ;
				oCurrentParent = oParent ;
			}

			// Cleanup the previous and the current elements.
			FCKDomTools.LTrimNode( currentBlock ) ;
			FCKDomTools.RTrimNode( previous ) ;

			// Append a space to the previous.
			// Maybe it is not always desirable...
			// previous.appendChild( this.Window.document.createTextNode( ' ' ) ) ;

			// Set the range to the end of the previous element and bookmark it.
			range.SetStart( previous, 2, true ) ;
			range.Collapse( true ) ;
			var oBookmark = range.CreateBookmark( true ) ;

			// Move the contents of the block to the previous element and delete it.
			// But for some block types (e.g. table), moving the children to the previous block makes no sense.
			// So a check is needed. (See #1081)
			if ( ! currentBlock.tagName.IEquals( [ 'TABLE' ] ) )
				FCKDomTools.MoveChildren( currentBlock, previous ) ;

			// Place the selection at the bookmark.
			range.SelectBookmark( oBookmark ) ;

			bCustom = true ;
		}
	}

	return bCustom ;
}

/*
 * Executes the <Delete> key behavior.
 */
FCKEnterKey.prototype.DoDelete = function()
{
	// Save an undo snapshot before doing anything
	// This is to conform with the behavior seen in MS Word
	FCKUndo.SaveUndoStep() ;

	// The <Delete> has the same effect as the <Backspace>, so we have the same
	// results if we just move to the next block and apply the same <Backspace> logic.

	var bCustom = false ;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
岛国精品在线播放| 精品久久久久久久人人人人传媒| 欧美日韩国产首页| 国产女主播在线一区二区| 一区二区三区日韩欧美精品| 国内精品免费在线观看| 欧美亚洲尤物久久| 国产精品卡一卡二| 激情成人综合网| 欧美裸体一区二区三区| 中文字幕乱码久久午夜不卡| 日韩av中文字幕一区二区三区 | 日本欧美一区二区在线观看| 国产精品一二三四区| 欧美电影一区二区| 亚洲女人的天堂| 成人久久久精品乱码一区二区三区| 91精品国产欧美一区二区成人| 亚洲欧美一区二区三区极速播放 | 中文字幕日韩精品一区| 国产在线麻豆精品观看| 欧美一区二区三区四区五区| 亚洲影视在线播放| 一本色道亚洲精品aⅴ| 亚洲国产精华液网站w| 国产一区二区影院| 精品精品国产高清a毛片牛牛| 日本aⅴ精品一区二区三区 | 91免费小视频| 中文字幕一区免费在线观看| 国产高清精品久久久久| www成人在线观看| 久久99日本精品| 日韩精品一区二区三区在线观看| 日本欧美加勒比视频| 欧美一区二区三区在线看| 婷婷中文字幕一区三区| 91福利在线观看| 一区二区三区毛片| 欧美亚洲一区二区在线| 亚洲国产精品一区二区www在线 | av午夜一区麻豆| 最近日韩中文字幕| 99国产精品久久久| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 一区二区三区在线观看视频| 91女人视频在线观看| 一区二区三区在线视频免费| 欧美午夜精品久久久久久超碰 | 亚洲免费电影在线| 欧美日韩国产影片| 久久精品国产久精国产| 久久看人人爽人人| 91在线观看免费视频| 亚洲一区欧美一区| 日韩精品一区二区三区老鸭窝| 国产真实乱偷精品视频免| 中文字幕免费在线观看视频一区| 91片在线免费观看| 视频一区二区国产| 久久婷婷久久一区二区三区| av在线免费不卡| 丝袜脚交一区二区| 久久女同互慰一区二区三区| 99热国产精品| 日本欧美久久久久免费播放网| 久久女同性恋中文字幕| 在线影视一区二区三区| 久久精品国产网站| 亚洲精品国产无天堂网2021 | 免费看黄色91| 国产精品欧美久久久久无广告| 色综合婷婷久久| 黄色资源网久久资源365| 亚洲人精品一区| 日韩欧美在线1卡| 91在线播放网址| 久久99在线观看| 亚洲综合999| 久久精品免视看| 欧美日韩国产另类一区| 国产电影一区在线| 亚洲成国产人片在线观看| 国产亚洲美州欧州综合国| 欧美综合一区二区三区| 国产a级毛片一区| 日韩国产欧美在线视频| 亚洲三级视频在线观看| 欧美成人一区二区三区片免费| 91麻豆精品在线观看| 国内精品国产成人国产三级粉色 | 中文字幕av一区二区三区| 91精品国产综合久久香蕉的特点| 成人av影视在线观看| 奇米色777欧美一区二区| 亚洲欧美日韩国产手机在线 | www成人在线观看| 91.成人天堂一区| 色婷婷亚洲婷婷| 成人精品在线视频观看| 精品一二三四区| 午夜成人免费电影| 亚洲一级在线观看| 亚洲精品综合在线| 国产精品理伦片| 国产欧美日韩三级| 久久新电视剧免费观看| 日韩一区二区三区视频在线观看| 欧美日韩一级片网站| 成人动漫精品一区二区| 国产一区二区在线看| 美国毛片一区二区三区| 亚洲成精国产精品女| 一区二区三区四区国产精品| 亚洲欧美日韩综合aⅴ视频| 国产日韩欧美综合在线| 精品国产欧美一区二区| 欧美成人性战久久| 久久网站热最新地址| 久久久久久久久久久久电影| www激情久久| 国产欧美精品日韩区二区麻豆天美| 日韩欧美一二三四区| 欧美成人伊人久久综合网| 精品国产91洋老外米糕| 久久久精品免费免费| 国产网红主播福利一区二区| 久久精品一级爱片| 中文字幕一区在线观看视频| 最新不卡av在线| 亚洲午夜电影网| 日韩电影在线一区二区| 黄一区二区三区| 成人av免费在线观看| 91麻豆免费看| 欧美一区二区免费| 久久免费午夜影院| 亚洲欧美自拍偷拍| 亚洲不卡一区二区三区| 爽好多水快深点欧美视频| 麻豆精品在线看| 成人做爰69片免费看网站| 色av成人天堂桃色av| 91久久精品一区二区| 欧美一级夜夜爽| 26uuu精品一区二区在线观看| 国产女同性恋一区二区| 亚洲男人的天堂av| 免费观看久久久4p| 99久久国产综合色|国产精品| 欧美日韩精品欧美日韩精品 | 日韩欧美一级精品久久| 中文字幕第一页久久| 亚洲小说春色综合另类电影| 久久激情五月激情| 色婷婷激情久久| 精品国产123| 亚洲综合免费观看高清完整版在线 | 午夜电影网亚洲视频| 国产一区二区美女| 色狠狠av一区二区三区| 久久综合色之久久综合| 亚洲激情av在线| 精品亚洲成a人在线观看| 91色九色蝌蚪| 精品国产一区二区三区忘忧草 | 1000精品久久久久久久久| 亚洲成av人片在线观看无码| 成人小视频免费在线观看| 在线不卡中文字幕播放| 国产精品久久久久桃色tv| 免费观看一级欧美片| 欧美性一二三区| 国产精品久久午夜| 久久99久国产精品黄毛片色诱| 欧美综合一区二区三区| 国产精品久久二区二区| 紧缚捆绑精品一区二区| 欧美日本一道本| 亚洲免费观看高清完整版在线观看| 激情五月婷婷综合| 欧美日韩一区二区三区在线| 国产精品福利一区| 国产一区二区在线免费观看| 欧美日本国产一区| 夜夜操天天操亚洲| 色综合久久六月婷婷中文字幕| 国产亚洲精久久久久久| 韩日欧美一区二区三区| 日韩丝袜美女视频| 日本欧美在线看| 日韩一区二区在线观看| 日本成人在线看| 91精品国产综合久久香蕉的特点| 一级中文字幕一区二区| 99re成人精品视频| 亚洲少妇屁股交4| 日本久久一区二区| 一区二区欧美在线观看| 在线视频你懂得一区二区三区|