You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
more RTE fixes
This commit is contained in:
@@ -141,7 +141,8 @@ export function modifyText(contentState: ContentState, rangeToReplace: Selection
|
||||
for(let currentKey = startKey;
|
||||
currentKey && currentKey !== endKey;
|
||||
currentKey = contentState.getKeyAfter(currentKey)) {
|
||||
text += getText(currentKey).substring(startOffset, blockText.length);
|
||||
let blockText = getText(currentKey);
|
||||
text += blockText.substring(startOffset, blockText.length);
|
||||
|
||||
// from now on, we'll take whole blocks
|
||||
startOffset = 0;
|
||||
|
||||
Reference in New Issue
Block a user