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

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

?? rte.js

?? 華東糧油電子交易市場網(wǎng)站源碼華東糧油電子交易市場網(wǎng)站源碼華東糧油電子交易市場網(wǎng)站源碼
?? 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_MODULE"))
     document.all("IMG_MODULE").value=parent.document.all("IMG_MODULE").value;
  if(parent.document.all("IMG_YM"))
     document.all("IMG_YM").value=parent.document.all("IMG_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:250px;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一区二区三区免费野_久草精品视频
欧美三级韩国三级日本一级| 另类小说综合欧美亚洲| 日韩免费一区二区| 欧美日韩一区中文字幕| 色狠狠av一区二区三区| fc2成人免费人成在线观看播放| 日本欧美一区二区| 国产精品久久久久久久久动漫| 欧洲av一区二区嗯嗯嗯啊| 99久久夜色精品国产网站| 97久久人人超碰| 色综合天天在线| 在线视频你懂得一区| 欧洲国内综合视频| 日韩一区国产二区欧美三区| 91麻豆精品91久久久久久清纯| 正在播放一区二区| 欧美三电影在线| 久久久亚洲综合| 亚洲色图在线播放| 日韩精品乱码免费| 丰满少妇在线播放bd日韩电影| 九色综合国产一区二区三区| 国产美女精品一区二区三区| 成人av免费网站| 欧美日韩亚州综合| 在线国产电影不卡| 欧美日韩在线播放三区四区| 91在线精品秘密一区二区| 3atv在线一区二区三区| 中文字幕在线观看不卡视频| 午夜影院久久久| 福利一区二区在线| 欧美猛男超大videosgay| 久久久久久久一区| 日韩精品电影一区亚洲| 日本人妖一区二区| av网站免费线看精品| 3atv在线一区二区三区| 亚洲丝袜精品丝袜在线| 精品一区二区三区欧美| 91久久国产最好的精华液| 久久久精品日韩欧美| 九九精品视频在线看| 欧美日韩免费高清一区色橹橹 | 337p日本欧洲亚洲大胆色噜噜| ...av二区三区久久精品| 久久精品国产精品亚洲红杏| 在线一区二区观看| 国产精品区一区二区三区| 国产91丝袜在线播放九色| 日韩欧美亚洲另类制服综合在线| 亚洲第一精品在线| 欧美喷潮久久久xxxxx| 亚洲高清免费视频| 91黄色在线观看| 中文字幕va一区二区三区| 亚洲国产中文字幕| 欧美巨大另类极品videosbest| 亚洲影视资源网| 制服视频三区第一页精品| 丝袜美腿亚洲综合| 欧美日韩综合在线免费观看| 亚洲线精品一区二区三区| 7777精品伊人久久久大香线蕉的 | 99精品黄色片免费大全| 亚洲欧美日韩国产一区二区三区| 不卡的av中国片| 亚洲精品乱码久久久久| 欧美性猛交xxxxxx富婆| 久久99国产精品久久99果冻传媒| 日韩欧美中文字幕制服| 懂色av一区二区三区免费看| 亚洲一区免费观看| 久久久99久久| 在线成人高清不卡| 国产成人自拍在线| 免费日本视频一区| 中文字幕一区二区三区在线不卡 | 亚洲不卡在线观看| 中文字幕精品—区二区四季| 91精品婷婷国产综合久久| 成人免费看黄yyy456| 九一九一国产精品| 亚洲va欧美va国产va天堂影院| 欧美日韩国产成人在线91| 久久电影网电视剧免费观看| 伊人色综合久久天天| 国产免费久久精品| 337p日本欧洲亚洲大胆色噜噜| 色菇凉天天综合网| 久久99精品久久久久久| 蜜臀久久久99精品久久久久久| 亚洲老司机在线| 亚洲男人的天堂在线aⅴ视频| 国产亚洲一区二区在线观看| 精品国产伦一区二区三区观看体验 | 七七婷婷婷婷精品国产| 亚洲国产日韩在线一区模特| 天堂午夜影视日韩欧美一区二区| 中文字幕一区二区在线播放| 国产精品对白交换视频| 欧美一级理论性理论a| 日韩欧美一级精品久久| 26uuu国产电影一区二区| 国产欧美日本一区二区三区| 精品国产制服丝袜高跟| 欧美韩日一区二区三区| 国产精品久久网站| 亚洲一二三区不卡| 免费成人在线网站| 不卡的av电影| 555www色欧美视频| 久久精品一区蜜桃臀影院| 亚洲免费伊人电影| 亚洲电影在线免费观看| 日本成人在线电影网| 国产精品羞羞答答xxdd| 欧美在线免费播放| 日韩亚洲欧美在线| 91精品国产综合久久精品图片| 6080午夜不卡| 亚洲日本成人在线观看| 秋霞成人午夜伦在线观看| 成人激情文学综合网| 欧美日韩国产成人在线91| 日韩一区二区三区免费看| 亚洲一区二区三区影院| 在线欧美小视频| 中文字幕综合网| 91在线视频播放地址| 中文字幕精品一区| 懂色中文一区二区在线播放| 久久九九99视频| 国产91丝袜在线播放| 国产亚洲一二三区| 成人一区二区三区视频在线观看 | 中文字幕亚洲成人| 91蜜桃视频在线| 亚洲va欧美va人人爽| 欧美性高清videossexo| 天天综合色天天| 日韩一区二区三区视频在线 | 精品久久人人做人人爰| 久久99日本精品| 国产无遮挡一区二区三区毛片日本| 国产一区二区h| 日韩一区欧美一区| 欧美精品少妇一区二区三区| 日韩中文字幕区一区有砖一区 | 亚洲国产另类av| 4438成人网| av一区二区三区四区| 亚洲天堂成人网| 欧美三级午夜理伦三级中视频| 丝袜美腿亚洲一区| 欧美国产乱子伦| 91麻豆精品国产91久久久使用方法| 国产成人精品三级| 日韩精品一二三四| 亚洲乱码一区二区三区在线观看| 欧美一区二区三区四区在线观看| 成人午夜碰碰视频| 激情小说欧美图片| 丝袜a∨在线一区二区三区不卡| 国产精品美女久久久久久久| 日韩欧美一区二区久久婷婷| 一本到不卡精品视频在线观看| 精品影院一区二区久久久| 午夜私人影院久久久久| 亚洲女人的天堂| 国产午夜久久久久| 国产午夜久久久久| 久久久久国产成人精品亚洲午夜| 欧美人妇做爰xxxⅹ性高电影| 91一区一区三区| 色哦色哦哦色天天综合| 91在线观看高清| 欧美在线一区二区| 欧美日本在线播放| 久久亚洲影视婷婷| 日韩免费高清av| 久久网站最新地址| 国产亚洲综合av| 中文字幕av一区二区三区高| 久久久影院官网| 亚洲三级在线看| 日本亚洲三级在线| 国产乱人伦偷精品视频不卡| 国产99久久久国产精品潘金 | 亚洲人成网站影音先锋播放| 亚洲综合一区二区三区| 久久99热狠狠色一区二区| k8久久久一区二区三区| 欧美日韩久久一区| 精品久久久久久最新网址| 亚洲综合色成人| 首页国产欧美日韩丝袜| 日韩在线卡一卡二| 日本高清不卡视频|