Skip to content

Commit

Permalink
fix: add empty syl for follows syllable
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Feb 4, 2025
1 parent 7004e42 commit 4fb1ef2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/EditControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,15 @@ export function initNavbar(neonView: NeonView): void {
attrValue: '',
},
});
if (syllable.getElementsByTagName('syl').length === 0) {
param.push({
action: 'setText',
param: {
elementId: syllable.getAttribute('xml:id'),
text: '',
},
});
}
}
}

Expand Down

0 comments on commit 4fb1ef2

Please sign in to comment.