Skip to content

Improve heading block copy and paste #14114

Closed
@TCOTC

Description

@TCOTC

全选标题块复制粘贴在有内容的块时仅保留行内元素

粘贴成块的逻辑感觉特别奇怪:

video.webm

Activity

88250

88250 commented on Feb 16, 2025

@88250
Member

用粘贴纯文本吧。

TCOTC

TCOTC commented on Feb 16, 2025

@TCOTC
ContributorAuthor

标题有行级元素的时候不行

88250

88250 commented on Feb 16, 2025

@88250
Member

@Vanessa219 考虑一下?

Vanessa219

Vanessa219 commented on Feb 16, 2025

@Vanessa219
Member

全部就认为是标题,部分为段落这样好像更合理

Jietu20250216-183921-HD.mp4
TCOTC

TCOTC commented on Feb 16, 2025

@TCOTC
ContributorAuthor

我觉得分开更合理,就像复制代码块的全部文本再粘贴不会粘贴成代码块。

只有复制的是块的情况下才粘贴为块。

Vanessa219

Vanessa219 commented on Feb 16, 2025

@Vanessa219
Member

notion 好像全部选中就是标题了

TCOTC

TCOTC commented on Feb 16, 2025

@TCOTC
ContributorAuthor

感觉 Notion 这样还不错,复制全部标题文本之后,只有粘贴到空段落才转换为标题:

video.webm
self-assigned this
on Feb 17, 2025
changed the title [-]复制标题块全部文本粘贴的时候应该粘贴文本而不是标题块[/-] [+]全选标题块复制粘贴在有内容的块时仅保内行内元素[/+] on Feb 17, 2025
changed the title [-]全选标题块复制粘贴在有内容的块时仅保内行内元素[/-] [+]全选标题块复制粘贴在有内容的块时仅保留内行内元素[/+] on Feb 17, 2025
changed the title [-]全选标题块复制粘贴在有内容的块时仅保留内行内元素[/-] [+]全选标题块复制粘贴在有内容的块时仅保留行内元素[/+] on Feb 17, 2025
added a commit that references this issue on Feb 17, 2025
added this to the 3.1.23 milestone on Feb 17, 2025
changed the title [-]全选标题块复制粘贴在有内容的块时仅保留行内元素[/-] [+]Improve heading block copy and paste[/+] on Feb 18, 2025
TCOTC

TCOTC commented on Feb 22, 2025

@TCOTC
ContributorAuthor

还有这种情况也需要改一下:

  • 剪切标题不需要把块也剪切了
  • 复制全部标题粘贴到另一个空标题里,不需要在下方新建一个标题块,直接粘贴文本就行
video.webm
added 2 commits that reference this issue on Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@TCOTC

      Issue actions

        Improve heading block copy and paste · Issue #14114 · siyuan-note/siyuan