fix empty range items handling

This commit is contained in:
zadam 2021-01-05 14:24:25 +01:00
parent f8bec35893
commit c08c4531db

View File

@ -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;
} }