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

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

?? richtext.js

?? 圖書管理系統包括圖書的增加、刪除、修改等功能
?? JS
?? 第 1 頁 / 共 4 頁
字號:
/*	Copyright (c) 2004-2006, The Dojo Foundation	All Rights Reserved.	Licensed under the Academic Free License version 2.1 or above OR the	modified BSD license. For more information on Dojo licensing, see:		http://dojotoolkit.org/community/licensing.shtml*/ /* -*- tab-width: 4 -*- */dojo.provide("dojo.widget.RichText");dojo.provide("dojo.widget.html.RichText");dojo.require("dojo.widget.*");dojo.require("dojo.dom");dojo.require("dojo.html");dojo.require("dojo.event.*");dojo.require("dojo.style");dojo.require("dojo.string");// used to save contenttry {	document.write('<textarea id="dojo.widget.RichText.savedContent" ' +		'style="display:none;position:absolute;top:-100px;left:-100px;height:3px;width:3px;overflow:hidden;"></textarea>');}catch(e){ }dojo.widget.defineWidget(	"dojo.widget.html.RichText",	dojo.widget.HtmlWidget,	{		/** whether to inherit the parent's width or simply use 100% */		inheritWidth: false,		focusOnLoad: true,				/**		 * If a save name is specified the content is saved and restored if the		 * editor is not properly closed after editing has started.		 */		saveName: "",		_content: "",				/* set height to fix the editor at a specific height, with scrolling */		height: null,		/** The minimum height that the editor should have */		minHeight: "1em",				isClosed: true,		isLoaded: false,				/** whether to use the active-x object in IE */		useActiveX: false,		/* whether to use relative URLs for images - if this is enabled       	images will be given absolute URLs when inside the editor but       	will be changed to use relative URLs (to the current page) on save		*/		relativeImageUrls: false,				_SEPARATOR: "@@**%%__RICHTEXTBOUNDRY__%%**@@",		// contentFilters: [],		/*		defaultContentCleaner: function(content){			if(!dojo.render.html.ie){				return content;			}			content = content.replace(/\x20/g, " ");			// alert(content);			return content;		},		*/	/* Init	 *******/		fillInTemplate: function(){			this.open();			// add the formatting functions			var funcs = ["queryCommandEnabled", "queryCommandState",				"queryCommandValue", "execCommand"];			for(var i = 0; i < funcs.length; i++){				dojo.event.connect("around", this, funcs[i], this, "_normalizeCommand");			}						// backwards compatibility, needs to be removed			dojo.event.connect(this, "onKeyPressed", this, "afterKeyPress");			dojo.event.connect(this, "onKeyPress", this, "keyPress");			dojo.event.connect(this, "onKeyDown", this, "keyDown");			dojo.event.connect(this, "onKeyUp", this, "keyUp");			// add default some key handlers					var ctrl = this.KEY_CTRL;			var exec = function (cmd, arg) {				return arguments.length == 1 ? function () { this.execCommand(cmd); } :					function () { this.execCommand(cmd, arg); }			}							this.addKeyHandler("b", ctrl, exec("bold"));			this.addKeyHandler("i", ctrl, exec("italic"));			this.addKeyHandler("u", ctrl, exec("underline"));			this.addKeyHandler("a", ctrl, exec("selectall"));			//this.addKeyHandler("k", ctrl, exec("createlink", ""));			//this.addKeyHandler("K", ctrl, exec("unlink"));			this.addKeyHandler("s", ctrl, function () { this.save(true); });						this.addKeyHandler("1", ctrl, exec("formatblock", "h1"));			this.addKeyHandler("2", ctrl, exec("formatblock", "h2"));			this.addKeyHandler("3", ctrl, exec("formatblock", "h3"));			this.addKeyHandler("4", ctrl, exec("formatblock", "h4"));								this.addKeyHandler("\\", ctrl, exec("insertunorderedlist"));			if(!dojo.render.html.ie){				this.addKeyHandler("Z", ctrl, exec("redo"));			}		},		events: ["onBlur", "onFocus", "onKeyPress", "onKeyDown", "onKeyUp", "onClick"],		/**		 * Transforms the node referenced in this.domNode into a rich text editing		 * node. This can result in the creation and replacement with an <iframe> if		 * designMode is used, an <object> and active-x component if inside of IE or		 * a reguler element if contentEditable is available.		 */		open: function (element) {			dojo.event.topic.publish("dojo.widget.RichText::open", this);			if (!this.isClosed) { this.close(); }			this._content = "";			if((arguments.length == 1)&&(element["nodeName"])){ this.domNode = element; } // else unchanged			if(	(this.domNode["nodeName"])&&				(this.domNode.nodeName.toLowerCase() == "textarea")){				this.textarea = this.domNode;				var html = dojo.string.trim(this.textarea.value);				if(html == ""){ html = "&nbsp;"; }				this.domNode = document.createElement("div");				with(this.textarea.style){					display = "block";					position = "absolute";					width = "1px";					height = "1px";					border = margin = padding = "0px";					visiblity = "hidden";					if(dojo.render.html.ie){						overflow = "hidden";					}				}				dojo.dom.insertBefore(this.domNode, this.textarea);				this.domNode.innerHTML = html;								if(this.textarea.form){					dojo.event.connect(this.textarea.form, "onsubmit", 						// FIXME: should we be calling close() here instead?						dojo.lang.hitch(this, function(){							this.textarea.value = this.getEditorContent();						})					);				}								// dojo plucks our original domNode from the document so we need				// to go back and put ourselves back in				var editor = this;				dojo.event.connect(this, "postCreate", function (){					dojo.dom.insertAfter(editor.textarea, editor.domNode);				});			}else{				var html = dojo.string.trim(this.domNode.innerHTML);				if(html == ""){ html = "&nbsp;"; }			}								this._oldHeight = dojo.style.getContentHeight(this.domNode);			this._oldWidth = dojo.style.getContentWidth(this.domNode);			this._firstChildContributingMargin = this._getContributingMargin(this.domNode, "top");			this._lastChildContributingMargin = this._getContributingMargin(this.domNode, "bottom");			this.savedContent = document.createElement("div");			while (this.domNode.hasChildNodes()) {				this.savedContent.appendChild(this.domNode.firstChild);			}						// If we're a list item we have to put in a blank line to force the			// bullet to nicely align at the top of text			if(	(this.domNode["nodeName"])&&				(this.domNode.nodeName == "LI")){				this.domNode.innerHTML = " <br>";			}								if(this.saveName != ""){				var saveTextarea = document.getElementById("dojo.widget.RichText.savedContent");				if (saveTextarea.value != "") {					var datas = saveTextarea.value.split(this._SEPARATOR);					for (var i = 0; i < datas.length; i++) {						var data = datas[i].split(":");						if (data[0] == this.saveName) {							html = data[1];							datas.splice(i, 1);							break;						}					}								}				dojo.event.connect("before", window, "onunload", this, "_saveContent");				// dojo.event.connect(window, "onunload", this, "_saveContent");			}			// Safari's selections go all out of whack if we do it inline,			// so for now IE is our only hero			//if (typeof document.body.contentEditable != "undefined") {			if (this.useActiveX && dojo.render.html.ie) { // active-x				this._drawObject(html);				// dojo.debug(this.object.document);			} else if (dojo.render.html.ie) { // contentEditable, easy				this.editNode = document.createElement("div");				with (this.editNode) {					innerHTML = html;					contentEditable = true;					style.height = this.height ? this.height : this.minHeight;				}				if(this.height){ this.editNode.style.overflowY="scroll"; }				// FIXME: setting contentEditable on switches this element to				// IE's hasLayout mode, triggering weird margin collapsing				// behavior. It's particularly bad if the element you're editing				// contains childnodes that don't have margin: defined in local				// css rules. It would be nice if it was possible to hack around				// this. Sadly _firstChildContributingMargin and 				// _lastChildContributingMargin don't work on IE unless all				// elements have margins set in CSS :-(				this.domNode.appendChild(this.editNode);				dojo.lang.forEach(this.events, function(e){					dojo.event.connect(this.editNode, e.toLowerCase(), this, e);				}, this);							this.window = window;				this.document = document;								this.onLoad();			} else { // designMode in iframe				this._drawIframe(html);			}			// TODO: this is a guess at the default line-height, kinda works			if (this.domNode.nodeName == "LI") { this.domNode.lastChild.style.marginTop = "-1.2em"; }			dojo.html.addClass(this.domNode, "RichTextEditable");						this.isClosed = false;		},		_hasCollapseableMargin: function(element, side) {			// check if an element has padding or borders on the given side			// which would prevent it from collapsing margins			if (dojo.style.getPixelValue(element, 										 'border-'+side+'-width', 										 false)) {				return false;			} else if (dojo.style.getPixelValue(element, 												'padding-'+side,												false)) {				return false;			} else {				return true;			}		},		_getContributingMargin:	function(element, topOrBottom) {			// calculate how much margin this element and its first or last			// child are contributing to the total margin between this element			// and the adjacent node. CSS border collapsing makes this			// necessary.			if (topOrBottom == "top") {				var siblingAttr = "previousSibling";				var childSiblingAttr = "nextSibling";				var childAttr = "firstChild";				var marginProp = "margin-top";				var siblingMarginProp = "margin-bottom";			} else {				var siblingAttr = "nextSibling";				var childSiblingAttr = "previousSibling";				var childAttr = "lastChild";				var marginProp = "margin-bottom";				var siblingMarginProp = "margin-top";			}			var elementMargin = dojo.style.getPixelValue(element, marginProp, false);			function isSignificantNode(element) {				// see if an node is significant in the current context				// for calulating margins				return !(element.nodeType==3 && dojo.string.isBlank(element.data)) 					&& dojo.style.getStyle(element, "display") != "none" 					&& !dojo.style.isPositionAbsolute(element);			}			// walk throuh first/last children to find total collapsed margin size			var childMargin = 0;			var child = element[childAttr];			while (child) {				// skip over insignificant elements (whitespace, etc)				while ((!isSignificantNode(child)) && child[childSiblingAttr]) {					child = child[childSiblingAttr];				}						  				childMargin = Math.max(childMargin, dojo.style.getPixelValue(child, marginProp, false));				// stop if we hit a bordered/padded element				if (!this._hasCollapseableMargin(child, topOrBottom)) break;				child = child[childAttr];								   			}			// if this element has a border, return full child margin immediately			// as there won't be any margin collapsing			if (!this._hasCollapseableMargin(element, topOrBottom)){ return parseInt(childMargin); }			// find margin supplied by nearest sibling			var contextMargin = 0;			var sibling = element[siblingAttr];			while (sibling) {				if (isSignificantNode(sibling)) {					contextMargin = dojo.style.getPixelValue(sibling, 															 siblingMarginProp, 															 false);					break;				}				sibling = sibling[siblingAttr];			}			if (!sibling) { // no sibling, look at parent's margin instead				contextMargin = dojo.style.getPixelValue(element.parentNode, 												marginProp, false);			}			if (childMargin > elementMargin) {				return parseInt(Math.max((childMargin-elementMargin)-contextMargin, 0));			} else {				return 0;			}					},				/** Draws an iFrame using the existing one if one exists. 			Used by Mozilla, Safari, and Opera */		_drawIframe: function (html) {			// detect firefox < 1.5, which has some iframe loading issues			var oldMoz = Boolean(dojo.render.html.moz && (									typeof window.XML == 'undefined'))			if (!this.iframe) {				var currentDomain = (new dojo.uri.Uri(document.location)).host;				this.iframe = document.createElement("iframe");				with (this.iframe) {					scrolling = this.height ? "auto" : "no";					style.border = "none";					style.lineHeight = "0"; // squash line height					style.verticalAlign = "bottom";

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产麻豆91精品| 亚洲在线观看免费视频| **性色生活片久久毛片| 一区二区三区在线观看视频| 午夜精品久久一牛影视| 国产高清久久久| 欧美日韩日日夜夜| 国产丝袜欧美中文另类| 日本免费新一区视频| 色网站国产精品| 国产精品拍天天在线| 精品一区二区精品| 欧美一级在线观看| 亚洲无线码一区二区三区| 不卡的电视剧免费网站有什么| 欧美精品一区二区三区久久久| 五月天激情综合| 欧美性猛交xxxxxx富婆| 一区二区三区在线观看视频| 成人动漫视频在线| 国产精品另类一区| 奇米在线7777在线精品| 欧美日本不卡视频| 亚洲视频免费在线观看| 成人av网站在线观看| 2014亚洲片线观看视频免费| 2021国产精品久久精品| 91蜜桃网址入口| 乱一区二区av| 一卡二卡三卡日韩欧美| 欧美在线免费观看亚洲| 精品国产伦一区二区三区观看体验 | 亚洲男人都懂的| 色噜噜狠狠色综合欧洲selulu| 国产亚洲欧美激情| 欧美午夜电影在线播放| 欧美一区二区女人| 成人av网站在线观看免费| 亚洲一区二区三区四区五区黄 | 国产精品久久久久久久蜜臀| 色婷婷综合视频在线观看| 国产曰批免费观看久久久| 一二三四社区欧美黄| 日韩理论电影院| 美女在线视频一区| 丁香天五香天堂综合| 欧美欧美午夜aⅴ在线观看| 亚洲国产岛国毛片在线| 欧美电影免费观看高清完整版在线观看 | 中文字幕日韩精品一区| 中文字幕制服丝袜成人av| 亚洲一区二区影院| 中文幕一区二区三区久久蜜桃| 久久蜜桃香蕉精品一区二区三区| 日韩欧美中文字幕制服| 色婷婷精品大在线视频| 亚洲精品美腿丝袜| 亚洲另类中文字| 国产精品久久久久久久久快鸭 | 国产精品一级在线| 成人午夜电影小说| 7777精品伊人久久久大香线蕉的| 日韩亚洲欧美在线| 久久免费视频一区| 一级女性全黄久久生活片免费| 久久久久国产精品免费免费搜索| 色综合天天综合色综合av | 欧美电影免费观看高清完整版在线| 肉丝袜脚交视频一区二区| 欧美精品国产精品| 国产精品一级片| 亚洲国产成人91porn| 精品国产99国产精品| 91在线观看高清| 国内国产精品久久| 一区二区三区在线视频免费观看| 日韩你懂的在线观看| 成人av中文字幕| 久久精品免费观看| 国产成人免费高清| 亚洲美女在线一区| 久久久久综合网| 制服.丝袜.亚洲.另类.中文| 岛国av在线一区| 日本成人在线看| 亚洲乱码国产乱码精品精可以看| 欧美精品乱人伦久久久久久| av综合在线播放| 波多野结衣亚洲| 玖玖九九国产精品| 一区二区日韩av| 中文字幕欧美激情一区| 日韩欧美久久久| 欧美乱熟臀69xxxxxx| 91一区二区在线观看| 国产精品18久久久久久久网站| 日韩综合小视频| 亚洲综合色自拍一区| 中文字幕日韩精品一区| 国产日韩一级二级三级| 欧美一区二区二区| 欧美日本一道本在线视频| 99久久精品免费看国产免费软件| 韩国午夜理伦三级不卡影院| 午夜精品视频一区| 亚洲国产高清aⅴ视频| 久久综合九色综合97婷婷| 欧美精品乱码久久久久久| 欧美日韩一区 二区 三区 久久精品| 成人黄页毛片网站| 国产一区二区三区高清播放| 美腿丝袜亚洲综合| 日本aⅴ亚洲精品中文乱码| 亚洲一区二区在线免费观看视频| 中文字幕一区在线观看视频| 国产婷婷色一区二区三区四区 | 国产精品女主播av| 久久精品一级爱片| 国产日韩欧美一区二区三区乱码| 久久精品人人爽人人爽| 久久这里只精品最新地址| 久久久亚洲国产美女国产盗摄 | 国产偷国产偷亚洲高清人白洁| 久久日一线二线三线suv| 精品三级在线看| 26uuuu精品一区二区| 精品成人私密视频| 中文字幕成人在线观看| 亚洲国产岛国毛片在线| 中文字幕中文字幕中文字幕亚洲无线| 1024精品合集| 亚洲电影视频在线| 久久国产综合精品| 国产精品99久久久久久久女警| www.成人网.com| 欧美日韩精品系列| 欧美一区二区三区不卡| 久久精品欧美一区二区三区麻豆 | 91亚洲国产成人精品一区二区三 | 亚洲啪啪综合av一区二区三区| 亚洲精品中文字幕乱码三区| 午夜精品一区二区三区三上悠亚| 精品一区二区成人精品| av成人免费在线观看| 欧美日韩日日夜夜| 久久精品人人做| 香蕉加勒比综合久久| 国精产品一区一区三区mba视频 | 亚洲国产视频一区二区| 蜜桃久久精品一区二区| 高清不卡在线观看av| 91视频观看免费| 日韩欧美视频在线| 亚洲精品欧美在线| 韩国一区二区三区| 在线观看免费一区| 日韩精品一区二区三区四区| 国产精品国产三级国产aⅴ无密码| 午夜在线成人av| 91在线视频免费91| 日韩欧美一级在线播放| 一区二区在线看| 国产成人aaaa| 日韩午夜小视频| 亚洲精品视频免费看| 国产美女精品在线| 欧美午夜精品久久久久久孕妇| 久久伊人中文字幕| 一区二区三区影院| 成人性生交大合| 日韩精品专区在线影院重磅| 亚洲日韩欧美一区二区在线| 国模娜娜一区二区三区| 91精品国产91久久综合桃花| 国产精品五月天| 精品一区二区国语对白| 欧美精品色一区二区三区| 中文字幕日本不卡| 国产不卡视频一区二区三区| 日韩视频免费观看高清完整版在线观看 | 国产在线日韩欧美| 欧美日产国产精品| 一级做a爱片久久| jiyouzz国产精品久久| 日本一区二区免费在线| 麻豆91在线播放免费| 67194成人在线观看| 亚洲乱码国产乱码精品精可以看| 成人免费观看男女羞羞视频| 久久久久国产精品人| 国产美女视频一区| 久久看人人爽人人| 国产精品自拍三区| 26uuu国产在线精品一区二区| 久久99国内精品| 久久综合久色欧美综合狠狠| 麻豆精品一区二区| 2020国产成人综合网| 国产成人精品免费看| 久久精品欧美日韩精品|