|
|
@@ -19831,7 +19831,13 @@ UE.plugins['video'] = function (){ |
|
|
|
utils.each(domUtils.getElementsByTagName(table,'td'),function(td){ |
|
|
|
td.style.borderWidth = '1px'; |
|
|
|
td.style.borderStyle = 'solid'; |
|
|
|
}) |
|
|
|
}); |
|
|
|
//增加下面一段 |
|
|
|
utils.each(domUtils.getElementsByTagName(table, 'th'), function (th) { |
|
|
|
th.style.borderWidth = domUtils.getComputedStyle(th, "border-width"); |
|
|
|
th.style.borderStyle = 'solid'; |
|
|
|
th.style.borderColor = 'windowtext'; |
|
|
|
}); |
|
|
|
} |
|
|
|
}; |
|
|
|
function resetTdWidth(table, editor) { |
|
|
@@ -19990,9 +19996,9 @@ UE.plugins['table'] = function () { |
|
|
|
'table.noBorderTable td,table.noBorderTable th,table.noBorderTable caption{border:1px dashed #ddd !important}' + |
|
|
|
//插入的表格的默认样式 |
|
|
|
'table{margin-bottom:10px;border-collapse:collapse;display:table;}' + |
|
|
|
'td,th{padding: 5px 10px;border: 1px solid #DDD;}' + |
|
|
|
'td,th{padding: 5px 10px;border: 1px dashed #DDD;}' + |
|
|
|
'caption{border:1px dashed #DDD;border-bottom:0;padding:3px;text-align:center;}' + |
|
|
|
'th{border-top:1px solid #BBB;background-color:#F7F7F7;}' + |
|
|
|
'th{border-top:1px dashed #BBB;background-color:#F7F7F7;}' + |
|
|
|
'table tr.firstRow th{border-top-width:2px;}' + |
|
|
|
'.ue-table-interlace-color-single{ background-color: #fcfcfc; } .ue-table-interlace-color-double{ background-color: #f7faff; }' + |
|
|
|
'td p{margin:0;padding:0;}', me.document); |
|
|
@@ -20240,7 +20246,7 @@ UE.plugins['table'] = function () { |
|
|
|
} else { |
|
|
|
utils.each(tables, function (table) { |
|
|
|
removeStyleSize(table, true); |
|
|
|
domUtils.removeAttributes(table, ['style', 'border']); |
|
|
|
domUtils.removeAttributes(table, ['style']); |
|
|
|
utils.each(domUtils.getElementsByTagName(table, "td"), function (td) { |
|
|
|
if (isEmptyBlock(td)) { |
|
|
|
domUtils.fillNode(me.document, td); |
|
|
|