Skip to content

建议块内部用户自定义dom提交时可忽略,目前会被转换为HTML实体被提交 #12684

Closed
@wish5115

Description

@wish5115

In what scenarios do you need this feature?

如题,
比如有一个代码块,
image
修改代码块内容,内容被提交后,按f5,变成了代码的一部分
image
网络抓包数据
r69

普通块也一样,比如,下面的段落块
image

修改块内容,内容被提交后,变为了
image
网络抓包数据
r68

Describe the optimal solution

建议可以给用户自定义dom添加属性,然后可根据这个属性,在提交块内容时忽略该dom

比如:

<div data-custom-ignore="true">......</div> 

然后在块提交时,可忽略此dom。

关联帖子:https://ld246.com/article/1727621671852/comment/1727911436752?r=wilsons#comments

Describe the candidate solution

No response

Other information

No response

Activity

TCOTC

TCOTC commented on Oct 3, 2024

@TCOTC
Contributor

protyle-custom 行不行?

88250/lute#207

88250

88250 commented on Oct 3, 2024

@88250
Member

用 protyle-custom 应该可以忽略的,我先关闭了,感谢反馈。

wish5115

wish5115 commented on Oct 3, 2024

@wish5115
Author

用 protyle-custom 应该可以忽略的,我先关闭了,感谢反馈。

好的,感谢!学习了。

wish5115

wish5115 commented on Oct 3, 2024

@wish5115
Author

protyle-custom 行不行?

88250/lute#207

好的,感谢!学习了。

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

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@wish5115@TCOTC

        Issue actions

          建议块内部用户自定义dom提交时可忽略,目前会被转换为HTML实体被提交 · Issue #12684 · siyuan-note/siyuan