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