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

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

?? fck_1_gecko.js

?? FCKeditor 很強的可視化編輯器.支持asp,php等多種web編程語言.(要支持jsp需另下載插件) 開源免費.
?? JS
字號:
?/*
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 * 
 * Licensed under the terms of the GNU Lesser General Public License:
 * 		http://www.opensource.org/licenses/lgpl-license.php
 * 
 * For further information visit:
 * 		http://www.fckeditor.net/
 * 
 * "Support Open Source software. What about a donation today?"
 * 
 * File Name: fck_1_gecko.js
 * 	This is the first part of the "FCK" object creation. This is the main
 * 	object that represents an editor instance.
 * 	(Gecko specific implementations)
 * 
 * File Authors:
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
 */

FCK.Description = "FCKeditor for Gecko Browsers" ;

FCK.InitializeBehaviors = function()
{
	/*
	window.document.onblur = function(e)
	{
		return FCK.Events.FireEvent( "OnBlur" ) ;
	}

	window.document.onfocus = function()
	{
		return FCK.Events.FireEvent( "OnFocus" ) ;
	}
	*/

	// Enable table borders visibility.
	if ( FCKConfig.ShowBorders ) 
	{
		var oStyle = FCKTools.AppendStyleSheet( this.EditorDocument, FCKConfig.FullBasePath + 'css/fck_showtableborders_gecko.css' ) ;
		oStyle.setAttribute( '_fcktemp', 'true' ) ;
	}

	// Disable Right-Click
	var oOnContextMenu = function( e )
	{
		e.preventDefault() ;
		FCK.ShowContextMenu( e.clientX, e.clientY ) ;
	}
	this.EditorDocument.addEventListener( 'contextmenu', oOnContextMenu, true ) ;

	// Handle pasting operations.
	var oOnKeyDown = function( e )
	{

		// START iCM Modifications
		/*
		// Need to amend carriage return key handling so inserts block element tags rather than BR all the time
		if ( e.which == 13 && !e.shiftKey && !e.ctrlKey && !e.altKey && !FCKConfig.UseBROnCarriageReturn && !FCK.Events.FireEvent( "OnEnter" ) )
		{
			e.preventDefault() ;
			e.stopPropagation() ;
		}
		// Amend backspace handling so correctly removes empty block elements i.e. those block elements containing nothing or
		// just the bogus BR node
		if ( e.which == 8 && !e.shiftKey && !e.ctrlKey && !e.altKey && !FCKConfig.UseBROnCarriageReturn && !FCK.Events.FireEvent( "OnBackSpace" ) )
		{
			e.preventDefault() ;
			e.stopPropagation() ;
		}
		*/
		// END iCM Modifications

		var bPrevent ;

		if ( e.ctrlKey && !e.shiftKey && !e.altKey )
		{
			switch ( e.which ) 
			{
				case 66 :	// B
				case 98 :	// b
					FCK.ExecuteNamedCommand( 'bold' ) ; bPrevent = true ;
					break;
				case 105 :	// i
				case 73 :	// I
					FCK.ExecuteNamedCommand( 'italic' ) ; bPrevent = true ;
					break;
				case 117 :	// u
				case 85 :	// U
					FCK.ExecuteNamedCommand( 'underline' ) ; bPrevent = true ;
					break;
				case 86 :	// V
				case 118 :	// v
					bPrevent = ( FCK.Status != FCK_STATUS_COMPLETE || !FCK.Events.FireEvent( "OnPaste" ) ) ;
					break ;
			}
		}
		else if ( e.shiftKey && !e.ctrlKey && !e.altKey && e.keyCode == 45 )	// SHIFT + <INS>
			bPrevent = ( FCK.Status != FCK_STATUS_COMPLETE || !FCK.Events.FireEvent( "OnPaste" ) ) ;
		
		if ( bPrevent ) 
		{
			e.preventDefault() ;
			e.stopPropagation() ;
		}
	}
	this.EditorDocument.addEventListener( 'keypress', oOnKeyDown, true ) ;

	this.ExecOnSelectionChange = function()
	{
		FCK.Events.FireEvent( "OnSelectionChange" ) ;
	}

	this.ExecOnSelectionChangeTimer = function()
	{
		if ( FCK.LastOnChangeTimer )
			window.clearTimeout( FCK.LastOnChangeTimer ) ;

		FCK.LastOnChangeTimer = window.setTimeout( FCK.ExecOnSelectionChange, 100 ) ;
	}

	this.EditorDocument.addEventListener( 'mouseup', this.ExecOnSelectionChange, false ) ;

	// On Gecko, firing the "OnSelectionChange" event on every key press started to be too much
	// slow. So, a timer has been implemented to solve performance issues when tipying to quickly.
	this.EditorDocument.addEventListener( 'keyup', this.ExecOnSelectionChangeTimer, false ) ;

	this._DblClickListener = function( e )
	{
		FCK.OnDoubleClick( e.target ) ;
		e.stopPropagation() ;
	}
	this.EditorDocument.addEventListener( 'dblclick', this._DblClickListener, true ) ;

	this._OnLoad = function()
	{
		if ( this._FCK_HTML )
		{
			this.document.body.innerHTML = this._FCK_HTML ;
			this._FCK_HTML = null ;
			
			if ( !FCK_StartupValue )
				FCK.ResetIsDirty() ;
		}
	}
	this.EditorWindow.addEventListener( 'load', this._OnLoad, true ) ;

//	var oEditorWindow_OnUnload = function()
//	{
//		FCK.EditorWindow.location = 'fckblank.html' ;
//	}
//	this.EditorWindow.addEventListener( 'unload', oEditorWindow_OnUnload, true ) ;

//	var oEditorWindow_OnFocus = function()
//	{
//		FCK.MakeEditable() ;
//	}
//	this.EditorWindow.addEventListener( 'focus', oEditorWindow_OnFocus, true ) ;
}

FCK.MakeEditable = function()
{
	try 
	{
		FCK.EditorDocument.designMode = 'on' ;

		// Tell Gecko to use or not the <SPAN> tag for the bold, italic and underline.
		FCK.EditorDocument.execCommand( 'useCSS', false, !FCKConfig.GeckoUseSPAN ) ;

		// Analysing Firefox 1.5 source code, it seams that there is support for a 
		// "insertBrOnReturn" command. Applying it gives no error, but it doesn't 
		// gives the same behavior that you have with IE. It works only if you are
		// already inside a paragraph and it doesn't render correctly in the first enter.
		// FCK.EditorDocument.execCommand( 'insertBrOnReturn', false, false ) ;
		
		// Tell Gecko (Firefox 1.5+) to enable or not live resizing of objects (by Alfonso Martinez)
		FCK.EditorDocument.execCommand( 'enableObjectResizing', false, !FCKConfig.DisableImageHandles ) ;
		
		// Disable the standard table editing features of Firefox.
		FCK.EditorDocument.execCommand( 'enableInlineTableEditing', false, !FCKConfig.DisableTableHandles ) ;
	}
	catch (e) {}
}

FCK.Focus = function()
{
	try
	{
//		window.focus() ;
		FCK.EditorWindow.focus() ;
	}
	catch(e) {}
}

// @Packager.Compactor.Remove.Start
if ( FCKBrowserInfo.IsSafari )
{
FCK.SetHTML = function( html, forceWYSIWYG )
{
	if( window.console ) window.console.log( 'FCK.SetHTML()' ) ;	// @Packager.Compactor.RemoveLine

	sHtml =
		FCKConfig.DocType +
		'<html dir="' + FCKConfig.ContentLangDirection + '">' +
		'<head><title></title>' +
		'<link href="' + FCKConfig.EditorAreaCSS + '" rel="stylesheet" type="text/css" />' +
		'<link href="' + FCKConfig.FullBasePath + 'css/fck_internal.css' + '" rel="stylesheet" type="text/css" _fcktemp="true" />' ;

//	sHtml += FCK.TempBaseTag ;
	sHtml += '</head><body>' + html  + '</body></html>' ;
	
	this.EditorDocument.open() ;
	this.EditorDocument.write( sHtml ) ;
	this.EditorDocument.close() ;

//	this.InitializeBehaviors() ;
	
//	FCK.MakeEditable() ;
	FCK.EditorDocument.designMode = 'on' ;
	FCK.OnAfterSetHTML() ;
}
}
else
{
// @Packager.Compactor.Remove.End
FCK.SetHTML = function( html, forceWYSIWYG )
{
	// Firefox can't handle correctly the editing of the STRONG and EM tags. 
	// We must replace them with B and I.
	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>' ) ;

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

		// Gecko has a lot of bugs mainly when handling editing features.
		// To avoid an Aplication Exception (that closes the browser!) we
		// must first write the <HTML> contents with an empty body, and
		// then insert the body contents.
		// (Oh yes... it took me a lot of time to find out this workaround)

		if ( FCKConfig.FullPage && FCKRegexLib.BodyContents.test( html ) )
		{
			// Add the <BASE> tag to the input HTML.
			if ( FCK.TempBaseTag.length > 0 && !FCKRegexLib.HasBaseTag.test( html ) )
				html = html.replace( FCKRegexLib.HeadOpener, '$&' + FCK.TempBaseTag ) ;

			html = html.replace( FCKRegexLib.HeadCloser, '<link href="' + FCKConfig.BasePath + 'css/fck_internal.css' + '" rel="stylesheet" type="text/css" _fcktemp="true" /></head>' ) ;

			// Extract the BODY contents from the html.
			var oMatch		= html.match( FCKRegexLib.BodyContents ) ;
			var sOpener		= oMatch[1] ;	// This is the HTML until the <body...> tag, inclusive.
			var sContents	= oMatch[2] ;	// This is the BODY tag contents.
			var sCloser		= oMatch[3] ;	// This is the HTML from the </body> tag, inclusive.

			var sHtml = sOpener + '&nbsp;' + sCloser ;

/*
			if ( !this._Initialized )
			{
				FCK.EditorDocument.designMode = "on" ;

				// Tell Gecko to use or not the <SPAN> tag for the bold, italic and underline.
				FCK.EditorDocument.execCommand( "useCSS", false, !FCKConfig.GeckoUseSPAN ) ;

				this._Initialized = true ;
			}
*/
			FCK.MakeEditable() ;

			this.EditorDocument.open() ;
			this.EditorDocument.write( sHtml ) ;
			this.EditorDocument.close() ;

			if ( this.EditorDocument.body )
				this.EditorDocument.body.innerHTML = sContents ;
			else
				this.EditorWindow._FCK_HTML = sContents ;

			this.InitializeBehaviors() ;
		}
		else
		{
			/* TODO: Wait stable and remove it.
			sHtml =
				'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' +
				'<html dir="' + FCKConfig.ContentLangDirection + '">' +
				'<head><title></title>' +
				'<link href="' + FCKConfig.EditorAreaCSS + '" rel="stylesheet" type="text/css" />' +
				'<link href="' + FCKConfig.BasePath + 'css/fck_internal.css' + '" rel="stylesheet" type="text/css" _fcktemp="true" />' ;

			sHtml += FCK.TempBaseTag ;

			sHtml += '</head><body>&nbsp;</body></html>' ;
			*/

			if ( !this._Initialized )
			{
				this.EditorDocument.dir = FCKConfig.ContentLangDirection ;

				var sHtml =
					'<title></title>' +
					'<link href="' + FCKConfig.EditorAreaCSS + '" rel="stylesheet" type="text/css" />' +
					'<link href="' + FCKConfig.BasePath + 'css/fck_internal.css' + '" rel="stylesheet" type="text/css" _fcktemp="true" />' +
					FCK.TempBaseTag ;

				this.EditorDocument.getElementsByTagName("HEAD")[0].innerHTML = sHtml ;

				this.InitializeBehaviors() ;

				this._Initialized = true ;
			}

			// On Gecko we must disable editing before setting the BODY innerHTML.
//			FCK.EditorDocument.designMode = 'off' ;

			if ( html.length == 0 )
				FCK.EditorDocument.body.innerHTML = GECKO_BOGUS ;
			else if ( FCKRegexLib.EmptyParagraph.test( html ) )
				FCK.EditorDocument.body.innerHTML = html.replace( FCKRegexLib.TagBody, '>' + GECKO_BOGUS + '<' ) ;
			else
				FCK.EditorDocument.body.innerHTML = html ;
			
			FCK.MakeEditable() ;
		}

		FCK.OnAfterSetHTML() ;
	}
	else
		document.getElementById('eSourceField').value = html ;
}
}	// @Packager.Compactor.RemoveLine

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99亚偷拍自图区亚洲| 国产亚洲综合av| 最新国产の精品合集bt伙计| 国产精品亚洲综合一区在线观看| 日本不卡一二三| 欧美自拍偷拍午夜视频| 亚洲免费观看在线视频| 欧美性大战久久久久久久| 性做久久久久久免费观看| 欧美日韩三级一区二区| 日韩不卡一二三区| 精品国产电影一区二区 | 青青草精品视频| 欧美二区在线观看| 琪琪久久久久日韩精品| 精品女同一区二区| 91亚洲国产成人精品一区二三| 欧美成人猛片aaaaaaa| 激情综合五月婷婷| 亚洲欧美另类久久久精品 | 国产日韩欧美亚洲| 国产91精品欧美| 依依成人精品视频| 日韩精品一区二区在线| 国产69精品久久久久毛片| 亚洲少妇中出一区| 精品久久一区二区三区| 色久优优欧美色久优优| 丝袜a∨在线一区二区三区不卡| 色综合色综合色综合色综合色综合 | 99国产精品久| 午夜精品免费在线| 国产人伦精品一区二区| 欧美久久一二区| 国产成人在线视频免费播放| 香蕉久久一区二区不卡无毒影院 | 日产精品久久久久久久性色| 国产日韩欧美精品在线| 在线不卡的av| 色婷婷精品大在线视频| 国产精品一区二区久久精品爱涩| 久久奇米777| 欧美人与z0zoxxxx视频| 97se亚洲国产综合在线| 国产精品中文字幕日韩精品| 日韩电影在线观看一区| 中文字幕一区三区| 久久综合色播五月| 在线成人小视频| 欧美日韩国产大片| 欧美性大战xxxxx久久久| 91在线观看免费视频| 成人午夜精品在线| 国产精品伊人色| 国产伦理精品不卡| 国产酒店精品激情| 韩国精品久久久| 久久99精品久久久久久国产越南 | 经典三级在线一区| 日本中文字幕一区二区视频 | 国产成a人亚洲| 久热成人在线视频| 蜜臀av一区二区| 免费不卡在线观看| 日韩高清不卡在线| 久久精品av麻豆的观看方式| 麻豆成人免费电影| 韩国成人在线视频| 国产69精品一区二区亚洲孕妇 | 午夜欧美2019年伦理| 一区二区三区不卡在线观看| 亚洲卡通动漫在线| 亚洲影视资源网| 一区二区欧美国产| 日韩国产一区二| 精品一区二区三区av| 国产精品中文欧美| 91网站在线播放| 欧美日韩在线播放三区| 日韩一区二区三区电影在线观看| av成人免费在线观看| 91看片淫黄大片一级| 在线观看视频一区二区| 欧美日韩精品一区二区| 欧美日韩在线免费视频| 日韩限制级电影在线观看| 欧美精品一区二区三区蜜臀| 国产精品素人视频| 洋洋成人永久网站入口| 蜜桃视频在线观看一区| 成人综合婷婷国产精品久久| 一本大道久久a久久综合| 欧美日本一区二区三区| 欧美成人精品二区三区99精品| 在线精品视频免费播放| xfplay精品久久| 玉米视频成人免费看| 香蕉久久一区二区不卡无毒影院| 亚洲人xxxx| 美腿丝袜亚洲三区| 97精品超碰一区二区三区| 欧美军同video69gay| 久久久久久夜精品精品免费| 中文字幕一区二区三中文字幕| 美女脱光内衣内裤视频久久影院| 国产精品视频在线看| 亚洲精选免费视频| 国产成人亚洲精品狼色在线| 91精品福利视频| 精品va天堂亚洲国产| 亚洲同性gay激情无套| 久久精品国产亚洲5555| 国产一区二区三区免费观看| 高清av一区二区| 7777精品伊人久久久大香线蕉的 | 亚洲美女免费视频| 久久福利资源站| yourporn久久国产精品| 精品久久久久香蕉网| 中文字幕制服丝袜成人av| 久久成人免费日本黄色| 91美女蜜桃在线| 国产亚洲一本大道中文在线| 午夜a成v人精品| 色综合婷婷久久| 国产日韩精品一区| 美女视频网站黄色亚洲| 欧美日韩亚洲综合一区二区三区 | 久久99精品国产麻豆婷婷洗澡| 午夜久久福利影院| 本田岬高潮一区二区三区| 亚洲精品一线二线三线无人区| 日韩欧美国产综合在线一区二区三区| 国产69精品久久久久毛片| 欧美精品aⅴ在线视频| 一区二区三区成人| 欧洲亚洲精品在线| 亚洲一二三四区不卡| 色妞www精品视频| 亚洲乱码精品一二三四区日韩在线| 中文字幕在线不卡国产视频| 国产成人av电影在线观看| 2020国产成人综合网| 国模套图日韩精品一区二区| 91精品国产麻豆国产自产在线| 欧美一区在线视频| 日av在线不卡| 亚洲精品一线二线三线无人区| 中文字幕电影一区| 92国产精品观看| 国产精品欧美久久久久一区二区 | 欧美一区二区三区公司| 婷婷综合在线观看| 日韩精品一区二区三区在线播放| 中文字幕精品综合| 91福利国产精品| 日韩国产一二三区| 精品毛片乱码1区2区3区| 大白屁股一区二区视频| 亚洲精品午夜久久久| 欧美另类z0zxhd电影| 久久精品国产亚洲a| 中文字幕精品—区二区四季| 91国产丝袜在线播放| 美女视频免费一区| 中文字幕亚洲视频| 欧美猛男超大videosgay| 经典三级在线一区| 亚洲乱码日产精品bd| 日韩欧美一二区| 99久久精品免费精品国产| 亚洲国产精品影院| 久久久久久久久久久99999| 色偷偷一区二区三区| 激情综合色播激情啊| 亚洲欧美另类久久久精品| 日韩免费高清av| 日本高清成人免费播放| 美美哒免费高清在线观看视频一区二区 | 久久99精品久久久久婷婷| 中文av一区二区| 欧美精品乱人伦久久久久久| 国产老肥熟一区二区三区| 亚洲一区二区三区在线看| 精品卡一卡二卡三卡四在线| 色综合久久中文综合久久牛| 精品一区二区三区在线观看 | av一区二区三区四区| 亚洲福利视频一区| 国产精品午夜春色av| 欧美一区二区视频在线观看| 99精品国产视频| 国产成人自拍网| 日韩精品色哟哟| 亚洲伊人色欲综合网| 国产精品久久久99| 久久夜色精品一区| 日韩一区二区三区在线| 欧美系列日韩一区| 91丨porny丨户外露出|