[BETA] [????] ???? Almsamim WYSIWYG v0.0.8 ??????
مرسل: الاثنين يناير 26, 2009 3:59 pm
??? ??? ?????? ?? ???? ?? ???
???? ???? ??????? ? ???? ??????????
???? ???? ??????? ? ???? ??????????
الدعم العربي لمنتديات phpBB
http://www.phpbbarabia.com/community/
??? ??? ????? ???? ??? ?? ??????alhitary كتب:?? ????? ???? ?? ???? ??? ??? ?????? ???????
??? ??? ??? ????? ????? ????? ???? ?????? ???? ??? ??????? ????? ?????
????? ????? ?????
????? ???? ?? ??? ?? ???? ???? ??? ??? ??? ?? ????? ??? ?????????
?????? ?? ??????? ???????? ?? ??? ????
( ???? ?? ???? ????? ?? ?????? ?? ???? ??????? ???? ????? ?? ?????? , ??? ?????? ?? ??? ??? ???? ???? ??? ???? )
كود: تحديد الكل
/*** B O X ( C U S T O M ) => T A B L E ***/
function boxShow_Table()
{
this.boxHide()
this.saveSelection()
boxTable2.document.body.document.all.inpActiveEditor.innerText = this.oName;
//Additional
var divBorderColorPick = boxTable2.document.body.document.all.divBorderColorPick
var divBgColorPick = boxTable2.document.body.document.all.divBgColorPick
var divBgColor2Pick = boxTable2.document.body.document.all.divBgColor2Pick
var divBorderColor2Pick = boxTable2.document.body.document.all.divBorderColor2Pick
var divCellBgColorPick = boxTable2.document.body.document.all.divCellBgColorPick
//Init Values - For INSERT Tab [#]
boxTable2.setInpValue("inpRows",2)
boxTable2.setInpValue("inpCols",2)
boxTable2.setInpValue("inpWidth","")
boxTable2.setInpValue("inpHeight","")
boxTable2.objColor1.setColor('')//col obj.
boxTable2.setInpValue("inpBgImage","")
boxTable2.setInpValue("inpBorder",1)
boxTable2.objColor2.setColor('')
boxTable2.document.body.document.all.inpTblAlign.value = "";//dropdown
boxTable2.setInpValue("inpPadding",0)
boxTable2.setInpValue("inpSpacing",0)
var oSel = this.Sel;
var sType = this.SelType;
var oBlock = (oSel.parentElement != null ? this.GetElement(oSel.parentElement(),"TABLE") : this.GetElement(oSel.item(0),"TABLE"))
if (oBlock!=null) //If inside existing table
{
//Init Values - For EDIT Tab [##] => Get existing table properties
boxTable2.document.body.document.all.inpTblAlign2.value = oBlock.align//dropdown
var st = oBlock.width
if(st.indexOf("%")!=-1)
{
boxTable2.setInpValue("inpWidth2",st.substring(0,st.indexOf("%")))//remove last %
boxTable2.document.body.document.all.inpWidth2Me.value = "%";//dropdown
}
else
{
boxTable2.setInpValue("inpWidth2",oBlock.width)
boxTable2.document.body.document.all.inpWidth2Me.value = "";//dropdown
}
var st2 = oBlock.height
if(st2.indexOf("%")!=-1)
{
boxTable2.setInpValue("inpHeight2",st2.substring(0,st2.indexOf("%")))//remove last %
boxTable2.document.body.document.all.inpHeight2Me.value = "%";//dropdown
}
else
{
boxTable2.setInpValue("inpHeight2",oBlock.height)
boxTable2.document.body.document.all.inpHeight2Me.value = "";//dropdown
}
boxTable2.setInpValue("inpPadding2",oBlock.cellPadding)
boxTable2.setInpValue("inpSpacing2",oBlock.cellSpacing)
boxTable2.setInpValue("inpBorder2",oBlock.border)
boxTable2.objColor4.setColor(oBlock.borderColor)//col obj. (oBlock.borderColor).substring(1)
boxTable2.setInpValue("inpBgImage2",oBlock.background)
boxTable2.objColor3.setColor(oBlock.bgColor)
if(oSel.parentElement != null)//yg dipilih text, bukan control(=table)
{
//Init Colors
// divCellBgColorPick.style.display = "none";
//Init Tabs
boxTable2.TabEditCell()
//Init Values - For CELL Tab => Get existing cell properties
var oTD = GetElement(oSel.parentElement(),"TD");
if(oTD==null)return; //jika yg di select adl text tapi meliputi lebih dari satu cell
var st3 = oTD.width //HTML : width
if(st3.indexOf("%")!=-1)
{
boxTable2.setInpValue("inpCellWidth",st3.substring(0,st3.indexOf("%")))//remove last %
boxTable2.document.body.document.all.inpCellWidthMe.value = "%";//dropdown
}
else
{
boxTable2.setInpValue("inpCellWidth",oTD.width)
boxTable2.document.body.document.all.inpCellWidthMe.value = "";//dropdown
}
var st4 = oTD.height //HTML : height
if(st4.indexOf("%")!=-1)
{
boxTable2.setInpValue("inpCellHeight",st4.substring(0,st4.indexOf("%")))//remove last %
boxTable2.document.body.document.all.inpCellHeightMe.value = "%";//dropdown
}
else
{
boxTable2.setInpValue("inpCellHeight",oTD.height)
boxTable2.document.body.document.all.inpCellHeightMe.value = "";//dropdown
}
boxTable2.document.body.document.all.inpCellAlign.value = oTD.align;//dropdown
boxTable2.document.body.document.all.inpCellVAlign.value = oTD.vAlign;//dropdown
boxTable2.setInpValue("inpCellBgImage",oTD.background)//HTML : background
boxTable2.objColor5.setColor(oTD.bgColor)//HTML : bgColor
boxTable2.document.body.document.all.inpCellWrap.checked = !oTD.noWrap;
}
else
{
//Init Colors
// divBgColor2Pick.style.display = "none";
// divBorderColor2Pick.style.display = "none";
//Init Tabs
boxTable2.TabEditTable()
//Init Values - For EDIT Tab
//Already done [##]
}
}
else
{
//Init Colors
// divBorderColorPick.style.display = "none";
// divBgColorPick.style.display = "none";
//Init Tabs
boxTable2.TabInsertTable()
//Init Values - For INSERT Tab
//Already done [#]
}
this.boxDimension("boxTable2")
this.boxPosition("boxTable2")
document.all.boxTable2.style.zIndex = 2
document.all.boxTable2.style.visibility = ""
document.all.boxTable2.focus()
}
function showBorder()
{
this.boxHide();
var oEditor = eval("idContent"+this.oName);
var oTables = oEditor.document.getElementsByTagName("TABLE");
if(this.IsBorderShow)
{
for (i=0;i<oTables.length;i++)
{
if(oTables[i].border == 0)
{
oTables[i].runtimeStyle.borderWidth = "";
oTables[i].runtimeStyle.borderColor = "";
oTables[i].runtimeStyle.borderStyle = "";
oTables[i].runtimeStyle.borderCollapse = "";
for(j=0;j<oTables[i].getElementsByTagName("TD").length;j++)
{
oTables[i].getElementsByTagName("TD")[j].runtimeStyle.borderWidth = "";
oTables[i].getElementsByTagName("TD")[j].runtimeStyle.borderColor = "";
oTables[i].getElementsByTagName("TD")[j].runtimeStyle.borderStyle = "";
}
}
}
this.IsBorderShow = false;
}
else
{
for (i=0;i<oTables.length;i++)
{
if(oTables[i].border == 0)
{
oTables[i].runtimeStyle.borderWidth = 1;
oTables[i].runtimeStyle.borderColor = "#BCBCBC";
oTables[i].runtimeStyle.borderStyle = "dotted";
oTables[i].runtimeStyle.borderCollapse = "separate";
for(j=0;j<oTables[i].getElementsByTagName("TD").length;j++)
oTables[i].getElementsByTagName("TD")[j].runtimeStyle.border = "#BCBCBC 1 dotted";
}
}
this.IsBorderShow = true;
}
}
??? ????? ???? ???? ??? ?????? ????Zero_Cool كتب:??? ?????? ???? ???? ??? ??????? ?? ???? ???? ?? ???????? ?
??? ?????? ????? ??? :
Forbidden
Your client does not have permission to get URL /files/Almsamim%20WYSIWYG%20phpBB3%20v0.0.8.zip from this server. (Client IP address: 88.86.31.163)
You are accessing this page from a forbidden country.
??? ???? ??? ??? ???? ???? ? ?? ?? ???? ?? ???????? ???? ???? ???? ?????????? ??????
????? ??? ?? ?????? ?????? ?????? ??? ?????? ??????? ???? ??? ??? ??????? ??????
???? ????: ??????? ???? ??????? .. ???? ?? ????? ????? ???? ????? ??? ????? ?????? .. ??? ???? ????? ??? ?????? ?
????? ??? ??? ?? ?? ???? ???? ???? ?? ????? ??? ????????? ?
??? ???? ?????