FTB_FreeTextBox.prototype.InsertDiv = function() {
var div = window.document.createElement("div");
div.style.width = "200px";
div.style.height = "200px";
div.style.border = "dotted 1px gray";
this.InsertElement(div);
};
FTB_FreeTextBox.prototype.EditStyle = function() {
// custom implimentation of GetParentElement() and GetSelection() and GetRange()
el = this.GetParentElement();
this.EditElementStyle(el);
};
FTB_FreeTextBox.prototype.EditElementStyle = function(el) {
var styleWin = window.open("","propWin","width=530,height=420,status=0,toolbars=0");
if (styleWin) {
styleWin.focus();
} else {
alert("Please turn off your PopUp blocking software");
return;
}
//return;
html = FTB_StyleEditorHtml;
styleWin.document.body.innerHTML = '';
styleWin.document.open();
styleWin.document.write( html );
styleWin.document.close();
launchParameters = new Object();
launchParameters['ftb'] = this;
launchParameters['element'] = el;
styleWin.launchParameters = launchParameters;
styleWin.load();
};
/* START: Table Functions
These functions are derived from HTMLAREA who
gave permission for them to be used in FreeTextBox
- Thanks HTMLAREA!!
----------------------------------------------- */
FTB_FreeTextBox.prototype.InsertTableColumnBefore = function() {
this.InsertTableColumn(false);
};
FTB_FreeTextBox.prototype.InsertTableColumnAfter = function() {
this.InsertTableColumn(true);
};
FTB_FreeTextBox.prototype.InsertTableColumn = function(after) {
var td = this.GetNearest("td");
if (!td) {
return;
}
var rows = td.parentNode.parentNode.rows;
var index = td.cellIndex;
for (var i = rows.length; --i >= 0;) {
var tr = rows[i];
var otd = this.designEditor.document.createElement("td");
otd.innerHTML = (FTB_Browser.isIE) ? "" : "<br />";
//if last column and insert column after is select append child
if (index==tr.cells.length-1 && after) {
tr.appendChild(otd);
} else {
var ref = tr.cells[index + ((after) ? 1 : 0)]; // 0
tr.insertBefore(otd, ref);
}
}
};
FTB_FreeTextBox.prototype.InsertTableRowBefore = function() {
this.InsertTableRow(false);
};
FTB_FreeTextBox.prototype.InsertTableRowAfter = function() {
this.InsertTableRow(true);
};
FTB_FreeTextBox.prototype.InsertTableRow = function(after) {
var tr = this.GetNearest("tr");
if (!tr) return;
var otr = tr.cloneNode(true);
this.ClearRow(otr);
tr.parentNode.insertBefore(otr, ((after) ? tr.nextSibling : tr));
};
FTB_FreeTextBox.prototype.DeleteTableColumn = function() {
var td = this.GetNearest("td");
if (!td) {
return;
}
var index = td.cellIndex;
if (td.parentNode.cells.length == 1) {
return;
}
// set the caret first to a position that doesn't disappear
this.SelectNextNode(td);
var rows = td.parentNode.parentNode.rows;
for (var i = rows.length; --i >= 0;) {
var tr = rows[i];
tr.removeChild(tr.cells[index]);
}
};
FTB_FreeTextBox.prototype.DeleteTableRow = function() {
var tr = this.GetNearest("tr");
if (!tr) {
return;
}
var par = tr.parentNode;
if (par.rows.length == 1) {
return;
}
// set the caret first to a position that doesn't disappear.
this.SelectNextNode(tr);
par.removeChild(tr);
};
// helper table
FTB_FreeTextBox.prototype.ClearRow = function(tr) {
var tds = tr.getElementsByTagName("td");
for (var i = tds.length; --i >= 0;) {
var td = tds[i];
td.rowSpan = 1;
td.innerHTML = (FTB_Browser.isIE) ? "" : "<br />";
}
};
FTB_FreeTextBox.prototype.SplitRow = function(td) {
var n = parseInt("" + td.rowSpan);
var nc = parseInt("" + td.colSpan);
td.rowSpan = 1;
tr = td.parentNode;
var itr = tr.rowIndex;
var trs = tr.parentNode.rows;
var index = td.cellIndex;
while (--n > 0) {
tr = trs[++itr];
var otd = editor._doc.createElement("td");
otd.colSpan = td.colSpan;
otd.innerHTML = mozbr;
tr.insertBefore(otd, tr.cells[index]);
}
};
FTB_FreeTextBox.prototype.SplitCol = function(td) {
var nc = parseInt("" + td.colSpan);
td.colSpan = 1;
tr = td.parentNode;
var ref = td.nextSibling;
while (--nc > 0) {
var otd = editor._doc.createElement("td");
otd.rowSpan = td.rowSpan;
otd.innerHTML = mozbr;
tr.insertBefore(otd, ref);
}
}
FTB_FreeTextBox.prototype.SplitCell = function(td) {
var nc = parseInt("" + td.colSpan);
splitCol(td);
var items = td.parentNode.cells;
var index = td.cellIndex;
while (nc-- > 0) {
this.SplitRow(items[index++]);
}
};
/* FORM Functions
-------------------------------------- */
FTB_FreeTextBox.prototype.IsInForm = function() {
return (this.GetNearest("form")) ? true : false ;
};
FTB_FreeTextBox.prototype.InsertForm = function() {
var form = window.document.createElement("form");
this.InsertElement(form);
};
FTB_FreeTextBox.prototype.InsertCheckBox = function() {
this.InsertInputElement("","checkbox");
};
FTB_FreeTextBox.prototype.InsertTextBox = function() {
this.InsertInputElement("","text");
};
FTB_FreeTextBox.prototype.InsertRadioButton = function() {
this.InsertInputElement("","radio");
};
FTB_FreeTextBox.prototype.InsertButton = function() {
this.InsertInputElement("","button");
};
FTB_FreeTextBox.prototype.InsertDropDownList = function() {
var select = window.document.createElement("select");
this.InsertElement(select);
};
FTB_FreeTextBox.prototype.InsertTextArea = function() {
var textarea = window.document.createElement("textarea");
this.InsertElement(textarea);
};
FTB_FreeTextBox.prototype.InsertInputElement = function(id,type) {
var input = window.document.createElement("input");
input.id = id;
input.type = type;
this.InsertElement(input);
}
/* Color picker Functions
-------------------------------------- */
FTB_FreeTextBox.prototype.FontForeColorPicker = function() {
this.LaunchColorPickerWindow('forecolor');
};
FTB_FreeTextBox.prototype.FontBackColorPicker = function() {
this.LaunchColorPickerWindow('backcolor');
};
FTB_FreeTextBox.prototype.LaunchColorPickerWindow = function(commandName, startValue) {
var pickerWin = window.open("","colorPickerWin","width=290,height=180");
if (pickerWin) {
pickerWin.focus();
} else {
alert("Please turn off your PopUp blocking software");
return;
}
pickerWin.document.body.innerHTML = '';
pickerWin.document.open();
pickerWin.document.write(FTB_ColorPickerHtml);
pickerWin.document.close();
launchParameters = new Object();
launchParameters['ftb'] = this;
launchParameters['commandName'] = commandName;
pickerWin.launchParameters = launchParameters;
pickerWin.load();
};
FTB_FreeTextBox.prototype.InsertImage = function() {
var imageWin = window.open("","imageWin","width=500,height=310");
if (imageWin) {
imageWin.focus();
} else {
alert("Please turn off your PopUp blocking software");
return;
}
//imageWin.document.body.innerHTML = '';
imageWin.document.open();
imageWin.document.write(FTB_ImagePopUpHtml);
imageWin.document.close();
launchParameters = new Object();
launchParameters['ftb'] = this;
imageWin.launchParameters = launchParameters;
imageWin.load();
};
/* Misc Pro features
--------------------------------------- */
FTB_FreeTextBox.prototype.WordClean = function() {
var text = this.designEditor.document.body.innerHTML;
text=text.replace(/<FONT[^>]*>/gi,"");
text=text.replace(/<\/FONT>/gi,"");
text=text.replace(/<U>/gi,"");
text=text.replace(/<\/U>/gi,"");
text=text.replace(/<H[^>]*>/gi,"");
text=text.replace(/<\/H[^>]*>/gi,"");
// save BRs
text=text.replace(/<BR[^>]*>/gi,"&linebreak");
// Change these tags.
text=text.replace(/<B[^>]*>/gi,"&bold");
text=text.replace(/<\/B[^>]*>/gi,"&cbold");
text=text.replace(/<STRONG[^>]*>/gi,"&bold");
text=text.replace(/<\/STRONG[^>]*>/gi,"&cbold");
text=text.replace(/<I[^>]*>/gi,"
没有合适的资源?快使用搜索试试~ 我知道了~
程序源码 企业自助建站_workshop(ASP.NET源码).rar
共327个文件
gif:223个
xml:27个
cs:14个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 146 浏览量
2023-03-13
21:50:37
上传
评论
收藏 1001KB RAR 举报
温馨提示
免责声明:资料部分来源于合法的互联网渠道收集和整理,部分自己学习积累成果,供大家学习参考与交流。收取的费用仅用于收集和整理资料耗费时间的酬劳。 本人尊重原创作者或出版方,资料版权归原作者或出版方所有,本人不对所涉及的版权问题或内容负法律责任。如有侵权,请举报或通知本人删除。
资源推荐
资源详情
资源评论
收起资源包目录
程序源码 企业自助建站_workshop(ASP.NET源码).rar (327个子文件)
Global.asax 75B
left.ascx 1012B
bot.ascx 989B
top.ascx 871B
index.aspx 5KB
textlist.aspx 3KB
column_2.aspx 3KB
column_1.aspx 3KB
textedit.aspx 3KB
textadd.aspx 2KB
workshopview.aspx 2KB
index.aspx 2KB
pass.aspx 1KB
Web.config 4KB
column_2.aspx.cs 5KB
index.aspx.cs 4KB
column_1.aspx.cs 4KB
textedit.aspx.cs 4KB
textadd.aspx.cs 4KB
textlist.aspx.cs 3KB
index.aspx.cs 2KB
top.ascx.cs 2KB
AssemblyInfo.cs 2KB
pass.aspx.cs 2KB
workshopview.aspx.cs 2KB
Global.asax.cs 1KB
left.ascx.cs 1KB
bot.ascx.cs 853B
workshop.csproj 13KB
workshop.css 4KB
ftb.css 37B
freetextbox.dll 708KB
workshop.dll 44KB
about_2.gif 9KB
about_1.gif 9KB
business.gif 9KB
news_1.gif 8KB
buttons.gif 7KB
logo1.gif 6KB
normal.gif 6KB
logo3.gif 6KB
logo.gif 4KB
folder.big.gif 2KB
menu.gif 1KB
swf.gif 1KB
insertimagefromgallery.gif 1024B
mode.design.gif 1001B
edittablerow.gif 977B
inserttime.gif 901B
removeformat.gif 896B
unlink.gif 895B
insertrule.gif 875B
justifyfull.over.gif 868B
bold.gif 865B
justifyfull.gif 859B
justifyfull.gif 857B
toolbar.horizontal.start.gif 845B
toolbar.horizontal.background.gif 835B
toolbar.vertical.background.gif 827B
edittablecell.gif 634B
edittable.gif 632B
editstyle.gif 599B
editstyle.gif 599B
preview.gif 587B
preview.gif 587B
folder.up.gif 493B
wordclean.over.gif 444B
wordclean.gif 444B
wordclean.gif 444B
createlink.gif 429B
image.gif 413B
mergecolumns.gif 400B
splitcells.gif 400B
paste.gif 392B
print.gif 391B
mergerows.gif 391B
mergecells.gif 385B
save.gif 384B
inserttable.gif 380B
folder.small.gif 377B
copy.gif 373B
edittable.gif 370B
netspell.gif 369B
iespellcheck.gif 369B
spellcheck.gif 369B
deletetablerow.gif 344B
cut.gif 342B
inserttablecolumn.gif 337B
undo.gif 337B
redo.gif 336B
inserttablerow.gif 332B
deletetablecolumn.gif 331B
inserttablerowafter.gif 330B
inserttablecolumnbefore.gif 330B
inserttablerowbefore.gif 330B
inserttablecolumnafter.gif 329B
insertdate.gif 301B
insertimage.gif 294B
wordcount.gif 288B
toolbarbutton.background.gif 287B
共 327 条
- 1
- 2
- 3
- 4
资源评论
大富大贵7
- 粉丝: 311
- 资源: 8869
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功