* Dont trim before posting (close #1621) * Tweak: do trim endzio/stable
parent
b74a0e0fe2
commit
8366fe2c4a
|
@ -94,7 +94,7 @@ export async function post(store: RootStoreModel, opts: PostOpts) {
|
|||
| undefined
|
||||
let reply
|
||||
let rt = new RichText(
|
||||
{text: opts.rawText.trim()},
|
||||
{text: opts.rawText.trimEnd()},
|
||||
{
|
||||
cleanNewlines: true,
|
||||
},
|
||||
|
|
|
@ -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…
Reference in New Issue