File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
packages/plugins/table/src Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @editablejs/plugin-table ' : patch
3+ ---
4+
5+ node.nodeName judgment error
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const withTableCellHTMLDeserializerTransform: HTMLDeserializerWithTransfo
99) => {
1010 return ( node , options = { } ) => {
1111 const { text } = options
12- if ( isDOMHTMLElement ( node ) && node . nodeName . toLowerCase ( ) === 'TD' ) {
12+ if ( isDOMHTMLElement ( node ) && node . nodeName === 'TD' ) {
1313 const children : Descendant [ ] = [ ]
1414 for ( const child of node . childNodes ) {
1515 const content = serializer . transform ( child , {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const withTableHTMLDeserializerTransform: HTMLDeserializerWithTransform<
1919> = ( next , serializer , { editor } ) => {
2020 return ( node , options = { } ) => {
2121 const { text } = options
22- if ( isDOMHTMLElement ( node ) && node . nodeName . toLowerCase ( ) === 'TABLE' ) {
22+ if ( isDOMHTMLElement ( node ) && node . nodeName === 'TABLE' ) {
2323 const children : TableRow [ ] = [ ]
2424 for ( const child of node . childNodes ) {
2525 children . push ( ...( serializer . transform ( child , { text, matchNewline : true } ) as TableRow [ ] ) )
You can’t perform that action at this time.
0 commit comments