?? htmltextbox.resx
字號:
<?xml version="1.0" encoding="utf-8" ?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="ResMimeType">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="Version">
<value>1.0.0.0</value>
</resheader>
<resheader name="Reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="Writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="HtmlTextBoxMshtmlStyles"><![CDATA[
<style>
div.FTB_StatusBar {
text-align: left;
padding:1px;
width:100px;
height: 100%;
border:1 solid #808080;
font: 8pt MS Sans Serif;
}
select.FTB_Select {
font: 10pt Arial;
}
</style>
]]></data>
<data name="HtmlTextBoxMshtmlBaseScript"><![CDATA[
<script language="JavaScript">
// *******************************************
// Universal Editor Functions
// *******************************************
function FTB_CopyHtmlToHidden(editor,hiddenHtml,htmlmode) {
if (htmlmode) {
hiddenHtml.value = editor.document.body.innerText;
} else {
hiddenHtml.value = editor.document.body.innerHTML;
}
if (hiddenHtml.value == '<P> </P>') {
hiddenHtml.value = '';
}
}
function FTB_Format(editor,htmlmode,format) {
if (htmlmode) return;
editor.focus();
editor.document.execCommand(format,'',null);
}
function FTB_CheckTag(item,tagName) {
if (item.tagName.search(tagName)!=-1) {
return item;
}
if (item.tagName=='BODY') {
return false;
}
item=item.parentElement;
return FTB_CheckTag(item,tagName);
}
function FTB_CharBefore(sel) {
if (sel.move('character',-1) == -1) {
sel.expand('character');
return sel.text;
} else {
return 'start';
}
}
function FTB_CharAfter(sel) {
var sel2 = sel;
if (sel.expand('character')) {
sel2.move('character',1);
sel2.expand('character');
return sel2.text;
} else {
return 'end';
}
}
function FTB_CharBefore(r) {
if (r.move('character',-1) == -1) {
r.expand('character');
return r.text;
} else {
return 'start';
}
}
function FTB_CharAfter(r) {
var r2 = r;
if (r.expand('character')) {
r2.move('character',1);
r2.expand('character');
return r2.text;
} else {
return 'end';
}
}
function FTB_GetRangeReference(editor) {
editor.focus();
var objReference = null;
var RangeType = editor.document.selection.type;
var selectedRange = editor.document.selection.createRange();
switch(RangeType) {
case 'Control' :
if (selectedRange.length > 0 ) {
objReference = selectedRange.item(0);
}
break;
case 'None' :
objReference = selectedRange.parentElement();
break;
case 'Text' :
objReference = selectedRange.parentElement();
break;
}
return objReference
}
// ********************************************
// Style Functions
// ********************************************
function FTB_SetButtonStyle(buttonTD,style,checkstyle) {
if (buttonTD == null) return;
if (buttonTD.className != checkstyle)
buttonTD.className = style;
}
function FTB_GetClassSubName(className) {
underscore = className.indexOf("_");
if (underscore < 0) return className;
return className.substring(underscore+1);
}
function FTB_ButtonOver(theTD,editorname,imageOver,imageDown) {
FTB_SetButtonStyle(theTD,editorname+'_ButtonOver',null);
if(theTD.children.length && theTD.children[0].tagName == "IMG" && imageOver){
oldSrc = theTD.children[0].src;
if (oldSrc.indexOf('.over.') == -1) {
theTD.children[0].src=oldSrc.substring(0, oldSrc.length-4) + ".over.gif";
}
}
}
function FTB_ButtonOut(theTD,editorname,imageOver,imageDown) {
FTB_SetButtonStyle(theTD,editorname+'_ButtonNormal',null);
document.body.style.cursor = 'default';
if(theTD.children.length && theTD.children[0].tagName == "IMG"){
oldSrc = theTD.children[0].src;
if (oldSrc.indexOf('.over.') > 0) {
theTD.children[0].src=oldSrc.substring(0, oldSrc.length-9) + ".gif";
}
if (oldSrc.indexOf('.down.') > 0) {
theTD.children[0].src=oldSrc.substring(0, oldSrc.length-9) + ".gif";
}
}
}
function FTB_ButtonDown(theTD,editorname,imageOver,imageDown) {
document.body.style.cursor = 'default';
FTB_SetButtonStyle(theTD,editorname+'_ButtonDown',null);
if(theTD.children.length && theTD.children[0].tagName == "IMG" && imageDown == 1){
oldSrc = theTD.children[0].src;
if (oldSrc.indexOf('.over.') > 0) {
theTD.children[0].src=oldSrc.substring(0, oldSrc.length-9) + ".down.gif";
}
}
}
function FTB_ButtonUp(theTD,editorname,imageOver,imageDown) {
document.body.style.cursor = 'auto';
FTB_SetButtonStyle(theTD,editorname+'_ButtonDown',null);
if(theTD.children.length && theTD.children[0].tagName == "IMG" && imageOver == 1){
oldSrc = theTD.children[0].src;
if (oldSrc.indexOf('.over.') == -1) {
theTD.children[0].src=oldSrc.substring(0, oldSrc.length-4) + ".over.gif";
}
}
}
function FTB_SetActiveTab(theTD,editorname) {
parentTR = theTD.parentElement;
selectedTab = 1;
totalButtons = parentTR.cells.length-1;
for (var i=1;i< totalButtons;i++) {
parentTR.cells[i].className = editorname + "_TabOffRight";
if (theTD == parentTR.cells[i]) { selectedTab = i; }
}
if (selectedTab==1) {
parentTR.cells[0].className = editorname + "_StartTabOn";
} else {
parentTR.cells[0].className = editorname + "_StartTabOff";
parentTR.cells[selectedTab-1].className = editorname + "_TabOffLeft";
}
theTD.className = editorname + "_TabOn";
}
function FTB_TabOver() {
document.body.style.cursor='default';
}
function FTB_TabOut() {
document.body.style.cursor='auto';
}
</script>
]]></data>
<data name="HtmlTextBoxBasicEditorBase"><![CDATA[
<script language="JavaScript">
function FTB_CopyHtmlToDesign(designname, htmlname, textarea, htmlmode) {
designdiv = document.getElementById(designname);
htmlname = document.getElementById(htmlname);
//textarea = document.getElementById(textareaname);
designdiv.innerHTML = textarea.value;
}
function FTB_ChangeMode(designname, htmlname, textarea, htmlmode) {
designdiv = document.getElementById(designname);
htmldiv = document.getElementById(htmlname);
//textarea = document.getElementById(textareaname);
if (htmlmode) {
designdiv.innerHTML = textarea.value;
FTB_ShowHide(designname,htmlname);
} else {
textarea.value = designdiv.innerHTML;
FTB_ShowHide(htmlname,designname);
}
}
function FTB_ShowHide(showdiv,hidediv) {
show = document.getElementById(showdiv);
hide = document.getElementById(hidediv);
show.style.display = 'block';
hide.style.display = 'none';
}
</script>
]]></data>
</root>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -