* Dont trim before posting (close #1621) * Tweak: do trim end
This commit is contained in:
parent
b74a0e0fe2
commit
8366fe2c4a
2 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ export const TextInput = React.forwardRef(function TextInputImpl(
|
|||
onUpdate({editor: editorProp}) {
|
||||
const json = editorProp.getJSON()
|
||||
|
||||
const newRt = new RichText({text: editorJsonToText(json).trim()})
|
||||
const newRt = new RichText({text: editorJsonToText(json).trimEnd()})
|
||||
newRt.detectFacetsWithoutResolution()
|
||||
setRichText(newRt)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue