📄 dynaform.js
字号:
selectedAttachmentUpload = eWebEditor.document.selection.createRange()(0);
if ((selectedAttachmentUpload.type!=null)&&(selectedAttachmentUpload.type.toUpperCase() == "ATTACHMENTUPLOAD")){
return true;
}
}
}
}
// ??????????????
function AttachmentUploadProp(){
if (isAttachmentUploadSelected()){
ShowDialog('dialog/attachmentupload.htm?action=modify', 320, 250, true);
}
else {
ShowDialog('dialog/attachmentupload.htm?action=new', 320, 250, true);
}
}
//HTML??????
var selectedHTMLEditorField;
// ????????HTML??????
function isHTMLEditorFieldSelected() {
if (eWebEditor.document.selection.type == "Control") {
var oControlRange = eWebEditor.document.selection.createRange();
if (oControlRange(0).tagName.toUpperCase() == "IMG") {
selectedHTMLEditorField = eWebEditor.document.selection.createRange()(0);
if ((selectedHTMLEditorField.type!=null)&&(selectedHTMLEditorField.type.toUpperCase() == "HTMLEDITORFIELD")){
return true;
}
}
}
}
// HTML??????????
function HTMLEditorFieldProp(){
if (isHTMLEditorFieldSelected()){
ShowDialog('dialog/htmleditorfield.htm?action=modify', 340, 250, true);
}
else {
ShowDialog('dialog/htmleditorfield.htm?action=new', 340, 250, true);
}
}
//Word??????
var selectedWordField;
// ????????Word??????
function isWordFieldSelected() {
if (eWebEditor.document.selection.type == "Control") {
var oControlRange = eWebEditor.document.selection.createRange();
if (oControlRange(0).tagName.toUpperCase() == "IMG") {
selectedWordField = eWebEditor.document.selection.createRange()(0);
if ((selectedWordField.type!=null)&&(selectedWordField.type.toUpperCase() == "WORDFIELD")){
return true;
}
}
}
}
// Word??????????
function WordFieldProp(){
if (isWordFieldSelected()){
ShowDialog('dialog/wordfield.htm?action=modify', 350, 250, true);
}
else {
ShowDialog('dialog/wordfield.htm?action=new', 350, 250, true);
}
}
//Handwriting??????
var selectedHandwritingField;
// ????????Handwriting??????
function isHandwritingFieldSelected() {
if (eWebEditor.document.selection.type == "Control") {
var oControlRange = eWebEditor.document.selection.createRange();
if (oControlRange(0).tagName.toUpperCase() == "IMG") {
selectedHandwritingField = eWebEditor.document.selection.createRange()(0);
if ((selectedHandwritingField.type!=null)&&(selectedHandwritingField.type.toUpperCase() == "HANDWRITINGFIELD")){
return true;
}
}
}
}
// Handwriting??????????
function HandwritingFieldProp(){
if (isHandwritingFieldSelected()){
ShowDialog('dialog/handwritingfield.htm?action=modify', 320, 250, true);
}
else {
ShowDialog('dialog/handwritingfield.htm?action=new', 320, 250, true);
}
}
// ????????????????????
function CMSListTagWizard(){
siteobj = parent.document.all('siteid');
siteid = siteobj.value;
sitename = siteobj.options[siteobj.selectedIndex].text;
channelid = parent.document.all('channelid').value;
channelname = parent.document.all('_channelname').value;
url = 'dialog/cms_list_tag.jsp?action=new';
url = url + '&siteid=' + siteid;
url = url + '&sitename=' + sitename;
url = url + '&channelid=' + channelid;
url = url + '&channelname=' + channelname;
ShowDialog(url, 640, 350, true);
}
// ????????????????????
function CMSContentTagWizard(){
siteobj = parent.document.all('siteid');
siteid = siteobj.value;
sitename = siteobj.options[siteobj.selectedIndex].text;
channelid = parent.document.all('channelid').value;
channelname = parent.document.all('_channelname').value;
url = 'dialog/cms_content_tag.jsp?action=new';
url = url + '&siteid=' + siteid;
url = url + '&sitename=' + sitename;
url = url + '&channelid=' + channelid;
url = url + '&channelname=' + channelname;
ShowDialog(url, 320, 200, true);
}
// ????????????????????????
function CMSContentPageDivTagWizard(){
siteobj = parent.document.all('siteid');
siteid = siteobj.value;
sitename = siteobj.options[siteobj.selectedIndex].text;
channelid = parent.document.all('channelid').value;
channelname = parent.document.all('_channelname').value;
url = 'dialog/cms_contentpages_tag.jsp?action=new';
url = url + '&siteid=' + siteid;
url = url + '&sitename=' + sitename;
url = url + '&channelid=' + channelid;
url = url + '&channelname=' + channelname;
ShowDialog(url, 320, 180, true);
}
// ????????????????????
function CMSContentRelateDocumentWizard(){
siteobj = parent.document.all('siteid');
siteid = siteobj.value;
sitename = siteobj.options[siteobj.selectedIndex].text;
channelid = parent.document.all('channelid').value;
channelname = parent.document.all('_channelname').value;
url = 'dialog/cms_contentrelate_tag.jsp?action=new';
url = url + '&siteid=' + siteid;
url = url + '&sitename=' + sitename;
url = url + '&channelid=' + channelid;
url = url + '&channelname=' + channelname;
ShowDialog(url, 320, 280, true);
}
//????????????
function CMSLinkTagWizard(){
siteobj = parent.document.all('siteid');
siteid = siteobj.value;
sitename = siteobj.options[siteobj.selectedIndex].text;
url = 'dialog/cms_link_tag.jsp?action=new';
url = url + '&siteid=' + siteid;
url = url + '&sitename=' + sitename;
ShowDialog(url, 410, 260, true);
}
// ????????Include????????
function CMSIncludeWizard(){
siteobj = parent.document.all('siteid');
siteid = siteobj.value;
sitename = siteobj.options[siteobj.selectedIndex].text;
channelid = parent.document.all('channelid').value;
channelname = parent.document.all('_channelname').value;
url = 'dialog/cms_include_tag.jsp?action=new';
url = url + '&siteid=' + siteid;
url = url + '&sitename=' + sitename;
url = url + '&channelid=' + channelid;
url = url + '&channelname=' + channelname;
ShowDialog(url, 650, 430, true);
}
// view dialog field
var selectedViewDialogField;
/*is view dialog field selected
return(true|false)*/
function isViewDialogFieldSelected() {
if (eWebEditor.document.selection.type == "Control") {
var oControlRange = eWebEditor.document.selection.createRange();
if (oControlRange(0).tagName.toUpperCase() == "IMG") {
selectedViewDialogField = eWebEditor.document.selection.createRange()(0);
if ((selectedViewDialogField.type!=null)&&(selectedViewDialogField.type.toUpperCase() == "VIEWDIALOGFIELD")){
return true;
}
}
}
}
// view dialog field prop
function ViewDialogFieldProp(){
var moduleid = parent.document.all('moduleid').value;
if (isViewDialogFieldSelected()){
url = 'dialog/viewdialogfield.jsp?action=modify';
url += '&moduleid=' + moduleid;
ShowDialog(url, 510, 290, true);
}
else {
url = 'dialog/viewdialogfield.jsp?action=new';
url = url + '&moduleid=' + moduleid;
ShowDialog(url, 510, 290, true);
}
}
// tag menu field
var selectedTagField;
/*is tag menu field selected
return(true|false)*/
function isTagFieldSelected() {
if (eWebEditor.document.selection.type == "Control") {
var oControlRange = eWebEditor.document.selection.createRange();
if (oControlRange(0).tagName.toUpperCase() == "IMG") {
selectedTagField = eWebEditor.document.selection.createRange()(0);
if ((selectedTagField.type!=null)&&(selectedTagField.type.toUpperCase() == "TAGFIELD")){
return true;
}
}
}
}
// tag menu field prop
function TagFieldProp(){
var moduleid = parent.document.all('moduleid').value;
if (isTagFieldSelected()){
url = 'dialog/tagfield.jsp?action=modify';
url += '&moduleid=' + moduleid;
ShowDialog(url, 510, 290, true);
}
else {
url = 'dialog/tagfield.jsp?action=new';
url += '&moduleid=' + moduleid;
ShowDialog(url, 510, 290, true);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -