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

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

?? fck.js

?? 強大的個人日志系統(tǒng),界面華麗
?? JS
?? 第 1 頁 / 共 3 頁
字號:
?/*
 * 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 ==
 *
 * Creation and initialization of the "FCK" object. This is the main object
 * that represents an editor instance.
 */

// FCK represents the active editor instance.
var FCK =
{
	Name			: FCKURLParams[ 'InstanceName' ],
	Status			: FCK_STATUS_NOTLOADED,
	EditMode		: FCK_EDITMODE_WYSIWYG,
	Toolbar			: null,
	HasFocus		: false,
	DataProcessor	: new FCKDataProcessor(),

	GetInstanceObject	: (function()
	{
		var w = window ;
		return function( name )
		{
			return w[name] ;
		}
	})(),

	AttachToOnSelectionChange : function( functionPointer )
	{
		this.Events.AttachEvent( 'OnSelectionChange', functionPointer ) ;
	},

	GetLinkedFieldValue : function()
	{
		return this.LinkedField.value ;
	},

	GetParentForm : function()
	{
		return this.LinkedField.form ;
	} ,

	// # START : IsDirty implementation

	StartupValue : '',

	IsDirty : function()
	{
		if ( this.EditMode == FCK_EDITMODE_SOURCE )
			return ( this.StartupValue != this.EditingArea.Textarea.value ) ;
		else
		{
			// It can happen switching between design and source mode in Gecko
			if ( ! this.EditorDocument )
				return false ;

			return ( this.StartupValue != this.EditorDocument.body.innerHTML ) ;
		}
	},

	ResetIsDirty : function()
	{
		if ( this.EditMode == FCK_EDITMODE_SOURCE )
			this.StartupValue = this.EditingArea.Textarea.value ;
		else if ( this.EditorDocument.body )
			this.StartupValue = this.EditorDocument.body.innerHTML ;
	},

	// # END : IsDirty implementation

	StartEditor : function()
	{
		this.TempBaseTag = FCKConfig.BaseHref.length > 0 ? '<base href="' + FCKConfig.BaseHref + '" _fcktemp="true"></base>' : '' ;

		// Setup the keystroke handler.
		var oKeystrokeHandler = FCK.KeystrokeHandler = new FCKKeystrokeHandler() ;
		oKeystrokeHandler.OnKeystroke = _FCK_KeystrokeHandler_OnKeystroke ;

		// Set the config keystrokes.
		oKeystrokeHandler.SetKeystrokes( FCKConfig.Keystrokes ) ;

		// In IE7, if the editor tries to access the clipboard by code, a dialog is
		// shown to the user asking if the application is allowed to access or not.
		// Due to the IE implementation of it, the KeystrokeHandler will not work
		//well in this case, so we must leave the pasting keys to have their default behavior.
		if ( FCKBrowserInfo.IsIE7 )
		{
			if ( ( CTRL + 86 /*V*/ ) in oKeystrokeHandler.Keystrokes )
				oKeystrokeHandler.SetKeystrokes( [ CTRL + 86, true ] ) ;

			if ( ( SHIFT + 45 /*INS*/ ) in oKeystrokeHandler.Keystrokes )
				oKeystrokeHandler.SetKeystrokes( [ SHIFT + 45, true ] ) ;
		}

		// Retain default behavior for Ctrl-Backspace. (Bug #362)
		oKeystrokeHandler.SetKeystrokes( [ CTRL + 8, true ] ) ;

		this.EditingArea = new FCKEditingArea( document.getElementById( 'xEditingArea' ) ) ;
		this.EditingArea.FFSpellChecker = FCKConfig.FirefoxSpellChecker ;

		// Set the editor's startup contents.
		this.SetData( this.GetLinkedFieldValue(), true ) ;

		// Tab key handling for source mode.
		FCKTools.AddEventListener( document, "keydown", this._TabKeyHandler ) ;

		// Add selection change listeners. They must be attached only once.
		this.AttachToOnSelectionChange( _FCK_PaddingNodeListener ) ;
		if ( FCKBrowserInfo.IsGecko )
			this.AttachToOnSelectionChange( this._ExecCheckEmptyBlock ) ;

	},

	Focus : function()
	{
		FCK.EditingArea.Focus() ;
	},

	SetStatus : function( newStatus )
	{
		this.Status = newStatus ;

		if ( newStatus == FCK_STATUS_ACTIVE )
		{
			FCKFocusManager.AddWindow( window, true ) ;

			if ( FCKBrowserInfo.IsIE )
				FCKFocusManager.AddWindow( window.frameElement, true ) ;

			// Force the focus in the editor.
			if ( FCKConfig.StartupFocus )
				FCK.Focus() ;
		}

		this.Events.FireEvent( 'OnStatusChange', newStatus ) ;

	},

	// Fixes the body by moving all inline and text nodes to appropriate block
	// elements.
	FixBody : function()
	{
		var sBlockTag = FCKConfig.EnterMode ;

		// In 'br' mode, no fix must be done.
		if ( sBlockTag != 'p' && sBlockTag != 'div' )
			return ;

		var oDocument = this.EditorDocument ;

		if ( !oDocument )
			return ;

		var oBody = oDocument.body ;

		if ( !oBody )
			return ;

		FCKDomTools.TrimNode( oBody ) ;

		var oNode = oBody.firstChild ;
		var oNewBlock ;

		while ( oNode )
		{
			var bMoveNode = false ;

			switch ( oNode.nodeType )
			{
				// Element Node.
				case 1 :
					var nodeName = oNode.nodeName.toLowerCase() ;
					if ( !FCKListsLib.BlockElements[ nodeName ] &&
							nodeName != 'li' &&
							!oNode.getAttribute('_fckfakelement') &&
							oNode.getAttribute('_moz_dirty') == null )
						bMoveNode = true ;
					break ;

				// Text Node.
				case 3 :
					// Ignore space only or empty text.
					if ( oNewBlock || oNode.nodeValue.Trim().length > 0 )
						bMoveNode = true ;
					break;

				// Comment Node
				case 8 :
					if ( oNewBlock )
						bMoveNode = true ;
					break;
			}

			if ( bMoveNode )
			{
				var oParent = oNode.parentNode ;

				if ( !oNewBlock )
					oNewBlock = oParent.insertBefore( oDocument.createElement( sBlockTag ), oNode ) ;

				oNewBlock.appendChild( oParent.removeChild( oNode ) ) ;

				oNode = oNewBlock.nextSibling ;
			}
			else
			{
				if ( oNewBlock )
				{
					FCKDomTools.TrimNode( oNewBlock ) ;
					oNewBlock = null ;
				}
				oNode = oNode.nextSibling ;
			}
		}

		if ( oNewBlock )
			FCKDomTools.TrimNode( oNewBlock ) ;
	},

	GetData : function( format )
	{
		// We assume that if the user is in source editing, the editor value must
		// represent the exact contents of the source, as the user wanted it to be.
		if ( FCK.EditMode == FCK_EDITMODE_SOURCE )
				return FCK.EditingArea.Textarea.value ;

		this.FixBody() ;

		var oDoc = FCK.EditorDocument ;
		if ( !oDoc )
			return null ;

		var isFullPage = FCKConfig.FullPage ;

		// Call the Data Processor to generate the output data.
		var data = FCK.DataProcessor.ConvertToDataFormat(
			isFullPage ? oDoc.documentElement : oDoc.body,
			!isFullPage,
			FCKConfig.IgnoreEmptyParagraphValue,
			format ) ;

		// Restore protected attributes.
		data = FCK.ProtectEventsRestore( data ) ;

		if ( FCKBrowserInfo.IsIE )
			data = data.replace( FCKRegexLib.ToReplace, '$1' ) ;

		if ( isFullPage )
		{
			if ( FCK.DocTypeDeclaration && FCK.DocTypeDeclaration.length > 0 )
				data = FCK.DocTypeDeclaration + '\n' + data ;

			if ( FCK.XmlDeclaration && FCK.XmlDeclaration.length > 0 )
				data = FCK.XmlDeclaration + '\n' + data ;
		}

		return FCKConfig.ProtectedSource.Revert( data ) ;
	},

	UpdateLinkedField : function()
	{
		var value = FCK.GetXHTML( FCKConfig.FormatOutput ) ;

		if ( FCKConfig.HtmlEncodeOutput )
			value = FCKTools.HTMLEncode( value ) ;

		FCK.LinkedField.value = value ;
		FCK.Events.FireEvent( 'OnAfterLinkedFieldUpdate' ) ;
	},

	RegisteredDoubleClickHandlers : new Object(),

	OnDoubleClick : function( element )
	{
		var oCalls = FCK.RegisteredDoubleClickHandlers[ element.tagName.toUpperCase() ] ;

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

		// Generic handler for any element
		oCalls = FCK.RegisteredDoubleClickHandlers[ '*' ] ;

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

	},

	// Register objects that can handle double click operations.
	RegisterDoubleClickHandler : function( handlerFunction, tag )
	{
		var nodeName = tag || '*' ;
		nodeName = nodeName.toUpperCase() ;

		var aTargets ;

		if ( !( aTargets = FCK.RegisteredDoubleClickHandlers[ nodeName ] ) )
			FCK.RegisteredDoubleClickHandlers[ nodeName ] = [ handlerFunction ] ;
		else
		{
			// Check that the event handler isn't already registered with the same listener
			// It doesn't detect function pointers belonging to an object (at least in Gecko)
			if ( aTargets.IndexOf( handlerFunction ) == -1 )
				aTargets.push( handlerFunction ) ;
		}

	},

	OnAfterSetHTML : function()
	{
		FCKDocumentProcessor.Process( FCK.EditorDocument ) ;
		FCKUndo.SaveUndoStep() ;

		FCK.Events.FireEvent( 'OnSelectionChange' ) ;
		FCK.Events.FireEvent( 'OnAfterSetHTML' ) ;
	},

	// Saves URLs on links and images on special attributes, so they don't change when
	// moving around.
	ProtectUrls : function( html )
	{
		// <A> href
		html = html.replace( FCKRegexLib.ProtectUrlsA	, '$& _fcksavedurl=$1' ) ;

		// <IMG> src
		html = html.replace( FCKRegexLib.ProtectUrlsImg	, '$& _fcksavedurl=$1' ) ;

		// <AREA> href
		html = html.replace( FCKRegexLib.ProtectUrlsArea	, '$& _fcksavedurl=$1' ) ;

		return html ;
	},

	// Saves event attributes (like onclick) so they don't get executed while
	// editing.
	ProtectEvents : function( html )
	{
		return html.replace( FCKRegexLib.TagsWithEvent, _FCK_ProtectEvents_ReplaceTags ) ;
	},

	ProtectEventsRestore : function( html )
	{
		return html.replace( FCKRegexLib.ProtectedEvents, _FCK_ProtectEvents_RestoreEvents ) ;
	},

	ProtectTags : function( html )
	{
		var sTags = FCKConfig.ProtectedTags ;

		// IE doesn't support <abbr> and it breaks it. Let's protect it.
		if ( FCKBrowserInfo.IsIE )
			sTags += sTags.length > 0 ? '|ABBR|XML|EMBED|OBJECT' : 'ABBR|XML|EMBED|OBJECT' ;

		var oRegex ;
		if ( sTags.length > 0 )
		{
			oRegex = new RegExp( '<(' + sTags + ')(?!\w|:)', 'gi' ) ;
			html = html.replace( oRegex, '<FCK:$1' ) ;

			oRegex = new RegExp( '<\/(' + sTags + ')>', 'gi' ) ;
			html = html.replace( oRegex, '<\/FCK:$1>' ) ;
		}

		// Protect some empty elements. We must do it separately because the
		// original tag may not contain the closing slash, like <hr>:
		//		- <meta> tags get executed, so if you have a redirect meta, the
		//		  content will move to the target page.
		//		- <hr> may destroy the document structure if not well
		//		  positioned. The trick is protect it here and restore them in
		//		  the FCKDocumentProcessor.
		sTags = 'META' ;
		if ( FCKBrowserInfo.IsIE )
			sTags += '|HR' ;

		oRegex = new RegExp( '<((' + sTags + ')(?=\\s|>|/)[\\s\\S]*?)/?>', 'gi' ) ;
		html = html.replace( oRegex, '<FCK:$1 />' ) ;

		return html ;
	},

	SetData : function( data, resetIsDirty )
	{
		this.EditingArea.Mode = FCK.EditMode ;

		// If there was an onSelectionChange listener in IE we must remove it to avoid crashes #1498
		if ( FCKBrowserInfo.IsIE && FCK.EditorDocument )
		{
			FCK.EditorDocument.detachEvent("onselectionchange", Doc_OnSelectionChange ) ;
		}

		FCKTempBin.Reset();

		if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG )
		{
			// Save the resetIsDirty for later use (async)
			this._ForceResetIsDirty = ( resetIsDirty === true ) ;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费在线一区观看| 亚洲国产成人av网| 在线视频国内一区二区| 久久精品国产99久久6| 1000精品久久久久久久久| 6080yy午夜一二三区久久| 成人午夜又粗又硬又大| 日本va欧美va精品发布| 伊人夜夜躁av伊人久久| 国产日产欧美一区| 日韩一二三区不卡| 在线观看日韩国产| 国产成人无遮挡在线视频| 视频一区中文字幕| 日本aⅴ亚洲精品中文乱码| 成人97人人超碰人人99| 国产精品二三区| 国产精品伊人色| 国产清纯白嫩初高生在线观看91 | 成人免费毛片a| 欧美性大战久久| 亚洲成人av在线电影| 日韩国产精品久久| 欧美精品日韩综合在线| 日本sm残虐另类| 亚洲精品免费电影| 国产精品久久毛片a| 国产一区二三区好的| www.欧美精品一二区| 欧美一区二区网站| 亚洲免费观看在线观看| 97久久久精品综合88久久| 精品福利一区二区三区| 久久精品国产亚洲一区二区三区 | 日韩片之四级片| 亚洲一区二区三区自拍| 欧美日韩精品专区| 一本一道久久a久久精品| 中文字幕中文字幕一区二区| 91麻豆精品在线观看| 亚洲制服丝袜一区| 中文字幕亚洲欧美在线不卡| 国产精品66部| 久久一区二区三区国产精品| 激情综合亚洲精品| 欧洲日韩一区二区三区| 日韩成人一区二区三区在线观看| 亚洲欧美一区二区视频| 亚洲另类中文字| 国产一区二区福利| 五月天一区二区三区| 亚洲激情六月丁香| 亚洲成a人片综合在线| 亚洲免费大片在线观看| 一区二区三区在线看| 亚洲人成网站色在线观看| 亚洲欧美日韩国产成人精品影院| 91精品国产一区二区三区 | 日韩影院在线观看| 中文字幕不卡在线观看| 91.成人天堂一区| 久草精品在线观看| 国产综合色视频| 中文字幕一区二区在线观看| 精品99一区二区三区| 国产精品第13页| 91色视频在线| 久久成人免费电影| 成人三级在线视频| 成人av在线资源| 欧美日韩亚洲不卡| 日韩美女天天操| 色综合天天综合在线视频| 欧美精品自拍偷拍| 日韩欧美成人一区| 中文字幕在线视频一区| 亚洲天堂成人在线观看| 日韩国产欧美在线播放| 日韩高清欧美激情| 不卡高清视频专区| 欧美三级中文字幕在线观看| 欧美日韩成人激情| 中文字幕精品综合| 玉米视频成人免费看| 免费观看在线综合| 国产高清在线观看免费不卡| 色狠狠一区二区三区香蕉| 欧美日韩国产天堂| 中文av一区二区| 亚洲综合无码一区二区| 日韩高清在线电影| 一本大道av一区二区在线播放 | 在线中文字幕一区| 91精品国产一区二区| 中文字幕一区二区5566日韩| 亚洲综合男人的天堂| 国产一区亚洲一区| 欧美在线视频你懂得| 欧美刺激午夜性久久久久久久| 日本一区二区三区免费乱视频| 亚洲精品成人a在线观看| 免费在线观看不卡| 成人美女视频在线看| 日韩三级.com| 亚洲欧美电影院| 日韩国产一区二| 99久久精品免费看国产免费软件| 91日韩在线专区| 精品国产91九色蝌蚪| 亚洲精品免费看| 不卡大黄网站免费看| 在线观看亚洲专区| 最新热久久免费视频| 麻豆免费精品视频| 欧美午夜在线观看| 国产欧美视频一区二区| 亚洲视频在线一区观看| 国模娜娜一区二区三区| 日本乱码高清不卡字幕| 国产欧美精品一区aⅴ影院| 亚洲美女一区二区三区| 国产精品一卡二卡在线观看| 欧美日韩国产片| 亚洲成在人线在线播放| av电影在线观看完整版一区二区| 91福利社在线观看| 久久女同精品一区二区| 国产综合色视频| www日韩大片| 国产精品一区免费视频| 91精品国产黑色紧身裤美女| 日韩精品一区二区三区四区视频| 亚洲欧美日韩在线| 成人a级免费电影| 国产精品第13页| 色噜噜夜夜夜综合网| 亚洲美女精品一区| 日韩一区二区三区高清免费看看| 亚洲精品久久久久久国产精华液| 欧美日韩中文精品| 亚洲欧美偷拍卡通变态| 久久99精品久久久久婷婷| 91一区一区三区| 一区二区欧美国产| 中文字幕一区二区三区色视频 | 亚洲免费大片在线观看| 欧美日韩精品系列| 日日夜夜一区二区| 亚洲国产精品成人综合| 色综合咪咪久久| 亚洲国产精品久久艾草纯爱| 国产三级精品视频| 91在线观看一区二区| 韩国精品一区二区| 国产精品美女久久久久久| 久久99在线观看| 亚洲欧美日韩综合aⅴ视频| 一区二区三区四区在线免费观看| 亚洲综合色区另类av| 在线观看日韩电影| 亚洲成人资源网| 在线观看成人小视频| 亚洲精品日韩综合观看成人91| 久久精品国产在热久久| 中文字幕乱码亚洲精品一区| 久久99精品久久久| 欧美激情一区二区三区在线| 国产高清精品网站| 亚洲免费视频中文字幕| 成人97人人超碰人人99| 亚洲高清在线精品| 欧美视频一区二区三区在线观看| 亚洲国产日韩一级| 亚洲一区二区三区四区五区中文| 在线免费观看日本欧美| 亚洲国产精品一区二区尤物区| 欧美日韩一级视频| 图片区日韩欧美亚洲| 日韩三级在线免费观看| 成人污视频在线观看| 一区二区三区日韩欧美精品| 欧美影视一区在线| 蜜桃精品视频在线| 欧美高清视频www夜色资源网| 免费看黄色91| 国产精品久久久久久一区二区三区| 91黄色激情网站| 麻豆国产精品777777在线| 亚洲国产精品t66y| 韩国毛片一区二区三区| 夜夜精品视频一区二区| 精品一区二区三区在线播放视频| 日本欧美大码aⅴ在线播放| 亚洲最大成人综合| 亚洲一级二级在线| 国产成人亚洲精品狼色在线| 日韩精品视频网| 国产日韩欧美精品综合| 99国产欧美另类久久久精品| 国产伦精品一区二区三区免费迷|