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

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

?? fck_ie.js

?? J2EE——BBS項目
?? JS
字號:
?/*
 * 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.
 * (IE specific implementations)
 */

FCK.Description = "FCKeditor for Internet Explorer 5.5+" ;

FCK._GetBehaviorsStyle = function()
{
	if ( !FCK._BehaviorsStyle )
	{
		var sBasePath = FCKConfig.FullBasePath ;
		var sTableBehavior = '' ;
		var sStyle ;

		// The behaviors should be pointed using the FullBasePath to avoid security
		// errors when using a differente BaseHref.
		sStyle = '<style type="text/css" _fcktemp="true">' ;

		if ( FCKConfig.ShowBorders )
			sTableBehavior = 'url(' + sBasePath + 'css/behaviors/showtableborders.htc)' ;

		// Disable resize handlers.
		sStyle += 'INPUT,TEXTAREA,SELECT,.FCK__Anchor,.FCK__PageBreak,.FCK__InputHidden' ;

		if ( FCKConfig.DisableObjectResizing )
		{
			sStyle += ',IMG' ;
			sTableBehavior += ' url(' + sBasePath + 'css/behaviors/disablehandles.htc)' ;
		}

		sStyle += ' { behavior: url(' + sBasePath + 'css/behaviors/disablehandles.htc) ; }' ;

		if ( sTableBehavior.length > 0 )
			sStyle += 'TABLE { behavior: ' + sTableBehavior + ' ; }' ;

		sStyle += '</style>' ;
		FCK._BehaviorsStyle = sStyle ;
	}

	return FCK._BehaviorsStyle ;
}

function Doc_OnMouseUp()
{
	if ( FCK.EditorWindow.event.srcElement.tagName == 'HTML' )
	{
		FCK.Focus() ;
		FCK.EditorWindow.event.cancelBubble	= true ;
		FCK.EditorWindow.event.returnValue	= false ;
	}
}

function Doc_OnPaste()
{
	return ( FCK.Status == FCK_STATUS_COMPLETE && FCK.Events.FireEvent( "OnPaste" ) ) ;
}

function Doc_OnKeyDown()
{
	if ( FCK.EditorWindow )
	{
		var e = FCK.EditorWindow.event ;

		if ( !( e.keyCode >=16 && e.keyCode <= 18 ) )
			Doc_OnKeyDownUndo() ;
	}
	return true ;
}

function Doc_OnKeyDownUndo()
{
	if ( !FCKUndo.Typing )
	{
		FCKUndo.SaveUndoStep() ;
		FCKUndo.Typing = true ;
		FCK.Events.FireEvent( "OnSelectionChange" ) ;
	}

	FCKUndo.TypesCount++ ;

	if ( FCKUndo.TypesCount > FCKUndo.MaxTypes )
	{
		FCKUndo.TypesCount = 0 ;
		FCKUndo.SaveUndoStep() ;
	}
}

function Doc_OnDblClick()
{
	FCK.OnDoubleClick( FCK.EditorWindow.event.srcElement ) ;
	FCK.EditorWindow.event.cancelBubble = true ;
}

function Doc_OnSelectionChange()
{
	FCK.Events.FireEvent( "OnSelectionChange" ) ;
}

FCK.InitializeBehaviors = function( dontReturn )
{
	// Set the focus to the editable area when clicking in the document area.
	// TODO: The cursor must be positioned at the end.
	this.EditorDocument.attachEvent( 'onmouseup', Doc_OnMouseUp ) ;

	// Intercept pasting operations
	this.EditorDocument.body.attachEvent( 'onpaste', Doc_OnPaste ) ;

	// Reset the context menu.
	FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument.body ) ;

	// Build the "TAB" key replacement (if necessary).
	if ( FCKConfig.TabSpaces > 0 )
	{
		window.FCKTabHTML = '' ;
		for ( i = 0 ; i < FCKConfig.TabSpaces ; i++ )
			window.FCKTabHTML += "&nbsp;" ;
	}
	this.EditorDocument.attachEvent("onkeydown", Doc_OnKeyDown ) ;

	this.EditorDocument.attachEvent("ondblclick", Doc_OnDblClick ) ;

	// Catch cursor selection changes.
	this.EditorDocument.attachEvent("onselectionchange", Doc_OnSelectionChange ) ;
}

FCK.InsertHtml = function( html )
{
	html = FCKConfig.ProtectedSource.Protect( html ) ;
	html = FCK.ProtectEvents( html ) ;
	html = FCK.ProtectUrls( html ) ;
	html = FCK.ProtectTags( html ) ;

//	FCK.Focus() ;
	FCK.EditorWindow.focus() ;

	FCKUndo.SaveUndoStep() ;

	// Gets the actual selection.
	var oSel = FCK.EditorDocument.selection ;

	// Deletes the actual selection contents.
	if ( oSel.type.toLowerCase() == 'control' )
		oSel.clear() ;

	// Using the following trick, any comment in the begining of the HTML will
	// be preserved.
	html = '<span id="__fakeFCKRemove__">&nbsp;</span>' + html ;

	// Insert the HTML.
	oSel.createRange().pasteHTML( html ) ;

	// Remove the fake node
	FCK.EditorDocument.getElementById('__fakeFCKRemove__').removeNode( true ) ;

	FCKDocumentProcessor.Process( FCK.EditorDocument ) ;
}

FCK.SetInnerHtml = function( html )		// IE Only
{
	var oDoc = FCK.EditorDocument ;
	// Using the following trick, any comment in the begining of the HTML will
	// be preserved.
	oDoc.body.innerHTML = '<div id="__fakeFCKRemove__">&nbsp;</div>' + html ;
	oDoc.getElementById('__fakeFCKRemove__').removeNode( true ) ;
}

function FCK_PreloadImages()
{
	var oPreloader = new FCKImagePreloader() ;

	// Add the configured images.
	oPreloader.AddImages( FCKConfig.PreloadImages ) ;

	// Add the skin icons strip.
	oPreloader.AddImages( FCKConfig.SkinPath + 'fck_strip.gif' ) ;

	oPreloader.OnComplete = LoadToolbarSetup ;
	oPreloader.Start() ;
}

// Disable the context menu in the editor (outside the editing area).
function Document_OnContextMenu()
{
	return ( event.srcElement._FCKShowContextMenu == true ) ;
}
document.oncontextmenu = Document_OnContextMenu ;

function FCK_Cleanup()
{
	this.EditorWindow = null ;
	this.EditorDocument = null ;
}

FCK.Paste = function()
{
	// As we call ExecuteNamedCommand('Paste'), it would enter in a loop. So, let's use a semaphore.
	if ( FCK._PasteIsRunning )
		return true ;

	if ( FCKConfig.ForcePasteAsPlainText )
	{
		FCK.PasteAsPlainText() ;
		return false ;
	}

	var sHTML = FCK._CheckIsPastingEnabled( true ) ;

	if ( sHTML === false )
		FCKTools.RunFunction( FCKDialog.OpenDialog, FCKDialog, ['FCKDialog_Paste', FCKLang.Paste, 'dialog/fck_paste.html', 400, 330, 'Security'] ) ;
	else
	{
		if ( FCKConfig.AutoDetectPasteFromWord && sHTML.length > 0 )
		{
			var re = /<\w[^>]*(( class="?MsoNormal"?)|(="mso-))/gi ;
			if ( re.test( sHTML ) )
			{
				if ( confirm( FCKLang.PasteWordConfirm ) )
				{
					FCK.PasteFromWord() ;
					return false ;
				}
			}
		}

		// Instead of inserting the retrieved HTML, let's leave the OS work for us,
		// by calling FCK.ExecuteNamedCommand( 'Paste' ). It could give better results.

		// Enable the semaphore to avoid a loop.
		FCK._PasteIsRunning = true ;

		FCK.ExecuteNamedCommand( 'Paste' ) ;

		// Removes the semaphore.
		delete FCK._PasteIsRunning ;
	}

	// Let's always make a custom implementation (return false), otherwise
	// the new Keyboard Handler may conflict with this code, and the CTRL+V code
	// could result in a simple "V" being pasted.
	return false ;
}

FCK.PasteAsPlainText = function()
{
	if ( !FCK._CheckIsPastingEnabled() )
	{
		FCKDialog.OpenDialog( 'FCKDialog_Paste', FCKLang.PasteAsText, 'dialog/fck_paste.html', 400, 330, 'PlainText' ) ;
		return ;
	}

	// Get the data available in the clipboard in text format.
	var sText = clipboardData.getData("Text") ;

	if ( sText && sText.length > 0 )
	{
		// Replace the carriage returns with <BR>
		sText = FCKTools.HTMLEncode( sText ).replace( /\n/g, '<BR>' ) ;

		// Insert the resulting data in the editor.
		this.InsertHtml( sText ) ;
	}
}

FCK._CheckIsPastingEnabled = function( returnContents )
{
	// The following seams to be the only reliable way to check is script
	// pasting operations are enabled in the secutiry settings of IE6 and IE7.
	// It adds a little bit of overhead to the check, but so far that's the
	// only way, mainly because of IE7.

	FCK._PasteIsEnabled = false ;

	document.body.attachEvent( 'onpaste', FCK_CheckPasting_Listener ) ;

	// The execCommand in GetClipboardHTML will fire the "onpaste", only if the
	// security settings are enabled.
	var oReturn = FCK.GetClipboardHTML() ;

	document.body.detachEvent( 'onpaste', FCK_CheckPasting_Listener ) ;

	if ( FCK._PasteIsEnabled )
	{
		if ( !returnContents )
			oReturn = true ;
	}
	else
		oReturn = false ;

	delete FCK._PasteIsEnabled ;

	return oReturn ;
}

function FCK_CheckPasting_Listener()
{
	FCK._PasteIsEnabled = true ;
}

FCK.InsertElement = function( element )
{
	FCK.InsertHtml( element.outerHTML ) ;
}

FCK.GetClipboardHTML = function()
{
	var oDiv = document.getElementById( '___FCKHiddenDiv' ) ;

	if ( !oDiv )
	{
		oDiv = document.createElement( 'DIV' ) ;
		oDiv.id = '___FCKHiddenDiv' ;

		var oDivStyle = oDiv.style ;
		oDivStyle.position		= 'absolute' ;
		oDivStyle.visibility	= oDivStyle.overflow	= 'hidden' ;
		oDivStyle.width			= oDivStyle.height		= 1 ;

		document.body.appendChild( oDiv ) ;
	}

	oDiv.innerHTML = '' ;

	var oTextRange = document.body.createTextRange() ;
	oTextRange.moveToElementText( oDiv ) ;
	oTextRange.execCommand( 'Paste' ) ;

	var sData = oDiv.innerHTML ;
	oDiv.innerHTML = '' ;

	return sData ;
}

FCK.CreateLink = function( url )
{
	// Creates the array that will be returned. It contains one or more created links (see #220).
	var aCreatedLinks = new Array() ;

	// Remove any existing link in the selection.
	FCK.ExecuteNamedCommand( 'Unlink' ) ;

	if ( url.length > 0 )
	{
		// If there are several images, and you try to link each one, all the images get inside the link:
		// <img><img> -> <a><img></a><img> -> <a><img><img></a> due to the call to 'CreateLink' (bug in IE)
		if (FCKSelection.GetType() == 'Control')
		{
			// Create a link
			var oLink = this.EditorDocument.createElement( 'A' ) ;
			oLink.href = url ;

			// Get the selected object
			var oControl = FCKSelection.GetSelectedElement() ;
			// Put the link just before the object
			oControl.parentNode.insertBefore(oLink, oControl) ;
			// Move the object inside the link
			oControl.parentNode.removeChild( oControl ) ;
			oLink.appendChild( oControl ) ;

			return [ oLink ] ;
		}

		// Generate a temporary name for the link.
		var sTempUrl = 'javascript:void(0);/*' + ( new Date().getTime() ) + '*/' ;

		// Use the internal "CreateLink" command to create the link.
		FCK.ExecuteNamedCommand( 'CreateLink', sTempUrl ) ;

		// Look for the just create link.
		var oLinks = this.EditorDocument.links ;

		for ( i = 0 ; i < oLinks.length ; i++ )
		{
			var oLink = oLinks[i] ;

			// Check it this a newly created link.
			// getAttribute must be used. oLink.url may cause problems with IE7 (#555).
			if ( oLink.getAttribute( 'href', 2 ) == sTempUrl )
			{
				var sInnerHtml = oLink.innerHTML ;	// Save the innerHTML (IE changes it if it is like an URL).
				oLink.href = url ;
				oLink.innerHTML = sInnerHtml ;		// Restore the innerHTML.

				// If the last child is a <br> move it outside the link or it
				// will be too easy to select this link again #388.
				var oLastChild = oLink.lastChild ;
				if ( oLastChild && oLastChild.nodeName == 'BR' )
				{
					// Move the BR after the link.
					FCKDomTools.InsertAfterNode( oLink, oLink.removeChild( oLastChild ) ) ;
				}

				aCreatedLinks.push( oLink ) ;
			}
		}
	}

	return aCreatedLinks ;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久女同性恋中文字幕| 亚洲日本在线看| 中文久久乱码一区二区| **网站欧美大片在线观看| 亚洲精品国产视频| 日韩电影在线观看电影| 国产精品一区二区久久精品爱涩| 日韩在线播放一区二区| 国产成人小视频| 欧美日韩一本到| 国产亚洲欧美中文| 国产精品美女一区二区在线观看| 一区二区三区精品视频| 国产一区在线观看视频| 欧美视频一区在线| 国产精品乱码人人做人人爱| 天堂精品中文字幕在线| 99久久免费精品| 欧美videossexotv100| 一区二区三区日韩欧美| 国产高清无密码一区二区三区| 欧美日韩一区二区电影| 日韩欧美国产午夜精品| 亚洲综合色网站| 波多野结衣亚洲一区| 精品三级在线观看| 亚洲欧美国产77777| 福利一区二区在线观看| 精品国产一区二区三区忘忧草 | 精品国产一区二区三区av性色 | 一区二区三区日韩在线观看| 麻豆成人综合网| 在线免费观看日本欧美| 国产精品无码永久免费888| 狠狠色狠狠色综合日日91app| 在线看一区二区| 中文字幕亚洲一区二区va在线| 国产综合久久久久影院| 欧美一区日韩一区| 亚洲一区二区三区四区的| 色综合天天综合网天天狠天天| 欧美一区二区三区电影| 日韩精品免费专区| 欧美日韩一区二区三区免费看| 亚洲精品视频在线看| 国产福利91精品| 久久久久9999亚洲精品| 国产乱子伦一区二区三区国色天香| 欧美大片拔萝卜| 久久99日本精品| 久久综合中文字幕| 国产一区二区电影| 久久免费电影网| 国产一区二区三区视频在线播放| 精品国产第一区二区三区观看体验 | 91精品国产色综合久久不卡蜜臀| 亚洲免费成人av| 色综合久久久久久久久久久| 亚洲色图第一区| 一本久道久久综合中文字幕| 亚洲精品美腿丝袜| 欧美欧美午夜aⅴ在线观看| 日韩中文字幕不卡| 欧美在线观看视频在线| 日韩成人dvd| 久久奇米777| 国产一区二区看久久| 国产精品国产三级国产aⅴ原创| 99久久精品免费| 亚洲高清中文字幕| 欧美一区二区三区播放老司机| 久久精品国产久精国产| 国产欧美一区二区精品婷婷| 国产69精品久久777的优势| 中文字幕一区二区三区四区| 欧美挠脚心视频网站| 成人开心网精品视频| 亚洲一区二区四区蜜桃| 久久久久久毛片| 欧美日韩一区 二区 三区 久久精品 | 怡红院av一区二区三区| 亚洲精品在线电影| 欧美午夜片在线看| 色婷婷精品久久二区二区蜜臀av| 免费的国产精品| 有坂深雪av一区二区精品| 国产无人区一区二区三区| 欧美日韩国产一级片| 成年人午夜久久久| 国产一区三区三区| 日本午夜精品视频在线观看| 国产精品高清亚洲| 久久精品亚洲国产奇米99| 在线播放91灌醉迷j高跟美女| 成人小视频在线| 韩国视频一区二区| 日本不卡免费在线视频| 亚洲成人在线观看视频| 综合自拍亚洲综合图不卡区| 精品99一区二区三区| 欧美精品乱人伦久久久久久| 91在线无精精品入口| 成人自拍视频在线| 国产成人精品1024| 国产精品亚洲一区二区三区在线| 狠狠色丁香久久婷婷综| 毛片不卡一区二区| 另类欧美日韩国产在线| 美女久久久精品| 麻豆成人91精品二区三区| 天天色图综合网| 日精品一区二区| 日韩二区在线观看| 麻豆国产一区二区| 黄页网站大全一区二区| 国产乱理伦片在线观看夜一区| 韩国三级在线一区| 国产精品一区久久久久| 国产传媒欧美日韩成人| 国产乱妇无码大片在线观看| 国产美女精品人人做人人爽| 国产一区在线视频| 国产成人在线免费| 99精品热视频| 欧美日韩美少妇| 宅男噜噜噜66一区二区66| 日韩午夜激情免费电影| 久久精品亚洲一区二区三区浴池| 国产日韩欧美精品一区| 国产精品免费丝袜| 亚洲视频精选在线| 中文字幕av不卡| 精品国产1区二区| 亚洲精品一区二区三区精华液 | 一本一道久久a久久精品| 成人激情免费网站| 色噜噜久久综合| 7777精品伊人久久久大香线蕉经典版下载| 在线观看av一区| 欧美一区二区三区免费观看视频| 日韩一卡二卡三卡四卡| 久久婷婷成人综合色| 久久久久9999亚洲精品| 日韩美女精品在线| 中文字幕一区二区三中文字幕 | 26uuu欧美日本| 欧美国产一区在线| 香蕉乱码成人久久天堂爱免费| 日本午夜一本久久久综合| 国产精品66部| 99久久精品免费看| 日韩写真欧美这视频| 国产精品无码永久免费888| 亚洲黄色片在线观看| 精品在线视频一区| 成人爽a毛片一区二区免费| 欧美日韩中字一区| 精品999久久久| 亚洲风情在线资源站| 日韩精品亚洲一区二区三区免费| 国产在线播放一区| 欧美日韩在线不卡| 久久久亚洲国产美女国产盗摄 | 亚洲美女视频在线| 激情av综合网| 欧美性一区二区| 欧美成人免费网站| 一区二区三区四区乱视频| 日韩va欧美va亚洲va久久| 懂色av中文字幕一区二区三区| 91亚洲永久精品| 精品久久一区二区| 欧美片网站yy| 亚洲精品水蜜桃| 99精品在线观看视频| 日韩精品中文字幕在线不卡尤物| 亚洲品质自拍视频| 精品一区二区三区蜜桃| 欧美日韩午夜在线| 精品人伦一区二区色婷婷| 亚洲一区二区三区爽爽爽爽爽 | 中文乱码免费一区二区| 麻豆成人久久精品二区三区红 | 毛片基地黄久久久久久天堂| 91在线视频18| 国产精品视频线看| 国产成人精品三级| 欧美成人一区二区| 日本欧美一区二区在线观看| av资源站一区| 久久精品视频一区二区| 日本午夜精品视频在线观看| 色噜噜狠狠成人中文综合| 日韩欧美国产成人一区二区| 亚洲精品中文字幕乱码三区 | 日韩一区二区电影在线| 日本中文一区二区三区| 欧美一区二区视频免费观看| 亚洲欧美日韩电影| 99久久精品国产毛片|