patches v1.7.2 #115
1 changed files with 2 additions and 2 deletions
|
@ -113,9 +113,9 @@ function getContent(): string | Delta {
|
||||||
if (props.contentType === "delta") {
|
if (props.contentType === "delta") {
|
||||||
return (instance.value?.getContents() ?? {}) as Delta;
|
return (instance.value?.getContents() ?? {}) as Delta;
|
||||||
} else if (props.contentType === "html") {
|
} else if (props.contentType === "html") {
|
||||||
return instance.value?.getSemanticHTML() ?? "";
|
return instance.value?.getSemanticHTML().replace(/ /g, " ") ?? "";
|
||||||
} else {
|
} else {
|
||||||
return instance.value?.getText() ?? "";
|
return instance.value?.getText().replace(/ /g, " ") ?? "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function setContent(content: Delta | string) {
|
function setContent(content: Delta | string) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue