插入的表格样式会被全局样式覆盖。
This commit is contained in:
parent
cdad43fdfc
commit
297b3c42b1
|
@ -245,6 +245,10 @@ KindEditor.plugin('table', function(K) {
|
||||||
if (bgColor !== '') {
|
if (bgColor !== '') {
|
||||||
style += 'background-color:' + bgColor + ';';
|
style += 'background-color:' + bgColor + ';';
|
||||||
}
|
}
|
||||||
|
if (border !== ''){
|
||||||
|
style += 'border:'+border+'px solid;';
|
||||||
|
}
|
||||||
|
|
||||||
var html = '<table';
|
var html = '<table';
|
||||||
if (style !== '') {
|
if (style !== '') {
|
||||||
html += ' style="' + style + '"';
|
html += ' style="' + style + '"';
|
||||||
|
@ -271,7 +275,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>' + (K.IE ? ' ' : '<br />') + '</td>';
|
html += '<td style="border:solid windowtext 1.0px;" >' + (K.IE ? ' ' : '<br />') + '</td>';
|
||||||
}
|
}
|
||||||
html += '</tr>';
|
html += '</tr>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue