mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
fix empty range items handling
This commit is contained in:
@@ -238,8 +238,10 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
|||||||
let text = '';
|
let text = '';
|
||||||
|
|
||||||
for (const item of range.getItems()) {
|
for (const item of range.getItems()) {
|
||||||
|
if (item.data) {
|
||||||
text += item.data;
|
text += item.data;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user