You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-23 15:42:28 +03:00
More API changes
This commit is contained in:
@@ -423,7 +423,7 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
focus: {
|
focus: {
|
||||||
key: quote.key,
|
key: quote.key,
|
||||||
},
|
},
|
||||||
})).collapseToEndOfBlock().insertBlock(Block.create(DEFAULT_NODE)).focus();
|
})).moveToEndOfBlock().insertBlock(Block.create(DEFAULT_NODE)).focus();
|
||||||
|
|
||||||
this.onChange(change);
|
this.onChange(change);
|
||||||
} else {
|
} else {
|
||||||
@@ -838,7 +838,7 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
parent.object !== 'document')
|
parent.object !== 'document')
|
||||||
{
|
{
|
||||||
return change.replaceNodeByKey(editorState.anchorBlock.key, editorState.anchorText)
|
return change.replaceNodeByKey(editorState.anchorBlock.key, editorState.anchorText)
|
||||||
.collapseToEndOf(parent)
|
.moveToEndOfNode(parent)
|
||||||
.focus();
|
.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1293,7 +1293,7 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Move selection to the end of the selected history
|
// Move selection to the end of the selected history
|
||||||
const change = editorState.change().collapseToEndOf(editorState.document);
|
const change = editorState.change().moveToEndOfNode(editorState.document);
|
||||||
|
|
||||||
// We don't call this.onChange(change) now, as fixups on stuff like emoji
|
// We don't call this.onChange(change) now, as fixups on stuff like emoji
|
||||||
// should already have been done and persisted in the history.
|
// should already have been done and persisted in the history.
|
||||||
|
|||||||
Reference in New Issue
Block a user