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

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

?? fck.js

?? 尚學堂科技JAVA系列教程之JAVA系列BBS_2007的講解源代碼
?? JS
?? 第 1 頁 / 共 2 頁
字號:
?/*
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2007 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,

	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
			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 ;

		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 ] ) ;
		}

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

		// Final setup of the lists lib.
		FCKListsLib.Setup() ;

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

	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 :
					if ( !FCKListsLib.BlockElements[ oNode.nodeName.toLowerCase() ] )
						bMoveNode = true ;
					break ;

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

			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 ) ;
	},

	GetXHTML : 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 sXHTML ;
		var oDoc = FCK.EditorDocument ;

		if ( !oDoc )
			return null ;

		if ( FCKConfig.FullPage )
		{
			sXHTML = FCKXHtml.GetXHTML( oDoc.getElementsByTagName( 'html' )[0], true, format ) ;

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

			if ( FCK.XmlDeclaration && FCK.XmlDeclaration.length > 0 )
				sXHTML = FCK.XmlDeclaration + '\n' + sXHTML ;
		}
		else
		{
			sXHTML = FCKXHtml.GetXHTML( oDoc.body, false, format ) ;

			if ( FCKConfig.IgnoreEmptyParagraphValue && FCKRegexLib.EmptyOutParagraph.test( sXHTML ) )
				sXHTML = '' ;
		}

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

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

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

	UpdateLinkedField : function()
	{
		FCK.LinkedField.value = FCK.GetXHTML( FCKConfig.FormatOutput ) ;
		FCK.Events.FireEvent( 'OnAfterLinkedFieldUpdate' ) ;
	},

	RegisteredDoubleClickHandlers : new Object(),

	OnDoubleClick : function( element )
	{
		var oHandler = FCK.RegisteredDoubleClickHandlers[ element.tagName ] ;
		if ( oHandler )
			oHandler( element ) ;
	},

	// Register objects that can handle double click operations.
	RegisterDoubleClickHandler : function( handlerFunction, tag )
	{
		FCK.RegisteredDoubleClickHandlers[ tag.toUpperCase() ] = 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' ) ;

		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' : 'ABBR|XML' ;
		
		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 becase 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 ;
	},

	SetHTML : function( html, resetIsDirty )
	{
		this.EditingArea.Mode = FCK.EditMode ;

		if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG )
		{
			html = FCKConfig.ProtectedSource.Protect( html ) ;

			// Fix for invalid self-closing tags (see #152).
			html = html.replace( FCKRegexLib.InvalidSelfCloseTags, '$1></$2>' ) ;

			html = FCK.ProtectEvents( html ) ;
			html = FCK.ProtectUrls( html ) ;
			html = FCK.ProtectTags( html ) ;

			// Firefox can't handle correctly the editing of the STRONG and EM tags.
			// We must replace them with B and I.
			if ( FCKBrowserInfo.IsGecko )
			{
				html = html.replace( FCKRegexLib.StrongOpener, '<b$1' ) ;
				html = html.replace( FCKRegexLib.StrongCloser, '<\/b>' ) ;
				html = html.replace( FCKRegexLib.EmOpener, '<i$1' ) ;
				html = html.replace( FCKRegexLib.EmCloser, '<\/i>' ) ;
			}

			this._ForceResetIsDirty = ( resetIsDirty === true ) ;

			var sHtml = '' ;

			if ( FCKConfig.FullPage )
			{
				// The HTML must be fixed if the <head> is not available.
				if ( !FCKRegexLib.HeadOpener.test( html ) )
				{
					// Check if the <html> is available.
					if ( !FCKRegexLib.HtmlOpener.test( html ) )
						html = '<html dir="' + FCKConfig.ContentLangDirection + '">' + html + '</html>' ;

					// Add the <head>.
					html = html.replace( FCKRegexLib.HtmlOpener, '$&<head></head>' ) ;
				}

				// Save the DOCTYPE.
				FCK.DocTypeDeclaration = html.match( FCKRegexLib.DocTypeTag ) ;

				if ( FCKBrowserInfo.IsIE )
					sHtml = FCK._GetBehaviorsStyle() ;
				else if ( FCKConfig.ShowBorders )
					sHtml = '<link href="' + FCKConfig.FullBasePath + 'css/fck_showtableborders_gecko.css" rel="stylesheet" type="text/css" _fcktemp="true" />' ;

				sHtml += '<link href="' + FCKConfig.FullBasePath + 'css/fck_internal.css' + '" rel="stylesheet" type="text/css" _fcktemp="true" />' ;

				// Attention: do not change it before testing it well (sample07)!
				// This is tricky... if the head ends with <meta ... content type>,
				// Firefox will break. But, it works if we include the temporary
				// links as the last elements in the HEAD.
				sHtml = html.replace( FCKRegexLib.HeadCloser, sHtml + '$&' ) ;

				// Insert the base tag (FCKConfig.BaseHref), if not exists in the source.
				// The base must be the first tag in the HEAD, to get relative
				// links on styles, for example.
				if ( FCK.TempBaseTag.length > 0 && !FCKRegexLib.HasBaseTag.test( html ) )
					sHtml = sHtml.replace( FCKRegexLib.HeadOpener, '$&' + FCK.TempBaseTag ) ;
			}
			else
			{
				sHtml =
					FCKConfig.DocType +
					'<html dir="' + FCKConfig.ContentLangDirection + '"' ;

				// On IE, if you are use a DOCTYPE differenft of HTML 4 (like
				// XHTML), you must force the vertical scroll to show, otherwise
				// the horizontal one may appear when the page needs vertical scrolling.
				if ( FCKBrowserInfo.IsIE && !FCKRegexLib.Html4DocType.test( FCKConfig.DocType ) )
					sHtml += ' style="overflow-y: scroll"' ;

				sHtml +=
					'><head><title></title>' +
					_FCK_GetEditorAreaStyleTags() +
					'<link href="' + FCKConfig.FullBasePath + 'css/fck_internal.css' + '" rel="stylesheet" type="text/css" _fcktemp="true" />' ;

				if ( FCKBrowserInfo.IsIE )
					sHtml += FCK._GetBehaviorsStyle() ;
				else if ( FCKConfig.ShowBorders )
					sHtml += '<link href="' + FCKConfig.FullBasePath + 'css/fck_showtableborders_gecko.css" rel="stylesheet" type="text/css" _fcktemp="true" />' ;

				sHtml += FCK.TempBaseTag ;

				// Add ID and Class to the body
				var sBodyTag = '<body' ;
				if ( FCKConfig.BodyId && FCKConfig.BodyId.length > 0 )
					sBodyTag += ' id="' + FCKConfig.BodyId + '"' ;
				if ( FCKConfig.BodyClass && FCKConfig.BodyClass.length > 0 )
					sBodyTag += ' class="' + FCKConfig.BodyClass + '"' ;
				sHtml += '</head>' + sBodyTag + '>' ;

				if ( FCKBrowserInfo.IsGecko && ( html.length == 0 || FCKRegexLib.EmptyParagraph.test( html ) ) )
					sHtml += GECKO_BOGUS ;
				else
					sHtml += html ;

				sHtml += '</body></html>' ;
			}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久国产午夜精品| 亚洲宅男天堂在线观看无病毒| 99久久国产综合精品麻豆| 婷婷一区二区三区| 日本一区二区动态图| 91麻豆精品国产91久久久资源速度 | 成人国产电影网| 日本免费新一区视频| 亚洲精品免费一二三区| 国产视频在线观看一区二区三区| 欧美三级视频在线观看| 成人h精品动漫一区二区三区| 日韩—二三区免费观看av| 亚洲欧美另类综合偷拍| 久久久国产精品不卡| 91精品国产综合久久蜜臀| 色综合网站在线| 成人性视频免费网站| 国产在线播精品第三| 日本不卡一二三| 亚洲精品成人天堂一二三| 国产精品欧美经典| 久久久综合视频| 日韩欧美二区三区| 欧美群妇大交群中文字幕| 99久久精品免费看国产免费软件| 国产一区二区h| 麻豆精品在线视频| 免费视频一区二区| 日韩av电影免费观看高清完整版 | 在线观看精品一区| 不卡的av中国片| 国产成人h网站| 久久精品久久综合| 日本欧美一区二区三区| 亚洲va欧美va人人爽午夜 | 国产一区在线观看视频| 久久99国产精品久久| 美脚の诱脚舐め脚责91| 日韩精品三区四区| 无码av免费一区二区三区试看| 亚洲伦理在线精品| 亚洲免费看黄网站| 洋洋av久久久久久久一区| 亚洲男女毛片无遮挡| 亚洲欧美一区二区三区孕妇| 亚洲色图一区二区| 一区二区激情小说| 香蕉成人啪国产精品视频综合网| 亚洲bt欧美bt精品| 蜜桃av一区二区三区| 久久99精品久久久久久国产越南| 蜜臀精品一区二区三区在线观看| 久久精品国产99久久6| 91精品1区2区| 91成人在线观看喷潮| 欧洲一区二区av| 欧美一区二区三级| 国产日韩av一区| 中文字幕一区二区三区蜜月| 亚洲精品一卡二卡| 日韩国产高清影视| 国产精品中文有码| 97精品国产露脸对白| 欧美日本视频在线| 久久久精品免费观看| 亚洲色图欧洲色图婷婷| 亚洲一区二区av在线| 九色综合狠狠综合久久| 不卡视频在线看| 欧美日韩亚洲综合在线 | 亚洲激情综合网| 日韩1区2区日韩1区2区| 国产一区二区三区黄视频| 成人av午夜影院| 欧美伊人精品成人久久综合97| 日韩欧美一二区| 国产女人18水真多18精品一级做 | 精品卡一卡二卡三卡四在线| 国产欧美日韩精品一区| 亚洲自拍偷拍麻豆| 国产一区二区三区综合| 91久久奴性调教| 久久免费视频一区| 亚洲永久精品大片| 国产黄色精品网站| 欧美日韩一区二区三区在线看| 久久亚洲捆绑美女| 天天综合色天天综合色h| 国产成人免费网站| 欧美福利一区二区| 亚洲三级在线观看| 激情久久五月天| 欧美色爱综合网| 久久久精品人体av艺术| 香蕉成人啪国产精品视频综合网| 国产精品亚洲第一区在线暖暖韩国 | 日日夜夜精品视频免费| av中文字幕亚洲| 欧美一级理论片| 亚洲精品成人精品456| 国产二区国产一区在线观看| 欧美猛男gaygay网站| 自拍偷拍欧美激情| 国产精品一区二区你懂的| 欧美片网站yy| 亚洲激情图片qvod| 波多野结衣亚洲| 欧美精品一区二区在线播放| 一区二区三区高清| a美女胸又www黄视频久久| 亚洲精品美国一| 99免费精品在线| 国产午夜久久久久| 韩国三级中文字幕hd久久精品| 欧美日韩一二区| 亚洲国产日韩在线一区模特| voyeur盗摄精品| 亚洲国产成人自拍| 国产精品资源网站| 久久色在线观看| 国产一区美女在线| 久久综合色鬼综合色| 精品一区二区在线播放| 欧美一级日韩不卡播放免费| 亚洲国产精品自拍| 欧美性做爰猛烈叫床潮| 夜夜揉揉日日人人青青一国产精品| 成人国产视频在线观看| 欧美韩日一区二区三区四区| 国产成人小视频| 国产欧美日韩精品在线| 成人白浆超碰人人人人| 中文字幕一区二区三区在线观看| 国产成人99久久亚洲综合精品| 久久婷婷久久一区二区三区| 激情图片小说一区| 久久色中文字幕| 成人性生交大片免费看中文| 国产精品久久久久一区 | 成人免费视频一区| 国产欧美视频一区二区| 成人免费高清在线| 国产精品白丝在线| 91美女在线观看| 亚洲一区二区三区四区五区黄 | 欧美午夜影院一区| 亚洲成国产人片在线观看| 欧美人xxxx| 久久99精品国产.久久久久 | 欧美一区二区视频免费观看| 色综合久久天天综合网| 亚洲女同一区二区| 欧美亚洲高清一区二区三区不卡| 亚洲精品免费看| 91精品国产综合久久国产大片 | 秋霞影院一区二区| 26uuu国产在线精品一区二区| 国产精品77777| 亚洲三级小视频| 欧美顶级少妇做爰| 国内精品国产三级国产a久久| 国产肉丝袜一区二区| 91成人在线精品| 另类小说欧美激情| 国产精品欧美极品| 在线播放91灌醉迷j高跟美女| 蜜桃视频在线观看一区| 国产精品久久久久桃色tv| 欧美吞精做爰啪啪高潮| 久久国产免费看| 中文字幕人成不卡一区| 欧美剧情电影在线观看完整版免费励志电影 | 久久午夜免费电影| 91麻豆免费看片| 免费观看一级欧美片| 中文字幕 久热精品 视频在线| 欧美日韩中文字幕一区二区| 久久er精品视频| 一区二区三区在线观看欧美| 欧美成va人片在线观看| 色综合久久久网| 久久国产欧美日韩精品| 亚洲欧美日韩久久精品| www国产精品av| 欧美性受极品xxxx喷水| 国产精品一区一区三区| 亚洲第四色夜色| 国产视频不卡一区| 欧美区一区二区三区| 99热精品一区二区| 激情都市一区二区| 亚洲高清免费一级二级三级| 国产亚洲欧美中文| 欧美高清精品3d| 91原创在线视频| 国产乱码精品一品二品| 日韩黄色免费电影| 亚洲免费观看高清完整版在线观看| 久久婷婷国产综合国色天香|