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

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

?? rte.js

?? 1、激活企業硬件投資
?? JS
?? 第 1 頁 / 共 2 頁
字號:
// Internal (private) properties.  
// RichEditor is the global RichEditor object (function) of which there is only
// 1 instance.
RichEditor.txtView = true;         // WYSIWYG mode.  false == View Source

// initEditor(): Initialise the editor (called on window load, see below)
function initEditor()
{
	// Apply style data if supplied
	if (!public_description.styleData) {
	  public_description.put_styleData(null);
	}

	// Apply default editor options
	var strDefaults = 'dragdrop=no;source=yes';
	strDefaults += ';history=' + (document.queryCommandSupported('Undo') ? 'yes' : 'no');
	applyOptions(strDefaults);

	// Prepare the editable region
	loading.style.display = 'none';
  doc.contentEditable = "true";
  editor.style.visibility = 'visible';
  if(parent.document.all("IMG_ATTACHMENT_MODULE"))
     document.all("IMG_ATTACHMENT_MODULE").value=parent.document.all("IMG_ATTACHMENT_MODULE").value;
  if(parent.document.all("IMG_ATTACHMENT_YM"))
     document.all("IMG_ATTACHMENT_YM").value=parent.document.all("IMG_ATTACHMENT_YM").value;
  if(parent.document.all("IMG_ATTACHMENT_ID"))
     document.all("IMG_ATTACHMENT_ID").value=parent.document.all("IMG_ATTACHMENT_ID").value;
  if(parent.document.all("IMG_ATTACHMENT_NAME"))
     document.all("IMG_ATTACHMENT_NAME").value=parent.document.all("IMG_ATTACHMENT_NAME").value;
  
	// OZ - 12-06-2002
	// Put focus into the document (required when no HTML is supplied via docHtml property)
	doc.focus();
}

// checkRange(): make sure our pretend document (the content editable
// DIV with id of "doc") has focus and that a text range exists (which
// is what execCommand() operates on).
function checkRange()
{
   RichEditor.selectedImage = null;
   if (!RichEditor.txtView) return;      // Disabled in View Source mode
   doc.focus();
   if (document.selection.type == "None") {
      document.selection.createRange();
   }
var r = document.selection.createRange();
   DBG(1, 'RANGE Bounding('
            + 'top='+r.boundingHeight
            + ', left='+r.boundingHeight
            + ', width='+r.boundingWidth
            + ', height='+r.boundingHeight + ')'
         + ', Offset('
            + 'top='+r.offsetTop
            + ', left='+r.offsetLeft + ')'
         + ', Text=(' + r.text + ')'
         + ', HTML=(' + r.htmlText + ')'
      );
}

// post(): Called in response to clicking the post button in the
// toolbar. It fires an event in the container named post, passing the
// HTML of our newly edited document as the data argument.
function post()
{
   //DBG(1, 'Raise "post" event');
   //window.external.raiseEvent("post", doc.innerHTML);
   //alert(doc.innerHTML);
   return doc.innerHTML;
}

// insert(): called in response to clicking the insert table, image,
// smily icons in the toolbar.  Loads up an appropriate dialog to
// prompt for information, the dialog then returns the HTML code or
// NULL.  We paste the HTML code into the document.
function insert(what)
{
   if (!RichEditor.txtView) return;      // Disabled in View Source mode

   DBG(1, 'insert' + what + ')');

   // Chose action based on what is being inserted.
   switch(what)
   {
   case "table":
      strPage = "dlg_ins_table.html";
      strAttr = "status:no;dialogWidth:340px;dialogHeight:360px;help:no";
      break;
   case "smile":
      strPage = "dlg_ins_smile.html";
      strAttr = "status:no;dialogWidth:300px;dialogHeight:350px;help:no";
      break;
   case "char":
      strPage = "dlg_ins_char.html";
      strAttr = "status:no;dialogWidth:450px;dialogHeight:290px;help:no";
      break;
   case "image":
      strPage = "dlg_ins_image.html";
      strAttr = "status:no;dialogWidth:400px;dialogHeight:210px;help:no";' '
      break;
   case "about":
      strPage = "dlg_about.html";
      strAttr = "status:no;dialogWidth:250px;dialogHeight:130px;help:no";' '
      break;
   }

   // run the dialog that implements this type of element
   html = showModalDialog(strPage, window, strAttr);

   // and insert any result into the document.
   if (html) {
      insertHtml(html);
   }
}

// insertHtml(): Insert the supplied HTML into the current position
// within the document.
function insertHtml(html)
{
   doc.focus();
   var sel = document.selection.createRange();
   // don't try to insert HTML into a control selection (ie. image or table)
   if (document.selection.type == 'Control') {
      return;
   }
   
   sel.pasteHTML(html);
}

// doStyle(): called to handle the simple style commands such a bold,
// italic etc.  These require no special handling, just a call to
// execCommand().  We also call reset so that the toolbar represents
// the state of the current text.
//
// 2002-07-30 Updated based on patch submitted by Michael Keck (mkkeck) 
//
function doStyle(s){ 
   if(!RichEditor.txtView) return; 
   /* Disabled in View Source mode */ 
   DBG(1, 'doStyle(' + s + ')'); 
   checkRange(); 
   if(s!='InsertHorizontalRule'){ 
      /* what command string? */ 
      document.execCommand(s); 
   } else if( s=='InsertHorizontalRule') { 
      /* if s=='InsertHorizontalRule then use this command */ 
      document.execCommand(s,false, null); 

      /* Note: 
      In your source view the <HR> has an ID like this 
      <HR id=null> 
      */ 
   } 
   reset(); 
} 


// link(): called to insert a hyperlink.  It will use the selected text
// if there is some, or the URL entered if not.  If clicked when over a
// link, that link is allowed to be edited.
function link(on)
{
   if (!RichEditor.txtView) return;      // Disabled in View Source mode

   var strURL = "http://";
   var strText;

   // First, pick up the current selection.
   doc.focus();
   var r = document.selection.createRange();
   var el = r.parentElement();

   // Is this aready a link?
   if (el && el.nodeName == "A") {
      r.moveToElementText(el);
      if (!on) {      // If removing the link, then replace all with
         r.pasteHTML(el.innerHTML);
         return;
      }
      strURL = el.href;
   }

   // Get the text associated with this link
   strText = r.text;

   // Prompt for the URL
   strURL = window.prompt("輸入地址:", strURL);
   if (strURL) {
      // Default the TEXT to the url if non selected
      if (!strText || !strText.length) {
         strText = strURL;
      }

      // Replace with new URL
      r.pasteHTML('<A href=' + strURL + ' target=_new>' + strText + '</a>');
   }

   reset();
}

// sel(); similar to doStyle() but called from the dropdown list boxes
// for font and style commands.
function sel(el)
{
   if (!RichEditor.txtView) return;      // Disabled in View Source mode
   checkRange();
   switch(el.id)
   {
   case "ctlFont":
      document.execCommand('FontName', false, el[el.selectedIndex].value);
      break;
   case "ctlSize":
      document.execCommand('FontSize', false, el[el.selectedIndex].value);
      break;
   case "ctlStyle":
      document.execCommand('FormatBlock', false, el[el.selectedIndex].text);
      break;
   }
   doc.focus();
   reset();
}

// pickColor(): called when the text or fill color icons are clicked.  Displays
// the color chooser control.  The color setting is completed by the event
// handler of this control (see richedit.html)
function pickColor(fg)
{
   if (!RichEditor.txtView) return;      // Disabled in View Source mode
   checkRange();
   var el = window.event.srcElement;
   if (el && el.nodeName == "IMG") {
      setState(el, true);
   }
   color.style.top = window.event.clientY + 10;
   color.style.left = window.event.clientX - 100;
   color.style.display = 'block';
   color._fg = fg;
}

// setColor(): called from the fore/back color selection dialog event handler
// to set/reset the fore/background color.
function setColor(name, data)
{
   color.style.display = 'none';
   checkRange();
   if (!data) {
      removeFormat(document.selection.createRange(), color._fg);
   } else {
      document.execCommand(color._fg, false, data);
   }
   setState(btnText, false);
   setState(btnFill, false);
   doc.focus();
}

// removeFormat(): Called to remove specific formats from the selected text.
// The 'removeFormat' command removes all formatting.  The principle behind
// this routine is to have a list of the possible formats the selection may
// have, check the selection for the current formats, ignoreing the one we
// want to use, then remove all formatting and then re-apply all but the
// one we wanted to remove.
function removeFormat(r, name)
{
   var cmd = [ "Bold", "Italic", "Underline", "Strikethrough", "FontName", "FontSize", "ForeColor", "BackColor" ];
   var on = new Array(cmd.length);
   for (var i = 0; i < cmd.length; i++) {
      on[i] = name == cmd[i] ? null : r.queryCommandValue(cmd[i]);
   }
   r.execCommand('RemoveFormat');
   for (var i = 0; i < cmd.length; i++) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91免费版在线看| 欧美不卡在线视频| 欧美一级免费大片| 亚洲国产精品黑人久久久| 香蕉久久一区二区不卡无毒影院| 成人性生交大片免费看中文| 欧美一区二区在线不卡| 亚洲乱码中文字幕综合| 国产精品一区在线观看你懂的| 欧美一级片在线看| 亚洲五码中文字幕| 99re热这里只有精品免费视频| 精品国产3级a| 久久99热99| 91精品欧美福利在线观看 | 欧美一区二区三区四区久久| 亚洲欧美一区二区三区极速播放| 韩国精品久久久| 欧美不卡激情三级在线观看| 午夜精品成人在线| 欧美在线色视频| 亚洲激情图片一区| 一本色道**综合亚洲精品蜜桃冫 | 丰满少妇在线播放bd日韩电影| 91精品国产高清一区二区三区蜜臀 | 国产成人免费视频网站高清观看视频| 91精品婷婷国产综合久久性色| 亚洲国产精品久久一线不卡| 色狠狠桃花综合| 亚洲三级电影全部在线观看高清| 波多野结衣亚洲一区| 国产精品久久久久久久久久久免费看| 国产九色精品成人porny| 精品理论电影在线观看| 国产一区二区三区综合| 久久久久99精品国产片| 国产另类ts人妖一区二区| 久久久www成人免费毛片麻豆| 国产麻豆成人精品| 国产精品丝袜黑色高跟| a美女胸又www黄视频久久| 亚洲欧美在线另类| 欧美视频中文一区二区三区在线观看| 亚洲国产精品一区二区久久恐怖片| 欧洲一区二区av| 奇米影视一区二区三区小说| 久久美女艺术照精彩视频福利播放| 国内精品第一页| 日本一区二区三区在线不卡| 不卡一区二区三区四区| 亚洲第一电影网| 欧美第一区第二区| 成人一级黄色片| 伊人一区二区三区| 制服丝袜亚洲精品中文字幕| 久久97超碰国产精品超碰| 国产精品区一区二区三| 欧美综合一区二区| 免费在线观看视频一区| 中文字幕高清不卡| 欧美疯狂做受xxxx富婆| 国产一区二区在线观看视频| 亚洲免费资源在线播放| 欧美精品日韩综合在线| 国产精品一二三| 一二三区精品视频| 精品日韩欧美一区二区| 91麻豆自制传媒国产之光| 日韩精品久久久久久| 国产女人水真多18毛片18精品视频| 欧美亚洲日本一区| 国产麻豆视频精品| 亚洲va天堂va国产va久| 国产精品免费看片| 91麻豆精品国产91久久久久 | 日韩精品一级中文字幕精品视频免费观看 | 99热这里都是精品| 欧美a一区二区| 自拍偷拍国产精品| 日韩亚洲欧美在线观看| av在线不卡网| 国内精品不卡在线| 婷婷成人激情在线网| 中文字幕一区二区三区不卡在线| 欧美一级欧美三级| 91久久精品一区二区| 国产在线播放一区二区三区| 午夜久久久久久| 中文字幕一区二区三区在线播放| 欧美tk丨vk视频| 欧美系列一区二区| 91天堂素人约啪| 国产精品自拍三区| 精一区二区三区| 日韩高清在线一区| 亚洲444eee在线观看| 成人免费小视频| 国产欧美精品一区二区三区四区| 欧美一区二区在线不卡| 欧美三级电影精品| 欧美系列一区二区| 在线视频亚洲一区| 色婷婷综合视频在线观看| youjizz国产精品| 国产精品亚洲а∨天堂免在线| 久久精品国产成人一区二区三区| 日日骚欧美日韩| 视频一区二区中文字幕| 午夜电影一区二区| 日韩国产一二三区| 日韩不卡手机在线v区| 亚洲国产日日夜夜| 午夜免费欧美电影| 全国精品久久少妇| 久久精品国产99久久6| 久久99国产精品免费| 久久国产尿小便嘘嘘尿| 国内精品伊人久久久久av一坑 | 一区二区不卡在线播放| 亚洲精品久久7777| 亚洲成人动漫在线免费观看| 亚洲国产综合人成综合网站| 日韩专区一卡二卡| 毛片基地黄久久久久久天堂| 狠狠色狠狠色综合| 国产成人av一区二区三区在线 | 3atv一区二区三区| 精品欧美乱码久久久久久 | 亚洲日本va午夜在线影院| 一区二区三区**美女毛片| 亚洲高清免费观看高清完整版在线观看| 亚洲一区二区三区精品在线| 午夜精品在线视频一区| 激情五月婷婷综合网| 成人免费av网站| 欧美视频三区在线播放| 日韩一级二级三级精品视频| 中文无字幕一区二区三区| 亚洲视频小说图片| 日韩中文字幕一区二区三区| 激情综合网最新| 99re亚洲国产精品| 欧美日韩一区小说| 久久影院午夜论| 亚洲你懂的在线视频| 毛片不卡一区二区| www.日本不卡| 日韩一区二区电影网| 国产精品热久久久久夜色精品三区 | 国产在线视频一区二区| 成人精品国产一区二区4080| 欧美日韩午夜精品| 欧美国产欧美综合| 亚洲成人综合视频| 成人影视亚洲图片在线| 91精品国产综合久久久蜜臀粉嫩| 国产视频一区在线播放| 亚洲成av人片在线| 成人午夜免费av| 日韩视频一区在线观看| 亚洲日本欧美天堂| 国产在线视频一区二区三区| 欧美日韩亚洲综合在线| 欧美国产日产图区| 精品综合久久久久久8888| 欧美艳星brazzers| 国产精品久久久99| 经典三级在线一区| 欧美妇女性影城| 亚洲精品v日韩精品| 成人小视频在线观看| 日韩三级精品电影久久久| 一区二区三区在线视频播放| 国产精品 欧美精品| 欧美一区二区三区的| 一级中文字幕一区二区| 成人三级在线视频| 亚洲精品在线一区二区| 蜜桃av一区二区在线观看| 色吊一区二区三区| 国产精品对白交换视频| 国产美女精品人人做人人爽| 6080日韩午夜伦伦午夜伦| 一区二区在线观看免费视频播放| 风间由美一区二区三区在线观看 | 亚洲一级二级三级在线免费观看| 国产成a人无v码亚洲福利| 精品日韩欧美一区二区| 蜜芽一区二区三区| 欧美肥妇free| 日韩精品福利网| 5858s免费视频成人| 亚洲高清不卡在线| 欧美日韩在线播放三区| 亚洲电影一区二区| 欧美猛男gaygay网站| 丝袜美腿高跟呻吟高潮一区| 欧美日韩精品免费| 爽爽淫人综合网网站| 欧美少妇一区二区|