patches v1.7.2 #115

Merged
jkeffects merged 8 commits from develop into main 2025-07-18 14:15:54 +00:00
Showing only changes of commit 53fd89dd9e - Show all commits

View file

@ -113,9 +113,9 @@ function getContent(): string | Delta {
if (props.contentType === "delta") {
return (instance.value?.getContents() ?? {}) as Delta;
} else if (props.contentType === "html") {
return instance.value?.getSemanticHTML() ?? "";
return instance.value?.getSemanticHTML().replace(/ /g, " ") ?? "";
} else {
return instance.value?.getText() ?? "";
return instance.value?.getText().replace(/ /g, " ") ?? "";
}
}
function setContent(content: Delta | string) {