remove unnecessary trimEnd()
This commit is contained in:
@@ -185,7 +185,7 @@ export const TextInput = React.forwardRef(function TextInputImpl(
|
||||
},
|
||||
onUpdate({editor: editorProp}) {
|
||||
const json = editorProp.getJSON()
|
||||
const newText = editorJsonToText(json).trimEnd()
|
||||
const newText = editorJsonToText(json)
|
||||
const mayBePaste = newText.length > prevLength.current + 1
|
||||
|
||||
const newRt = new RichText({text: newText})
|
||||
|
||||
Reference in New Issue
Block a user