function insertTable()
{
var arr = showModalDialog("HTMLEdit/table.htm","","font-family:Verdana; font-size:10; dialogWidth:20em; dialogHeight:20em;status:0");
function insertTable()
{
var arr = showModalDialog("HTMLEdit/table.htm","","font-family:Verdana; font-size:10; dialogWidth:20em; dialogHeight:20em;status:0");
例子:
function doInsertTable(){
var dotable=showModalDialog("editor_table.htm",false,"dialogWidth:200px;dialogHeight:156px;status:0;");
if (dotable!=undefined){
//dotable为表格的html代码
doc.selection.createRange().pasteHTML(dotable);
}else{
return false;
}
Editor.focus();
}