Commit 52be4051 by qlintonger xeno

feat: 使用diff_match_patch来对比完毕+23

parent dd439fd9
...@@ -58,7 +58,8 @@ export function reconstructTree(data: any[]) { ...@@ -58,7 +58,8 @@ export function reconstructTree(data: any[]) {
element.setAttribute('data-modify-type', node.type); element.setAttribute('data-modify-type', node.type);
} }
element.setAttribute('data-type', node.label) element.setAttribute('data-w-e-type', node.label)
element.setAttribute('data-indent-level', node.chained.length.toString())
// Set textContent for TITLE or PARA nodes // Set textContent for TITLE or PARA nodes
if (node.label === 'TITLE' || node.label === 'PARA') { if (node.label === 'TITLE' || node.label === 'PARA') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment