@wangeditor-next/editor 5.6.37 → 5.6.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -40008,11 +40008,10 @@
40008
40008
  }
40009
40009
  TableFullWidth.prototype.getValue = function (editor) {
40010
40010
  var tableNode = DomEditor.getSelectedNodeByType(editor, 'table');
40011
- if (!tableNode) {
40011
+ if (tableNode == null) {
40012
40012
  return false;
40013
40013
  }
40014
- // 检查表格是否已经是全宽(width100%或auto)
40015
- return tableNode.width === '100%' || tableNode.width === 'auto';
40014
+ return tableNode.width === '100%';
40016
40015
  };
40017
40016
  TableFullWidth.prototype.isActive = function (editor) {
40018
40017
  return !!this.getValue(editor);