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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? htmlarea-ocms.js

?? cms是開源的框架
?? JS
字號:
/*
 * File   : $Source: /usr/local/cvs/opencms/modules/org.opencms.editors.htmlarea/resources/system/workplace/editors/htmlarea/htmlarea-ocms.js,v $
 * Date   : $Date: 2006/03/27 14:53:05 $
 * Version: $Revision: 1.2 $
 *
 * This library is part of OpenCms -
 * the Open Source Content Mananagement System
 *
 * Copyright (c) 2005 Alkacon Software GmbH (http://www.alkacon.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * For further information about Alkacon Software GmbH, please see the
 * company website: http://www.alkacon.com
 *
 * For further information about OpenCms, please see the
 * project website: http://www.opencms.org
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
/*
 * These scripts implement the required functions for the OpenCms specific editor popup dialogs like galleries or link dialogs
 */
var activeEditor;
var USE_LINKSTYLEINPUTS = false;


// opens the specified gallery in a popup window
function openGallery(galleryType) {
	openWindow = window.open(workplacePath + "galleries/gallery_fs.jsp?gallerytypename=" + galleryType, "GalleryBrowser", "width=650, height=700, resizable=yes, top=20, left=100");
	focusCount = 1;
	openWindow.focus();
}

// opens the link dialog window
function openLinkDialog(errorMessage) {
	openAnchorDialogWindow("link", errorMessage);
}

// opens the anchor dialog window
function openAnchorDialog(errorMessage) {
	openAnchorDialogWindow("anchor", errorMessage);
}

// opens the anchor or link dialog window depending on the given link type ("link" or "anchor")
function openAnchorDialogWindow(linkType, errorMessage) { 
	if (hasSelectedText()) {
		var winheight;
		var winwidth;
		if (linkType == "link") {
			winheight = (USE_LINKSTYLEINPUTS?220:170);
			winwidth = 480;
		} else {
			winheight = (USE_LINKSTYLEINPUTS?180:130);
			winwidth = 350;
		}
		var linkInformation = getSelectedLink();
		var params = "?showCss=" + USE_LINKSTYLEINPUTS;
		if (linkInformation != null) {
			if (linkType == "link") {
				params += "&href=" + linkInformation["href"];
				params += "&target=" + linkInformation["target"];
				params += "&title= "+linkInformation["title"];
			} else {
				params += "&name=" + linkInformation["name"];
			}
			if (USE_LINKSTYLEINPUTS) {
				params += "&style=" + linkInformation["style"];
				params += "&class=" + linkInformation["class"];
			}
		}
	openWindow = window.open(workplacePath + "editors/dialogs/" + linkType + ".jsp" + params, "SetLink", "width=" + winwidth + ", height=" + winheight + ", resizable=yes, top=300, left=250");
	openWindow.focus();
    } else {
    	alert(errorMessage);
    }
}

// Returns the currently active editor instance to use for the popup dialogs
function getActiveEditor() {
	return activeEditor;
}

// Sets the currently active editor instance to use for the popup dialogs
function setActiveEditor(actEditor) {
	activeEditor = actEditor;
}

// inserts the passed html fragment at the current cursor position
function insertHtml(htmlContent) {
	getActiveEditor().insertHTML(htmlContent);
}

// checks if a text part has been selected by the user
function hasSelectedText() {
	return getActiveEditor().hasSelectedText();
}

// gets the selected html parts
function getSelectedHTML() {
	return getActiveEditor().getSelectedHTML();
}

// creates a named anchor or a link from the OpenCms link dialog, called from popup window
function createLink(linkInformation) {
	var actEditor = getActiveEditor();
	var thelink = actEditor.getParentElement();
	var href = linkInformation["href"].trim();
	if (thelink) {
		if (/^img$/i.test(thelink.tagName)) {
			thelink = thelink.parentNode;
		}
		if (!/^a$/i.test(thelink.tagName)) {
			thelink = null;
		}
	}
	if (!thelink) {
		var sel = actEditor._getSelection();
		var range = actEditor._createRange(sel);
	}
	var a = thelink;
	if (!a) try {
		if (!HTMLArea.is_ie) {
			actEditor._doc.execCommand("createlink", false, "#");
			a = actEditor.getParentElement();
			var sel = actEditor._getSelection();
			var range = actEditor._createRange(sel);
			a = range.startContainer;
			if (!/^a$/i.test(a.tagName)) {
				a = a.nextSibling;
				if (a == null)
					a = range.startContainer.parentNode;
			}
		} else {
			// HACK: for IE, create a String representing the link
			var linkAnchor = '<a';
			if (linkInformation["type"] == "anchor") {
				linkAnchor += ' name="' + linkInformation["name"] + '"';
			} else {
				linkAnchor += ' href="' + linkInformation["href"] + '"';
				linkAnchor += ' target="' + linkInformation["target"] + '"';
			}
			if (linkInformation["title"] != null && linkInformation["title"] != "") {
				linkAnchor += ' title="' + linkInformation["title"] + '"';
			} 
			if (USE_LINKSTYLEINPUTS) { 
				if (linkInformation["style"] != "") {
					linkAnchor += ' style="' + linkInformation["style"] + '"';
					
				}
				if (linkInformation["class"] != "") {
					linkAnchor += ' class="' + linkInformation["class"] + '"';
				}
			}
			linkAnchor += '>';
			actEditor.surroundHTML(linkAnchor, "</a>");
			return;			
		}		
	} catch (e) {}
	else {
		actEditor.selectNodeContents(a);
		
		var deleteNode = false;
		if (linkInformation["type"] == "anchor" && linkInformation["name"] == "") {
			// set dummy href attribute value that deletion works correctly
			a.href = "#";
			deleteNode = true;
		}
		if (linkInformation["type"] != "anchor" && href == "") {
			deleteNode = true;
		}
		if (deleteNode) {
			// delete the anchor from document
			actEditor._doc.execCommand("unlink", false, null);
			actEditor.updateToolbar();
			return;
		}		
	}
	if (!(a && /^a$/i.test(a.tagName))) {
		// no anchor tag, return
		return;
	}
	
	if (linkInformation["type"] == "anchor") {
		// create a named anchor
		a.name = linkInformation["name"];
		a.removeAttribute("href");
		a.removeAttribute("target");
	} else {
		// create a link
		a.href = linkInformation["href"];
		if (linkInformation["target"] != "") {
			a.target = linkInformation["target"];
		}
		a.removeAttribute("name");
		
	}
	
	if (linkInformation["title"] != null && linkInformation["title"] != "") {
		a.title = linkInformation["title"];
	} else {
		a.removeAttribute("title");
	}
	
	if (USE_LINKSTYLEINPUTS) {
		if (linkInformation["style"] != "") {
			// does not work: a.style.setAttribute("CSSTEXT", linkInformation["style"]);
		} else {
			a.removeAttribute("style");
		}
		if (linkInformation["class"] != "") {
			a.setAttribute("class", linkInformation["class"]);
		} else {
			a.removeAttribute("class");
		}
	}
	actEditor.selectNodeContents(a);
	actEditor.updateToolbar();
}

// retrieves the information about the selected link
function getSelectedLink() {
	// Get the editor selection
	var linkInformation = null;
	
	var thelink = getActiveEditor().getParentElement();
	if (thelink) {
		if (/^img$/i.test(thelink.tagName)) {
			thelink = thelink.parentNode;
		}
		if (!/^a$/i.test(thelink.tagName)) {
			thelink = null;
		}
	}
	if (thelink != null) {
		linkInformation = new Object();
		var linkUri = thelink.href;
		if (linkUri != null) {
			linkUri = getActiveEditor().stripBaseURL(linkUri);
		}
		linkInformation["href"] = encodeURIComponent(linkUri);		
		linkInformation["name"] = thelink.name;
		linkInformation["target"] = thelink.target;
		linkInformation["title"] = thelink.title;

		if (USE_LINKSTYLEINPUTS) {
			linkInformation["style"] = encodeURIComponent(thelink.style.getAttribute("CSSTEXT", 2));
			linkInformation["class"] = thelink.className;
		}	
	}

	return linkInformation;
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
26uuu久久天堂性欧美| 91福利在线播放| 精品国产免费一区二区三区四区| 午夜精品福利视频网站| 欧美日韩国产一级| 日韩av电影免费观看高清完整版 | 日韩欧美一二区| 精品无人码麻豆乱码1区2区| 精品福利在线导航| 成人在线视频一区二区| 国产精品国产三级国产普通话99| jlzzjlzz亚洲日本少妇| 亚洲激情一二三区| 日韩一区二区三区av| 国产精品一区二区三区乱码| 亚洲欧美偷拍三级| 欧美丰满高潮xxxx喷水动漫| 麻豆91精品视频| 亚洲国产精华液网站w| 在线精品视频一区二区三四| 伦理电影国产精品| 国产精品九色蝌蚪自拍| 欧美人伦禁忌dvd放荡欲情| 激情综合一区二区三区| 中文字幕一区日韩精品欧美| 欧美午夜在线观看| 国产一区二区免费视频| 一区二区三区在线观看欧美| 日韩欧美三级在线| 99久久精品国产麻豆演员表| 欧美aaa在线| **欧美大码日韩| 日韩精品一区在线| 色婷婷综合久久| 精品一区二区三区香蕉蜜桃| 成人欧美一区二区三区黑人麻豆 | 成人黄色片在线观看| 亚洲18色成人| 国产拍欧美日韩视频二区| 欧美在线免费视屏| 丰满少妇在线播放bd日韩电影| 亚洲一区二区3| 中文字幕免费观看一区| 日韩一级精品视频在线观看| 91在线视频播放| 久草中文综合在线| 亚洲一区二区三区四区中文字幕| 久久久久久久综合狠狠综合| 欧美高清性hdvideosex| 色综合久久九月婷婷色综合| 狠狠狠色丁香婷婷综合激情| 日日夜夜一区二区| 亚洲视频综合在线| 国产女同互慰高潮91漫画| 91精品国产综合久久久久| 一本到三区不卡视频| 国产a视频精品免费观看| 久久99精品国产.久久久久| 亚洲gay无套男同| 一区二区欧美在线观看| 国产精品视频线看| 久久久久九九视频| 精品国产伦理网| 这里只有精品99re| 欧美精品自拍偷拍动漫精品| 91成人免费电影| 色综合久久久久| 色综合天天综合网天天狠天天| 福利电影一区二区三区| 国产成人自拍网| 国产九色精品成人porny| 九九**精品视频免费播放| 日本成人在线电影网| 午夜久久久久久| 日韩成人av影视| 男男gaygay亚洲| 奇米精品一区二区三区在线观看| 日韩精品91亚洲二区在线观看 | 中文字幕一区二区三区精华液| 久久久欧美精品sm网站| 亚洲精品一区二区在线观看| 精品av久久707| 国产亚洲制服色| 国产亚洲一区字幕| 国产精品嫩草99a| 自拍偷自拍亚洲精品播放| 综合中文字幕亚洲| 亚洲精品欧美综合四区| 亚洲一区二区视频在线| 日韩精品色哟哟| 久久成人羞羞网站| 国产精品综合网| 成人深夜视频在线观看| 一本色道久久综合狠狠躁的推荐| 在线观看视频一区| 51精品久久久久久久蜜臀| 日韩片之四级片| 久久精品一区二区三区av| 国产精品福利影院| 亚洲国产精品影院| 奇米精品一区二区三区四区| 国产风韵犹存在线视精品| 99久久综合狠狠综合久久| 欧美在线制服丝袜| 欧美成人三级在线| 国产精品电影院| 日韩影视精彩在线| 国产真实乱偷精品视频免| 99国产精品久久久久久久久久 | 日韩高清欧美激情| 韩国一区二区在线观看| 成a人片亚洲日本久久| 欧美亚洲高清一区| 精品国产乱码久久久久久牛牛| 国产女同互慰高潮91漫画| 亚洲精品国产第一综合99久久 | 亚洲精品国产成人久久av盗摄 | 欧美一区二区三区在线观看视频 | 欧美系列日韩一区| 国产性做久久久久久| 亚洲一区在线视频观看| 国产麻豆午夜三级精品| 91福利在线免费观看| 国产欧美一区二区三区在线看蜜臀 | 不卡的av中国片| 欧美美女网站色| 精品少妇一区二区三区在线视频 | 国产精品素人视频| 国产亚洲污的网站| 视频在线观看一区二区三区| 韩国一区二区视频| 一本到不卡精品视频在线观看 | 欧美日韩一区二区三区在线| 久久久噜噜噜久久人人看 | 亚洲色图欧美激情| 日本成人在线一区| 91麻豆产精品久久久久久| 欧美日韩成人高清| 日韩亚洲欧美在线| 亚洲午夜成aⅴ人片| 国产在线精品一区二区夜色| 色香蕉成人二区免费| 精品国产免费久久| 国产精品二区一区二区aⅴ污介绍| 九色|91porny| 日本乱人伦一区| 国产日韩v精品一区二区| 日韩av在线发布| 91蜜桃婷婷狠狠久久综合9色| 欧美v亚洲v综合ⅴ国产v| 夜夜爽夜夜爽精品视频| 粉嫩蜜臀av国产精品网站| 欧美一区二区三区日韩| 亚洲综合无码一区二区| 久久激情综合网| 欧美一级艳片视频免费观看| 亚洲男女一区二区三区| 粉嫩欧美一区二区三区高清影视| 欧美一级搡bbbb搡bbbb| 日韩av中文在线观看| 在线观看一区二区精品视频| 国产精品视频yy9299一区| 久久超碰97中文字幕| 日韩亚洲欧美在线观看| 亚洲成人av资源| 91麻豆福利精品推荐| 国产精品你懂的在线欣赏| 高清不卡一区二区| 久久日韩粉嫩一区二区三区| 免费看欧美女人艹b| 欧美探花视频资源| 国产精品免费av| 91视视频在线观看入口直接观看www| 欧美www视频| 精品一区二区三区不卡| 欧美日韩中文字幕精品| 午夜精品久久久久久久久| 欧美三级一区二区| 有坂深雪av一区二区精品| 99天天综合性| 亚洲va欧美va国产va天堂影院| 91在线观看成人| 国产精品国产三级国产aⅴ中文 | 日本成人中文字幕在线视频| 日韩一区二区精品在线观看| 美女在线观看视频一区二区| 884aa四虎影成人精品一区| 亚洲精品乱码久久久久久久久 | 午夜欧美视频在线观看 | 国产精品无人区| 日本韩国欧美国产| 亚洲国产欧美日韩另类综合| 在线观看中文字幕不卡| 亚洲国产视频一区| 欧美日韩成人在线一区| 青青草97国产精品免费观看 | 亚洲国产精品视频| 欧美午夜免费电影| 蜜桃视频在线观看一区| 久久九九影视网|