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

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

?? fck.js

?? < content="Hello,sik" Dim oFCKeditor Set oFCKeditor = New FCKeditor oFCKeditor.BasePath
?? JS
?? 第 1 頁 / 共 3 頁
字號:
?/*
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2009 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() ;

		// Bug #2469: SelectionData.createRange becomes undefined after the editor
		// iframe is changed by FCK.SetData().
		FCK.Selection.Release() ;

		if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG )
		{

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产成人91porn| 国产乱对白刺激视频不卡| 中文字幕免费不卡| 欧美一区二区精美| 欧美精品成人一区二区三区四区| 99久精品国产| 午夜欧美一区二区三区在线播放| 国产精品传媒入口麻豆| 国产人成一区二区三区影院| 欧美日韩国产影片| 91久久一区二区| 国产成人av影院| 国产伦精品一区二区三区免费迷| 麻豆成人91精品二区三区| 婷婷国产v国产偷v亚洲高清| 亚洲一二三区不卡| 亚洲国产aⅴ天堂久久| 亚洲精品ww久久久久久p站| 久久久五月婷婷| 久久久久国产一区二区三区四区 | 成人免费在线观看入口| 国产免费观看久久| 国产精品色噜噜| 精品国产一区二区三区久久影院 | 中文字幕一区二区三区在线不卡| 久久精品人人做人人综合| 久久综合av免费| 亚洲精品一区二区三区在线观看 | 日韩精品一区二区三区中文精品| 欧美一级爆毛片| 日韩欧美亚洲一区二区| 日韩欧美专区在线| 精品黑人一区二区三区久久| 久久久亚洲高清| 久久综合九色欧美综合狠狠| 国产欧美一二三区| 国产精品每日更新| 一区二区三区高清在线| 日日欢夜夜爽一区| 色婷婷综合久久久中文字幕| 国产91精品露脸国语对白| 精品一区二区综合| 午夜天堂影视香蕉久久| 蜜臀av性久久久久蜜臀aⅴ四虎| 国内外精品视频| 欧美亚洲高清一区| 欧美妇女性影城| 日本一区二区三区在线观看| 一区二区三区中文在线观看| av电影在线不卡| 免费av成人在线| 99视频超级精品| 3d成人动漫网站| 国产欧美精品一区| 午夜成人免费电影| 国产成人一区在线| 欧美高清精品3d| 中文字幕一区二区三区色视频| 日韩av成人高清| 91视频www| 亚洲精品在线免费播放| 亚洲国产一二三| 夫妻av一区二区| 日韩色视频在线观看| 有码一区二区三区| 国产成人午夜高潮毛片| 欧美日韩dvd在线观看| 国产精品国产a级| 另类专区欧美蜜桃臀第一页| 欧美系列日韩一区| 国产精品天天看| 国产在线精品一区二区| 678五月天丁香亚洲综合网| 中文字幕一区二区三区精华液 | 国产精品伦理一区二区| 久久精品99久久久| 欧美理论在线播放| 亚洲免费av在线| 99re在线精品| 欧美激情资源网| 国产精品资源在线观看| 精品区一区二区| 石原莉奈一区二区三区在线观看| 95精品视频在线| 中文字幕的久久| 国产91在线看| 国产无一区二区| 国产在线播放一区| 26uuu久久综合| 理论电影国产精品| 日韩欧美亚洲另类制服综合在线| 亚洲综合免费观看高清完整版| 成人一区二区三区| 国产调教视频一区| 国产一区二区三区久久久 | 国产午夜亚洲精品午夜鲁丝片| 久久精品国产网站| 日韩三级在线免费观看| 日日摸夜夜添夜夜添亚洲女人| 欧美午夜影院一区| 亚洲一区二区偷拍精品| 色综合久久久网| 亚洲男女毛片无遮挡| 91蝌蚪porny| 一区二区三区在线观看网站| 色综合久久中文字幕| 亚洲一区在线观看免费 | 久久久www成人免费毛片麻豆| 精品一区二区三区在线视频| 欧美大片一区二区三区| 精品一区二区综合| 久久精品免费在线观看| 国产suv精品一区二区6| 中文字幕久久午夜不卡| a级高清视频欧美日韩| 亚洲欧洲美洲综合色网| 91女人视频在线观看| 一区二区三区四区不卡在线| 欧美在线色视频| 日韩精品三区四区| 精品久久免费看| 成人免费看片app下载| 最新国产成人在线观看| 欧洲一区二区av| 日韩成人精品视频| 久久这里只有精品视频网| 成人做爰69片免费看网站| 专区另类欧美日韩| 欧美电影一区二区| 国产米奇在线777精品观看| 国产精品欧美一区二区三区| 色综合久久久久久久| 亚洲电影在线免费观看| 日韩精品一区二| 国产精品原创巨作av| 亚洲精品久久久蜜桃| 日韩欧美资源站| 成年人午夜久久久| 香蕉乱码成人久久天堂爱免费| 日韩欧美资源站| 91丨九色丨蝌蚪丨老版| 日韩国产高清影视| 国产欧美精品一区aⅴ影院| 91国产成人在线| 久久国产尿小便嘘嘘| 自拍偷拍欧美激情| 欧美电影免费提供在线观看| av成人动漫在线观看| 午夜欧美视频在线观看 | 国产精一区二区三区| 亚洲三级在线观看| 日韩欧美中文字幕制服| 波多野结衣中文字幕一区二区三区| 亚洲国产一区二区在线播放| 久久九九全国免费| 欧美日本乱大交xxxxx| 国产成人av一区| 日韩精品亚洲一区二区三区免费| 国产欧美一区二区精品忘忧草| 欧美美女一区二区在线观看| 国产一区二区在线免费观看| 一区二区三区精品在线| 久久影院电视剧免费观看| 欧美日韩在线一区二区| 成人在线视频一区| 老色鬼精品视频在线观看播放| 最好看的中文字幕久久| 精品久久一二三区| 欧美日韩精品一区视频| 成人国产电影网| 久久国产人妖系列| 香蕉成人伊视频在线观看| 国产精品青草久久| 久久久亚洲欧洲日产国码αv| 欧美久久久久久久久中文字幕| 99久久综合精品| 国产在线精品一区二区夜色 | 欧美亚洲综合一区| 国产69精品久久777的优势| 免费人成精品欧美精品 | 成人精品小蝌蚪| 看电视剧不卡顿的网站| 亚洲福利一区二区三区| 亚洲精品国久久99热| 国产精品美日韩| 久久久精品免费免费| 日韩精品一区二区在线| 欧美精品在线视频| 91国模大尺度私拍在线视频| 91在线高清观看| 成人免费高清视频| 国产精品一区二区在线观看不卡| 日本vs亚洲vs韩国一区三区二区| 亚洲综合视频在线观看| 综合精品久久久| 国产精品精品国产色婷婷| 欧美激情一区二区三区不卡| 久久一区二区三区四区| 日韩精品一区二区三区视频在线观看 | 国产成人av影院|