mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
fix empty range items handling
This commit is contained in:
parent
f8bec35893
commit
c08c4531db
@ -238,8 +238,10 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
||||
let text = '';
|
||||
|
||||
for (const item of range.getItems()) {
|
||||
if (item.data) {
|
||||
text += item.data;
|
||||
}
|
||||
}
|
||||
|
||||
return text;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user