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

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

?? ftb-freetextbox.js

?? link to SQL 2005/2
?? JS
?? 第 1 頁 / 共 4 頁
字號:
	
	if (FTB_Browser.isIE) {
		range.pasteHTML(el.outerHTML);
	} else {
		this.InsertNodeAtSelection(el);
	}
};
FTB_FreeTextBox.prototype.RecordUndoStep = function() {	
	if (!this.initialized) return;
	++this.undoArrayPos;
	if (this.undoArrayPos >= this.undoArrayMax) {
		// remove the first element
		this.undoArray.shift();
		--this.undoArrayPos;
	}
	
	var take = true;
	var html = this.designEditor.document.body.innerHTML;
	if (this.undoArrayPos > 0)
		take = (this.undoArray[this.undoArrayPos - 1] != html);
	if (take) {
		this.undoArray[this.undoArrayPos] = html;
	} else {
		this.undoArrayPos--;
	}
};
FTB_FreeTextBox.prototype.Undo = function() {
	if (this.undoArrayPos > 0) {
		var html = this.undoArray[--this.undoArrayPos];
		if (html)
			this.designEditor.document.body.innerHTML = html;
		else 
			++this.undoArrayPos;
	}
};
FTB_FreeTextBox.prototype.CanUndo = function() {
	return true;
	return (this.undoArrayPos > 0);
};
FTB_FreeTextBox.prototype.Redo = function() {
	if (this.undoArrayPos < this.undoArray.length - 1) {
		var html = this.undoArray[++this.undoArrayPos];
		if (html) 
			this.designEditor.document.body.innerHTML = html;
		else 
			--this.undoArrayPos;
	}
	
};
FTB_FreeTextBox.prototype.CanRedo = function() {
	return true;
	return (this.undoArrayPos < this.undoArray.length - 1);
};
FTB_FreeTextBox.prototype.CapturePaste = function() {
 
 	switch (this.pasteMode) {
 		case FTB_PASTE_DISABLED:
 			return false;
 		case FTB_PASTE_TEXT:
 			if (window.clipboardData) {
				var text = window.clipboardData.getData('Text');
				text = text.replace(/<[^>]*>/gi,'');
				this.InsertHtml(text);
			} else {
				alert("Your browser does not support pasting rich content");
			}
			return false; 				
 		default:
 		case FTB_PASTE_DEFAULT:
			try {
				this.ExecuteCommand('paste'); 
			} catch (e) {
				alert('Your security settings to not allow you to use this command.  Please visit http://www.mozilla.org/editor/midasdemo/securityprefs.html for more information.');
			}	
 			return true;
 	}		
};
FTB_FreeTextBox.prototype.Debug = function(text) {
	if (this.debug)
		this.debug.value += text + '\r';
};
FTB_FreeTextBox.prototype.UpdateToolbars = function() {
	
	if (this.hasFocus) {

		if (this.mode == FTB_MODE_DESIGN) {
			if (this.enableToolbars) {
				for (var i=0; i<this.buttons.length; i++) {
					button = this.buttons[i];

					if (button.customStateQuery)
						button.state = button.customStateQuery();			
					else if (button.commandIdentifier != null && button.commandIdentifier != '')
						button.state = this.QueryCommandState(button.commandIdentifier);

					button.SetButtonBackground("Out");
				}
				for (var i=0; i<this.dropdownlists.length; i++) {
					dropdownlist = this.dropdownlists[i];

					if (dropdownlist.customStateQuery)
						dropdownlist.SetSelected(dropdownlist.customStateQuery());
					else if (dropdownlist.commandIdentifier != null && dropdownlist.commandIdentifier != '') 
						dropdownlist.SetSelected(this.QueryCommandValue(dropdownlist.commandIdentifier));

				}
			}
			this.UpdateAncestorTrail();
		}	
		
	} else {
	
		if (this.enableToolbars) {
			for (var i=0; i<this.buttons.length; i++) {
				button = this.buttons[i];
				button.state = FTB_BUTTON_OFF;
				button.SetButtonBackground("Out");
			}
			for (var i=0; i<this.dropdownlists.length; i++) {
				dropdownlist = this.dropdownlists[i];
				dropdownlist.list.selectedIndex = 0;
			}
		}
		this.UpdateAncestorTrail();		
	}

	if (!this.undoTimer) {
		this.RecordUndoStep();
		var editor = this;
		this.undoTimer = setTimeout(function() {
			editor.undoTimer = null;
		}, 500);
	}
	
	this.StoreHtml();
	
	this.SetToolbarItemsEnabledState();	
	
	if (this.timerToolbar) 
		this.timerToolbar = null;	
};
FTB_FreeTextBox.prototype.UpdateAncestorTrail = function() {	
	if (this.ancestorArea)  {
	
		if (this.hasFocus) {
			ancestors = this.GetAllAncestors();

			this.ancestorArea.innerHTML = "Path(" + ancestors.length + "): ";	

			for (var i = ancestors.length-1; i>-1; i--) {
				var el = ancestors[i];
				if (!el) {
					continue;
				}
				var a = document.createElement("a");
				a.href = "javascript:void();";
				a.el = el;
				a.ftb = this;
				a.onclick = function() {
					this.blur();
					this.ftb.SelectNodeContents(this.el);
					this.ftb.UpdateToolbars();
					return false;
				};
				a.oncontextmenu = function () {
					this.ftb.EditElementStyle(this.el);
					return false;
				}

				var txt = el.tagName.toLowerCase();
				if (txt == "input") txt = el.type;
				a.title = el.style.cssText;
				if (el.id) {
					txt += "#" + el.id;
				}
				if (el.className) {
					txt += "." + el.className;
				}
				a.appendChild(document.createTextNode("<" + txt + ">"));
				this.ancestorArea.appendChild(a);
				//if (i != 0)
				//	this.ancestorArea.appendChild(document.createTextNode(String.fromCharCode(0xbb)));

			}
		} else {
			this.ancestorArea.innerHTML = "";
		}
	}
};
FTB_FreeTextBox.prototype.SetToolbarItemsEnabledState = function() {	
	if (!this.enableToolbars) return;
	if (this.hasFocus || !this.initialized) {
	
		if (this.mode == FTB_MODE_DESIGN ) {		
			for (i=0; i<this.buttons.length; i++) {
				button = this.buttons[i];

				if (button.customEnabled)
					button.customEnabled();
				else 
					button.disabled = false;

				if (button.disabled)
					this.DisableButton(button);			
				else
					this.EnableButton(button);
			}

			for (i=0; i<this.dropdownlists.length; i++) {
				this.dropdownlists[i].list.disabled=false;
			}		
		} else {
			for (i=0; i<this.buttons.length; i++) {
				button = this.buttons[i];

				if (button.htmlModeEnabled) 
					button.disabled=false
				else
					button.disabled = true;

				if (button.disabled)
					this.DisableButton(button);			
				else
					this.EnableButton(button);
			}

			for (i=0; i<this.dropdownlists.length; i++) {
				this.dropdownlists[i].list.selectedIndex=0;
				this.dropdownlists[i].list.disabled=true;
			}	
		}
	} else {
		// do nothing: uncomment code to disable buttons when the editor does not have focus
		/*
		for (i=0; i<this.buttons.length; i++)
			this.DisableButton(this.buttons[i]);			

		for (i=0; i<this.dropdownlists.length; i++)
			this.dropdownlists[i].list.disabled=true;
		*/
	}
};
FTB_FreeTextBox.prototype.DisableAllToolbarItems = function() {	
	if (this.enableToolbars) {
		for (i=0; i<this.buttons.length; i++) {
			this.DisableButton(this.buttons[i]);			
		}

		for (i=0; i<this.dropdownlists.length; i++) {
			this.dropdownlists[i].list.disabled=true;
		}
	}
};
FTB_FreeTextBox.prototype.EnableButton = function(button) {
	if (FTB_Browser.isIE)
		button.buttonImage.style.filter = "alpha(opacity = 100);";
		//button.td.style.filters.alpha.opacity = 100;
	else 
		button.buttonImage.style.MozOpacity = 1;
};
FTB_FreeTextBox.prototype.DisableButton = function(button) {
	button.state = FTB_BUTTON_OFF;
	button.SetButtonStyle("Out");

	if (FTB_Browser.isIE)
		button.buttonImage.style.filter = "alpha(opacity = 25);";
		//button.td.style.filters.alpha.opacity = 25;		
	else 
		button.buttonImage.style.MozOpacity = 0.25;
};
FTB_FreeTextBox.prototype.CopyHtmlToIframe = function(iframe) {
   	if (this.initialized) {
		html = this.htmlEditor.value;
		iframe.document.body.innerHTML = this.StoreUrls(html);
		
		//this.Debug(html.replace('\r','<R>').replace('\t','<T>').replace('\n','<N>'));
   	} else {
		iframe.document.open();
		iframe.document.write("<html>" + 
			"<head>" + 
			((this.designModeCss != '' && FTB_Browser.isGecko) ? "<style type='text/css'>@import url(" + this.designModeCss + ");</style>" : "") + 
			((this.baseUrl != '') ? "<base href='" + this.baseUrl + "' />" : "") + 
			"</head>" + 
			"<body>" + 
				this.StoreUrls(this.htmlEditor.value) + 
			"</body>" + 
		"</html>");
		//iframe.document.write(this.htmlEditor.value);
		iframe.document.close();
	}
};
FTB_FreeTextBox.prototype.CopyDesignToHtml = function() {
	
	// set all stored URLs
	var links = this.designEditor.document.getElementsByTagName('a');
	var imgs = this.designEditor.document.getElementsByTagName('img');
	
	for (var i=0; i<links.length; i++) {
		var stored = links[i].getAttribute('temp_href');
		if (stored) {
			links[i].setAttribute('href',stored);
		}
	}
	for (var i=0; i<imgs.length; i++) {
		var stored = imgs[i].getAttribute('temp_src');
		if (stored) {
			imgs[i].setAttribute('src',stored);
		}
	}
	
	var html = this.designEditor.document.body.innerHTML;
	
	html = this.RemoveTempUrls(html);
	
	this.htmlEditor.value = html;
	
	// clear out default moz & ie properties
	if (this.htmlEditor.value == '<br>' || this.htmlEditor.value == '<br>\r\n' || // Moz
		this.htmlEditor.value == '<P>&nbsp;</P>') { // IE
		this.htmlEditor.value = '';
	}	
};
FTB_FreeTextBox.prototype.GoToHtmlMode = function() {
    if (this.mode == FTB_MODE_DESIGN) this.CopyDesignToHtml();
	
	if (FTB_Browser.isGecko)
		this.designEditor.document.designMode = 'Off';
		
    this.designEditorArea.style.display = 'none';
    this.htmlEditorArea.style.display = '';
    this.previewPaneArea.style.display = 'none';
   
	if (this.ancestorArea) this.ancestorArea.innerHTML = "";    
    this.SetActiveTab(this.htmlModeTab);    
         
	this.mode = FTB_MODE_HTML;
    //this.Focus();    
    return true;
};
FTB_FreeTextBox.prototype.GoToDesignMode = function() {
	if (this.mode == FTB_MODE_DESIGN) return false;

	this.CopyHtmlToIframe(this.designEditor);
	this.designEditorArea.style.display = '';
	this.htmlEditorArea.style.display = 'none';
	this.previewPaneArea.style.display = 'none';	

	// reset for Gecko	
	if (FTB_Browser.isGecko) {
		this.designEditor.document.designMode = 'On';
		this.designEditor.document.execCommand("useCSS", false, true);
	}
    
    if (this.ancestorArea) 
		this.ancestorArea.innerHTML = "";
    
	if (this.designModeTab)
		this.SetActiveTab(this.designModeTab);
    
    //this.SetToolbarItemsEnabledState();
    
    this.mode = FTB_MODE_DESIGN;
    //this.Focus();
    return true;
};
FTB_FreeTextBox.prototype.GoToPreviewMode = function() {
    if (this.mode == FTB_MODE_DESIGN) this.CopyDesignToHtml();
    this.CopyHtmlToIframe(this.previewPane);

    this.designEditorArea.style.display = 'none';
    this.htmlEditorArea.style.display = 'none';
    this.previewPaneArea.style.display = '';
      
    this.SetActiveTab(this.previewModeTab);
    if (this.ancestorArea) this.ancestorArea.innerHTML = "";
    
    this.mode = FTB_MODE_PREVIEW;
    return true;
};
FTB_FreeTextBox.prototype.HtmlEncode = function( text ) {
	if ( typeof( text ) != "string" )
		text = text.toString() ;

	text = text.replace(/&/g, "&amp;") ;
	text = text.replace(/"/g, "&quot;") ;
	text = text.replace(/</g, "&lt;") ;
	text = text.replace(/>/g, "&gt;") ;
	text = text.replace(/'/g, "&#146;") ;

	return text ;
};
FTB_FreeTextBox.prototype.ExecuteCommand = function(commandName, middle, commandValue) {
	if (this.mode != FTB_MODE_DESIGN) return;
	this.designEditor.focus();
	if (commandName == 'backcolor' && !FTB_Browser.isIE) commandName = 'hilitecolor';
	

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av在线不卡免费看| 国产精品久久久久久一区二区三区 | 日韩精品午夜视频| 国产一区二区看久久| 欧美日韩国产一级片| 亚洲国产成人在线| 久久99蜜桃精品| 欧美性极品少妇| 日本一区二区电影| 麻豆精品视频在线| 欧美久久久久久久久| 日韩毛片视频在线看| 国产一区二区三区黄视频 | 国产999精品久久| 欧美成人精精品一区二区频| 亚洲午夜精品网| 一本到三区不卡视频| 日本一区二区动态图| 国产一区高清在线| 日韩欧美国产高清| 日韩经典一区二区| 欧美日韩二区三区| 亚洲国产精品一区二区www| 91麻豆视频网站| 成人免费在线播放视频| 不卡的av电影| 中文字幕在线不卡视频| 丰满亚洲少妇av| 中文字幕欧美国产| 成人午夜电影久久影院| 中文在线一区二区| 成人亚洲精品久久久久软件| 国产午夜精品一区二区三区嫩草| 国产呦精品一区二区三区网站| 精品美女一区二区三区| 久草在线在线精品观看| 久久嫩草精品久久久精品| 国产精品一区二区在线播放| 欧美极品少妇xxxxⅹ高跟鞋| 成人精品视频网站| 中文字幕亚洲欧美在线不卡| 色婷婷av久久久久久久| 亚洲国产毛片aaaaa无费看| 欧美日韩精品专区| 美女网站视频久久| 久久久久久99精品| aa级大片欧美| 亚洲国产婷婷综合在线精品| 91精品国产麻豆| 精品一区二区三区免费毛片爱| 久久嫩草精品久久久精品一| 国产伦精一区二区三区| 国产日韩欧美麻豆| 91亚洲精华国产精华精华液| 亚洲亚洲人成综合网络| 日韩一区二区在线观看| 成人午夜激情影院| 亚洲电影视频在线| 欧美一区二区三区在线| 国产成人av电影在线播放| 亚洲欧美偷拍卡通变态| 日韩精品影音先锋| 成人国产视频在线观看| 日韩二区三区四区| 国产精品伦理一区二区| 9191国产精品| 成人精品小蝌蚪| 亚洲va欧美va天堂v国产综合| 亚洲精品一区二区精华| 色婷婷av一区二区三区大白胸| 青娱乐精品视频| 亚洲三级在线看| 欧美精品一区二区三区在线播放| 91老师片黄在线观看| 麻豆高清免费国产一区| 亚洲靠逼com| 久久亚洲一区二区三区四区| 欧美亚洲国产怡红院影院| 国产经典欧美精品| 肉肉av福利一精品导航| 中文字幕高清不卡| 91精品国产aⅴ一区二区| 热久久国产精品| 久久久久成人黄色影片| 在线观看91av| 北岛玲一区二区三区四区| 亚洲一区二区黄色| 久久久久久久电影| 欧美日韩日日夜夜| 国产精品18久久久久久久久| 亚洲国产一区二区三区青草影视| 久久久无码精品亚洲日韩按摩| 欧美色综合天天久久综合精品| 国产综合久久久久久久久久久久| 1024成人网| ww亚洲ww在线观看国产| 国产成人在线免费| 蜜桃视频在线一区| 亚洲伊人伊色伊影伊综合网| 精品国精品国产| 精品污污网站免费看| 成人一级片在线观看| 美国精品在线观看| 亚洲第一在线综合网站| 亚洲综合一区二区| 亚洲国产精品高清| 欧美videos中文字幕| 欧美三级蜜桃2在线观看| 不卡的av中国片| 国产成人午夜视频| 精品一区二区三区免费观看| 亚洲第一久久影院| 一区二区三区在线视频免费观看 | 欧美日韩国产大片| 一本大道久久a久久精品综合| 国产成人综合自拍| 国产在线视频一区二区三区| 日本欧美大码aⅴ在线播放| 欧美国产欧美综合| 中文字幕中文字幕一区| 欧美激情一区二区在线| 久久久久久久久伊人| 欧美精品一区视频| 欧美第一区第二区| 91精品在线免费| 成人的网站免费观看| 91性感美女视频| 91麻豆.com| 在线观看一区二区精品视频| 色一情一乱一乱一91av| 在线看国产一区| 国产成人一级电影| 91在线播放网址| 色综合久久久久综合| 在线精品亚洲一区二区不卡| 欧美午夜一区二区| 欧美男人的天堂一二区| 欧美成人r级一区二区三区| 精品国产免费视频| 久久综合九色综合97婷婷| 久久久久久久免费视频了| 中文字幕av一区二区三区高| ...xxx性欧美| 美女在线视频一区| 成人性生交大片免费| 欧美日韩久久久一区| 日韩欧美一区二区三区在线| 久久婷婷久久一区二区三区| 国产精品麻豆久久久| 亚洲三级在线看| 午夜一区二区三区在线观看| 奇米四色…亚洲| 美女一区二区三区在线观看| 日韩电影在线观看电影| 麻豆精品久久久| 国内精品不卡在线| 91女神在线视频| 3atv在线一区二区三区| 日本一区二区动态图| 亚洲自拍与偷拍| 极品少妇一区二区三区精品视频| 一本大道久久a久久精品综合| 欧美精品一级二级| 久久久av毛片精品| 一区二区三区不卡视频在线观看 | 精品免费日韩av| 亚洲国产三级在线| 国产精品乡下勾搭老头1| 91黄色免费观看| 久久综合精品国产一区二区三区| 亚洲成人动漫精品| www.亚洲国产| 国产日韩精品一区| 免费日韩伦理电影| 欧美亚洲禁片免费| 国产精品久久久久久亚洲毛片| 免费久久99精品国产| 91麻豆免费看| 国产日韩欧美精品电影三级在线 | 色婷婷久久99综合精品jk白丝| 日韩欧美成人激情| 亚洲精品国产成人久久av盗摄 | 国产成人亚洲综合色影视| 欧美日韩aaa| 亚洲国产精品v| 国产成人av一区二区三区在线观看| 欧美日韩一区成人| 国产精品久久久久久久浪潮网站| 久久精品国产精品亚洲红杏| 色哟哟国产精品| 国产精品久久久久三级| 国产在线精品一区二区不卡了| 欧美丝袜丝交足nylons图片| 亚洲欧洲精品一区二区精品久久久 | 国产精品一区在线| 精品日韩欧美在线| 秋霞影院一区二区| 欧美在线999| 国产精品国产三级国产三级人妇| 国产精品99久久久久久似苏梦涵 |