Skip to content

导出图片或 PDF 时应当在 .protyle-wysiwyg 元素上添加文档自定义属性 #14782

Closed
@TCOTC

Description

@TCOTC
Contributor

问题

目前的情况很怪:

  • 导出 PDF 带标题:文档内置属性、文档自定义属性和文档ID被添加到一级标题上了,.protyle-wysiwyg 元素上只有文档内置属性

    Image

  • 导出 PDF 不带标题:文档自定义属性和文档ID都丢失了,只剩下 .protyle-wysiwyg 元素上的文档内置属性

    Image

方案

只在 .protyle-wysiwyg 元素上添加文档内置属性、文档自定义属性和文档 ID


其他关联问题:

Activity

added a commit that references this issue on May 24, 2025
changed the title [-]导出图片或 PDF 时应当在 .protyle-wysiwyg 元素上添加文档属性[/-] [+]导出图片或 PDF 时应当在 .protyle-wysiwyg 元素上添加文档自定义属性[/+] on May 24, 2025
added a commit that references this issue on May 26, 2025
added a commit that references this issue on May 26, 2025
added a commit that references this issue on May 26, 2025
88250

88250 commented on May 26, 2025

@88250
Member

v3.1.31

TCOTC

TCOTC commented on May 27, 2025

@TCOTC
ContributorAuthor

为什么在文档标题上也要添加属性?

88250

88250 commented on May 29, 2025

@88250
Member

添加文档标题后的 h1 只能带上 dom 属性,否则的话这些渲染不了:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@TCOTC

      Issue actions

        导出图片或 PDF 时应当在 .protyle-wysiwyg 元素上添加文档自定义属性 · Issue #14782 · siyuan-note/siyuan