* 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
|
| undefined
|
||||||
let reply
|
let reply
|
||||||
let rt = new RichText(
|
let rt = new RichText(
|
||||||
{text: opts.rawText.trim()},
|
{text: opts.rawText.trimEnd()},
|
||||||
{
|
{
|
||||||
cleanNewlines: true,
|
cleanNewlines: true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -119,7 +119,7 @@ export const TextInput = React.forwardRef(function TextInputImpl(
|
||||||
onUpdate({editor: editorProp}) {
|
onUpdate({editor: editorProp}) {
|
||||||
const json = editorProp.getJSON()
|
const json = editorProp.getJSON()
|
||||||
|
|
||||||
const newRt = new RichText({text: editorJsonToText(json).trim()})
|
const newRt = new RichText({text: editorJsonToText(json).trimEnd()})
|
||||||
newRt.detectFacetsWithoutResolution()
|
newRt.detectFacetsWithoutResolution()
|
||||||
setRichText(newRt)
|
setRichText(newRt)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue