mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 05:21:41 +08:00
parent
4647a53111
commit
437e0b0951
@ -166,7 +166,7 @@ const pasteCtrl = ContentState => {
|
||||
|
||||
if (/th|td/.test(startBlock.type)) {
|
||||
const pendingText = text.trim().replace(/\n/g, '<br/>')
|
||||
startBlock.text += pendingText
|
||||
startBlock.text = startBlock.text.substring(0, start.offset) + pendingText + startBlock.text.substring(end.offset)
|
||||
const { key } = startBlock
|
||||
const offset = start.offset + pendingText.length
|
||||
this.cursor = {
|
||||
|
Loading…
Reference in New Issue
Block a user