Skip to content

插件开发求助:想问问有什么方法能获取到最新又完整的文档DOM结构呢 #13313

Closed
@Achuan-2

Description

@Achuan-2
Member

In what scenarios do you need this feature?

发现用protyle.protyle.toolbar.setInlineMark添加样式和protyle.insert插入文字后
立即用/api/filetree/getDoc和/api/block/getBlockKramdown,获取不到最近插入的样式,需要等500ms,才能获取到最新的完整DOM
而直接用document的DOM结构又获取不到完整的DOM结构

Describe the optimal solution

想问问有什么帮法能获取到最新的DOM结构呢

Describe the candidate solution

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @88250@Vanessa219@wish5115@Achuan-2@zxhd863943427

        Issue actions

          插件开发求助:想问问有什么方法能获取到最新又完整的文档DOM结构呢 · Issue #13313 · siyuan-note/siyuan