Ver código fonte

ueditor 编辑器表格边框修复

长阳分支推送专用
liangkun 2 anos atrás
pai
commit
160b25c8dc
3 arquivos alterados com 13 adições e 23 exclusões
  1. +10
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/ueditor/ueditor.all.js
  2. +1
    -18
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/ueditor/ueditor.all.min.js
  3. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Shared/_Form.cshtml

+ 10
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/ueditor/ueditor.all.js Ver arquivo

@@ -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);


+ 1
- 18
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/ueditor/ueditor.all.min.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Shared/_Form.cshtml Ver arquivo

@@ -35,7 +35,8 @@
@*<script src="~/Content/datepicker/WdatePicker.js"></script>*@
<script src="~/Content/ueditor/ueditor.config.js"></script>
<script src="~/Content/jquery/plugin/jqprint/jQuery.print.js"></script>
<script src="~/Content/ueditor/ueditor.all.min.js"></script>
@*<script src="~/Content/ueditor/ueditor.all.min.js"></script>*@
<script src="~/Content/ueditor/ueditor.all.js"></script>
<script src="~/Content/ueditor/lang/zh-cn/zh-cn.js"></script>

<!--[if lt IE 9]>


Carregando…
Cancelar
Salvar