Skip to content

Commit

Permalink
fix(table): allow parsing for TH elements in table module
Browse files Browse the repository at this point in the history
  • Loading branch information
cycleccc committed Feb 5, 2025
1 parent cc3bcbe commit 2360160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/table-module/src/module/parse-style-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const DEFAULT_BORDER_COLOR = window
?.getPropertyValue('--w-e-textarea-border-color')

export function parseStyleHtml(elem: DOMElement, node: Descendant, _editor: IDomEditor): Descendant {
if (elem.tagName !== 'TABLE' && elem.tagName !== 'TD') { return node }
if (!['TABLE', 'TD', 'TH'].includes(elem.tagName)) { return node }

const $elem = $(elem)

Expand Down

0 comments on commit 2360160

Please sign in to comment.