Skip to content

table while 循环造成丢失table 后一行的 node  #96

@sanyuelanv

Description

@sanyuelanv

richtext.js 的 142 行代码

while (tmpNode.type === 'table_tr') {
  tableNode.children.push(getBlockNode(tmpNode));
  tmpNode = parsedData[++i];
}

tmpNode 不再是 table_tr 的时候 ,但是 i 已经 +1 了,导致 不能进入 node.type !== 'table_tr' 的分支。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions