mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-10-27 06:12:00 +01:00 
			
		
		
		
	Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
		
						commit
						f64c274ef3
					
				| @ -423,12 +423,12 @@ export default class MessageComposerInput extends React.Component { | ||||
|                         focus: { | ||||
|                             key: quote.key, | ||||
|                         }, | ||||
|                     })).collapseToEndOfBlock().insertBlock(Block.create(DEFAULT_NODE)).focus(); | ||||
|                     })).moveToEndOfBlock().insertBlock(Block.create(DEFAULT_NODE)).focus(); | ||||
| 
 | ||||
|                     this.onChange(change); | ||||
|                 } else { | ||||
|                     let fragmentChange = fragment.change(); | ||||
|                     fragmentChange.moveToRangeOf(fragment.document) | ||||
|                     fragmentChange.moveToRangeOfNode(fragment.document) | ||||
|                                   .wrapBlock(quote); | ||||
| 
 | ||||
|                     // FIXME: handle pills and use commonmark rather than md-serialize
 | ||||
| @ -838,7 +838,7 @@ export default class MessageComposerInput extends React.Component { | ||||
|                     parent.object !== 'document') | ||||
|                 { | ||||
|                     return change.replaceNodeByKey(editorState.anchorBlock.key, editorState.anchorText) | ||||
|                                  .collapseToEndOf(parent) | ||||
|                                  .moveToEndOfNode(parent) | ||||
|                                  .focus(); | ||||
|                 } | ||||
|             } | ||||
| @ -1293,7 +1293,7 @@ export default class MessageComposerInput extends React.Component { | ||||
|         } | ||||
| 
 | ||||
|         // 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
 | ||||
|         // should already have been done and persisted in the history.
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user