KE表格修改
This commit is contained in:
parent
5ea618b520
commit
9b5cd8f880
|
@ -228,8 +228,10 @@ KindEditor.plugin('table', function(K) {
|
|||
}
|
||||
if (borderColor !== '') {
|
||||
table.attr('borderColor', borderColor);
|
||||
table.css("border-color",borderColor);
|
||||
} else {
|
||||
table.removeAttr('borderColor');
|
||||
table.css("border-color","none");
|
||||
}
|
||||
self.hideDialog().focus();
|
||||
self.cmd.range.moveToBookmark(bookmark);
|
||||
|
@ -251,7 +253,10 @@ KindEditor.plugin('table', function(K) {
|
|||
if (border !== ''){
|
||||
style += 'border:'+border+'px solid;';
|
||||
}
|
||||
|
||||
if (borderColor !== ''){
|
||||
style += 'border-color:'+borderColor+';';
|
||||
}
|
||||
style += 'table-layout: '+'fixed;';
|
||||
var html = '<table';
|
||||
if (style !== '') {
|
||||
html += ' style="' + style + '"';
|
||||
|
@ -278,7 +283,7 @@ KindEditor.plugin('table', function(K) {
|
|||
for (var i = 0; i < rows; i++) {
|
||||
html += '<tr>';
|
||||
for (var j = 0; j < cols; j++) {
|
||||
html += '<td style="border:solid windowtext 1.0px;" >' + (K.IE ? ' ' : '<br />') + '</td>';
|
||||
html += '<td style="border:solid windowtext 1.0px;text-overflow:inherit;overflow: hidden;white-space: nowrap" >' + (K.IE ? ' ' : '<br />') + '</td>';
|
||||
}
|
||||
html += '</tr>';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue