KE表格修改

This commit is contained in:
yuanke 2016-03-10 11:28:56 +08:00
parent 5ea618b520
commit 9b5cd8f880
1 changed files with 7 additions and 2 deletions

View File

@ -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 ? '&nbsp;' : '<br />') + '</td>';
html += '<td style="border:solid windowtext 1.0px;text-overflow:inherit;overflow: hidden;white-space: nowrap" >' + (K.IE ? '&nbsp;' : '<br />') + '</td>';
}
html += '</tr>';
}