Skip to content

Commit 06eda35

Browse files
author
git
committed
修复:表格设置 按页面宽度自适应,并不是100%宽度
1 parent 1e27faf commit 06eda35

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

_src/plugins/table.cmds.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,10 +1007,12 @@
10071007
utils.each(tds, function (td) {
10081008
td.removeAttribute("width");
10091009
});
1010-
table.setAttribute(
1011-
"width",
1012-
getTableWidth(editor, true, getDefaultValue(editor, table))
1013-
);
1010+
// bugfix https://gitee.com/modstart-lib/ueditor-plus/issues/I8N5ON
1011+
// table.setAttribute(
1012+
// "width",
1013+
// getTableWidth(editor, true, getDefaultValue(editor, table))
1014+
// );
1015+
table.setAttribute("width", '100%');
10141016
var tdsWidths = [];
10151017
setTimeout(function () {
10161018
utils.each(tds, function (td) {

0 commit comments

Comments
 (0)