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